Commit graph

6485 commits

Author SHA1 Message Date
cinap_lenrek
8b160d1ea1 bcm: remove obsolete TSTKTOP constant 2019-04-04 15:23:20 +02:00
cinap_lenrek
0132e7fed0 pc64: get rid of TSTKTOP, USTKTOP is the end of user address space
the temporary stack segment used to be at a fixed address above or
below the user stack. these days, the temp stack is mapped dynamically
by sysexec so TSTKTOP is obsolete.
2019-04-04 15:21:25 +02:00
cinap_lenrek
ed6b42863c sshnet: get rid of Announced state, simplify 2019-04-03 23:49:22 +02:00
cinap_lenrek
634292c2f8 sshnet: implement listen (port forwarding) 2019-04-03 22:15:47 +02:00
cinap_lenrek
7a3ceb58fc sshnet: don't leak error string 2019-04-03 14:29:49 +02:00
cinap_lenrek
81f3b1a233 sshnet: don't leak "Dialing" connections when "connect" ctl write gets interrupted 2019-04-03 14:16:28 +02:00
cinap_lenrek
2251ef7a32 sshnet: pass on open failure error message, simplify
return the error message from MSG_CHANNEL_OPEN_FAILURE
in the "connect" control write.

use a extra state "Finished" to distinguish server from client
initiated teardown. that way we do not need to track if we
send the MSG_CHANNEL_CLOSE message in closeclient(). this way
we also cannot be fooled by misbehaving server.

simplify hangupclient() by removing state transitions and doing
them in the caller explicitely. that way we can use hangupclient()
instead of dialedclient().
2019-04-03 13:45:54 +02:00
cinap_lenrek
a278545e3c sshnet: fix eof and close handling, use proper packet size, cleanup 2019-04-03 10:49:47 +02:00
cinap_lenrek
3bb1804631 vt: dont make fs procs hang arround when closing rio window 2019-04-02 20:44:35 +02:00
cinap_lenrek
89a83271f4 sshnet(4): fix user@host syntax, add BUGS section, add ip(3) reference 2019-04-02 19:42:09 +02:00
cinap_lenrek
6d429cf9e8 ssh: print usage for unknown flags, cleanup 2019-04-02 19:22:19 +02:00
cinap_lenrek
009b624fe6 ssh(1): add sshnet(4) reference 2019-04-02 18:46:00 +02:00
cinap_lenrek
a4ab7dbe46 sshnet: reduce memory consumption by lowering stack sizes 2019-04-02 18:29:22 +02:00
cinap_lenrek
48a82f2641 sshnet: fix memory leak 2019-04-02 18:06:25 +02:00
cinap_lenrek
d4033c31bb sshnet: allow 0 port 2019-04-02 17:51:15 +02:00
cinap_lenrek
dd8af39bce sshnet: fix write count for ctl message writes 2019-04-02 17:32:34 +02:00
cinap_lenrek
e0bdfe1e76 sshnet: actually make sure ssh established connection before exiting main proc
this fixes password prompts and handles errors properly.
2019-04-02 17:28:56 +02:00
cinap_lenrek
fdcb55d696 sshnet(4): add documentation 2019-04-02 16:40:14 +02:00
cinap_lenrek
ae8a9f8b90 sshnet: bring back sshnet using ssh(1) mux mode
this is a port of the original ssh1 sshnet to our
ssh2 client using mux mode.
2019-04-02 16:23:01 +02:00
cinap_lenrek
38c2cdf164 ssh: add experimental mux mode
in mux mode, ssh relays raw MSG_CHANNEL_*
messages on standard input and output while
still handling authentication and key exchange
internally.

the intend is to use the mux mode to implement
something like the old sshnet ontop of ssh.
2019-04-02 11:18:50 +02:00
cinap_lenrek
ccbffa6731 merge 2019-04-02 09:05:01 +02:00
cinap_lenrek
47ec5de29e ssh: implement -W option for making remote tcp connections 2019-04-02 09:03:35 +02:00
BurnZeZ
5b81e7de3f walk: remove unused depth argument from dofile() 2019-03-30 15:10:36 +00:00
BurnZeZ
3f1fefeafb bootrc: simplify if statement 2019-03-30 15:09:00 +00:00
cinap_lenrek
4f0bfe0fb8 dtracy: avoid dmachlock() race
between being commited to a machno and having acquired the lock, the
scheduler could come in an schedule us on a different processor. the
solution is to have dtmachlock() take a special -1 argument to mean
"current mach" and return the actual mach number after the lock has
been acquired and interrupts being disabled.
2019-03-30 09:17:46 +01:00
cinap_lenrek
ac3147a9c5 dist/mkfile: aux/stub -d /n/src9/usr to avoid overbinding /usr in case /n/src9 an / alias
when /n/src9 is an alias for / (bind / /n/src9), then the bind
from /sys/lib/dist/usr on /n/src9/usr would also overbind
/usr and potentially make the build target file inaccessible.

the solution is to run aux/stub -d /n/src9/usr.

this works as aux/stub mounts itself on /n/src9, so the bind
for /n/src9/usr will not override /usr in the root filesystem
but the stub directory from aux/stub.
2019-03-30 05:50:14 +01:00
cinap_lenrek
dea28126ae 5c: dont substibute (destination) registers contained in MOVM reglist
this fixes the miscompilation of 6l with 5c resulting in bogus
vlong -> long conversion at the top of asmandsz():

asmandsz 0x0000aec4	MOVW.W	R14,#-0x2c(R13)
asmandsz+0x4 0x0000aec8	MOVW	rex+8(FP),R5
asmandsz+0x8 0x0000aecc	MOVW	$andptr-SB(SB),R7
asmandsz+0xc 0x0000aed0	MOVW	R0,R6
asmandsz+0x10 0x0000aed4	AND	$#0x44,R5,R8
asmandsz+0x14 0x0000aed8	MOVW	R8,rex+8(FP)
asmandsz+0x18 0x0000aedc	MOVW	R0,R4
asmandsz+0x1c 0x0000aee0	MOVM.IA	(R0),[R1,R3] <- R1 used here
asmandsz+0x20 0x0000aee4	MOVW	R8,v-4(SP) <- substituted by R8
2019-03-29 06:35:41 +01:00
cinap_lenrek
a2fb8e4289 merge 2019-03-27 14:33:15 +01:00
cinap_lenrek
4d3367d11f plan9.ini(8): add USB section, documenting various usb options 2019-03-27 14:31:45 +01:00
cinap_lenrek
2f5983ba02 bootrc: handle automatic ip configuration on gbe media 2019-03-27 14:17:51 +01:00
cinap_lenrek
8d9f3906fa plan9.ini: add nora6= option to disable automatic ipv6 configuration 2019-03-27 14:11:25 +01:00
BurnZeZ
6da89d6266 added walk(1) 2019-03-25 23:10:02 +00:00
cinap_lenrek
41d4cecf6d upas/fs: release mailbox syncing lock after encountering error 2019-03-23 05:47:17 +01:00
cinap_lenrek
151039caf0 webfs: bracket literal ipv6 host in "Host:" header 2019-03-23 00:49:07 +01:00
cinap_lenrek
1e97adc86b nusbrc: detect "keyboardio model 01", appears as multifuction device with IAD csp(0102EF) (thanks sam-d) 2019-03-21 02:14:40 +01:00
cinap_lenrek
58668339bc nusb/kb: fix continuous scrollwheel delta not being reported (thanks sam-d) 2019-03-21 01:27:28 +01:00
cinap_lenrek
678be83990 merge 2019-03-18 07:16:37 +01:00
cinap_lenrek
746a99e10d python: clean and nuke pgen and libpython.a for all $CPUS 2019-03-18 07:15:09 +01:00
stanley lieber
36603ece3c fortunes: Open source may not be safe if it has no super excellent moderator. 2019-03-17 23:13:27 -04:00
cinap_lenrek
c8fcefb38b dtracy(1): fix print(2) reference 2019-03-18 02:41:15 +01:00
cinap_lenrek
8f5d831e9e python: remove /$objtype/lib/ape/libpython.a, track graminit.h dependencies, remove graminit.c 2019-03-17 23:52:07 +01:00
cinap_lenrek
8f00b7096e ip/ipconfig: use defaults for loopback
- do not write /net/ndb for loopback medium unless -p is specified
- use defmask() instead of hardcoded /64 for v6 to get correct /128 mask for ::1
- only do duplicate address detection on ethernet
2019-03-17 05:44:55 +01:00
cinap_lenrek
7aac23b02b ip/ipconfig: use ewrite() to enable routing command for sendra 2019-03-17 04:07:30 +01:00
cinap_lenrek
5fe49f9c71 rootstub: create arm and mips directories in /usr/glenda/bin (tanks timclassic) 2019-03-17 02:43:49 +01:00
cinap_lenrek
d75f7d273b ip/tinc: 4096 bit RSA, (passive) pmtu discovery, fix udpfd close() race, cleanup
- increase buffer size to support up to 4096 bit RSA keys
- handle PMTUDiscovery option and respond to pmtu probes
- handle port in Address option
- wlock(&netlk) before closing udpfd to sync with writers
- move default subnet handling out of gethost()
2019-03-10 19:07:58 +01:00
cinap_lenrek
a0acae173e libmemdraw: remove static Point p00 and use ZP instead 2019-03-09 17:36:19 +01:00
cinap_lenrek
5a724464d9 libmemdraw: handle memarc() phi == 0 and phi <= -360, keep alpha in bounds 2019-03-09 17:34:22 +01:00
cinap_lenrek
c7b2ca5716 merge 2019-03-07 22:41:42 +01:00
cinap_lenrek
4b8f7a2110 devip: ignore the evil bit in fragment info field
using ~IP_DF mask to select offset and "more fragments" bits
includes the evil bit 15. so instead define a constant IP_FO
for the fragment offset bits and use (IP_MF|IP_FO). that way
the evil bit gets ignored and doesnt cause any useless calls
to ipreassemble().
2019-03-07 22:39:50 +01:00
mischief
c0383d8291 mach(2): fix byteswapping function signatures 2019-03-06 19:10:58 -08:00