cinap_lenrek
faecd86ee6
factotum: fix nil pointer crash on p9skclosekey(), thanks k0ga
...
oversight, closekey is called again even if addkey failed, which
will have Key.priv nil.
stack trace:
memset(data=0x0,n=0x1f8)+0x58 /sys/src/libc/arm/memset.s:40
p9skclosekey(k=0x55358)+0x18 /sys/src/cmd/auth/factotum/p9sk1.c:493
closekey(k=0x55358)+0x7c /sys/src/cmd/auth/factotum/util.c:247
ctlwrite(a=0x552f8,atzero=0x0)+0x320 /sys/src/cmd/auth/factotum/rpc.c:503
fswrite(r=0x53b78)+0x1b0 /sys/src/cmd/auth/factotum/fs.c:574
swrite(r=0x53b78,srv=0x423e8)+0x134 /sys/src/lib9p/srv.c:559
srvwork()+0x2a4 /sys/src/lib9p/srv.c:746
srv(srv=0x423e8)+0xcc /sys/src/lib9p/srv.c:825
postproc()+0x3c /sys/src/lib9p/post.c:120
rforker(flag=0x1,fn=0x39f98,arg=0x423e8)+0x34 /sys/src/lib9p/rfork.c:16
_postmountsrv(s=0x423e8,name=0x0,mtpt=0x46f70,flag=0x1)+0xb8 /sys/src/lib9p/post.c:27
postmountsrv(name=0x0,mtpt=0x46f70,flag=0x1)+0x20 /sys/src/lib9p/rfork.c:32
main(argv=0x1fffff9c,argc=0x0)+0x23c /sys/src/cmd/auth/factotum/fs.c:157
_main+0x28 /sys/src/libc/arm/main9.s:19
acid: /sys/src/cmd/auth/factotum/p9sk1.c:493
2016-02-06 22:26:29 +01:00
aiju
398686829d
add mathematical angle brackets to /lib/keyboard
2016-02-06 20:41:42 +01:00
cinap_lenrek
b7f2aed0f2
libsec: mpconv -> mpfmt
2016-02-06 07:19:31 +01:00
mischief
ad637845a8
libmp: remove include of libsec.h
2016-02-05 19:29:55 -08:00
cinap_lenrek
f1254da64d
libmp: handle out of memory case in gmfield()
2016-02-04 03:11:46 +01:00
cinap_lenrek
78808ca314
libsec: refactor asn1 encoding of digest for rsa signatures, fix memory leak in ecverify
2016-02-03 04:18:54 +01:00
cinap_lenrek
cc8e8c978c
tlssrv: p9any authentication support using TLS-PSK cipher suits
2016-02-01 22:49:20 +01:00
cinap_lenrek
a291bbdedd
libsec: ecdsa client support for tlshand, cleanups
2016-02-01 21:34:49 +01:00
cinap_lenrek
0bfac109a4
mpc: constant expression folding
2016-02-01 19:27:57 +01:00
cinap_lenrek
340d83d49d
games/doom: fix white window issue on exit
...
make kbdproc() and mouseproc() share fd table with the main proc
and not explicitely close the file descriptors. so /dev/mouse gets
closed *after* /dev/draw/new to avoid the white window refresh issue.
2016-01-30 19:11:33 +01:00
cinap_lenrek
7cfe4aef3c
salsa(2): fix source reference
2016-01-19 13:06:22 +01:00
cinap_lenrek
876e19c652
salsa(2): some formating fixes
2016-01-19 13:02:12 +01:00
cinap_lenrek
7cf11db685
libsec: add salsa20 stream cipher
2016-01-19 12:50:33 +01:00
cinap_lenrek
7b31d5e494
authsrv(6): fix arrows
2016-01-19 11:08:29 +01:00
cinap_lenrek
4a47b264ac
wifi: check tkip/ccmp mac and crc in constant time avoiding timing side channels
2016-01-14 23:39:29 +01:00
cinap_lenrek
a57a6e511f
pc64: move idle() routine after CALL main(SB) as the comment suggests
2016-01-14 01:08:36 +01:00
cinap_lenrek
ed4c812765
pc/pc64: backing out new mp startup code (caused issues with ramnode)
...
apparently, this causes some quadcore ramnode vm to hang on boot,
even tho all cores successfully started up and are operational.
i suspect some side effect from timersinit()... this would also
mean *notsc= would break it (syncclock() would continue)...
its unclear.
i'm reverting this for now until the problem is better understood.
2016-01-13 23:18:25 +01:00
cinap_lenrek
21b70c782a
devssl: use tsmemcmp() to compare mac to close timing side channel
2016-01-13 21:48:09 +01:00
cinap_lenrek
5243969ba2
ndb/dnstcp: -x specifies the mountmoint
2016-01-12 08:53:06 +01:00
cinap_lenrek
36d2092a33
fix manpage references
2016-01-12 08:43:36 +01:00
mischief
af42c4f481
libauthsrv: fix ed448 goldilocks prime comment
2016-01-11 19:30:41 -08:00
cinap_lenrek
63f9a4fda3
pc/pc64: bring up ap's one after another, use idlehands() while waiting for thunderbirdsarego
...
when testing in qemu, launching each ap became slower and slower
because all the ap's where spinning in syncclock() waiting for
cpu0 to update its mach0->tscticks, which happens only much later
after all cpu's have been started up.
now we wait for each cpu to do its timer callibration and
manually update our tscticks while we wait and each cpu will
not spin but halt while waiting for active.thunderbirdsarego.
this reduces the system load and noise for timer callibration
and makes the mp startup linear with regard to the number of
cores.
2016-01-11 06:47:52 +01:00
aiju
dacaf31eb0
libauthsrv: add D in mkfile
2016-01-10 22:03:27 +01:00
stanley lieber
d80e3a5d95
/rc/bin/": fix quoting bug (thanks, aiju and silasm)
2016-01-07 15:04:56 -05:00
cinap_lenrek
ad87473109
pc/pc64: remove mpshutdown print
2016-01-07 19:37:47 +01:00
cinap_lenrek
5afa5f5c0b
kernel: remove todfix overflow iprint() spam
2016-01-07 19:37:05 +01:00
cinap_lenrek
6a651b42ac
ape/stdio: %z format is VLONG on amd64
2016-01-07 19:20:30 +01:00
cinap_lenrek
4308f6e7e6
ape/fmt: %p and %z format for amd64
2016-01-07 19:04:12 +01:00
cinap_lenrek
772afbe98c
format pointer subtraction results with %zd instead of %ld (for long -> intptr on amd64)
2016-01-07 04:44:13 +01:00
cinap_lenrek
9c99d0c8d3
6c: return vlong result for pointer subtraction
2016-01-07 04:40:47 +01:00
cinap_lenrek
3e38194d72
introduce signed intptr and %z format modifier for formating uintptr and intptr
2016-01-07 04:39:09 +01:00
cinap_lenrek
59245c73f0
venti/fixarenas: more %z -> %Z
2016-01-07 03:38:07 +01:00
cinap_lenrek
9a337f8dfc
venti/fixarenas: replace %z fmt with %Z
2016-01-07 02:27:00 +01:00
cinap_lenrek
094f0c9601
rx: theres no p9sk2 anymore
2016-01-06 06:00:22 +01:00
cinap_lenrek
dc96f164a2
merge
2016-01-06 05:31:55 +01:00
cinap_lenrek
5e24adafef
libsec: make sure theres no garbage after the asn.1 decode, cleanup
2016-01-06 05:30:44 +01:00
cinap_lenrek
cd74719101
merge
2016-01-06 03:59:40 +01:00
cinap_lenrek
4cf801b853
add missing /sys/src/cmd/auth/lib/private.c
2016-01-06 03:58:04 +01:00
stanley lieber
3735cc9bc3
authsrv(6): english
2016-01-05 21:34:15 -05:00
cinap_lenrek
2dae1ed53a
auth: release dp9ik implementation and reentrant factotum
2016-01-06 03:09:00 +01:00
cinap_lenrek
e064752dd4
libmp: silence compiler warning for strtomp
2016-01-06 01:19:05 +01:00
cinap_lenrek
32c11e2871
pc/pc64: import i210 support from erik quanstrom's 9atom
2016-01-05 07:53:39 +01:00
cinap_lenrek
41383ad012
kernel: change active.machs from bitmap to char array to support up to 64 cpus on pc64
2016-01-05 05:32:40 +01:00
cinap_lenrek
dd8908cff0
fdisk: properly convert byte units K,M,G and T to cylinders/sectors
...
the shared command language assumed 512 byte sectors, which is
not the case for fdisk as it uses cylinders for the block unit.
so we introduce an extra argument in the Edit structure and
parseexpr() function so byte sizes are properly converted to
the block unit when the K,M,G and T postfixes are used.
2016-01-05 03:57:50 +01:00
cinap_lenrek
5aeddd6788
libmp: check nil return value of strtomp() in test program
2016-01-04 19:09:25 +01:00
cinap_lenrek
263b0e34b2
mpc: use new strtomp() c-style prefixes to parse integer constants
2016-01-04 18:35:04 +01:00
cinap_lenrek
f5fcf6688b
libmp: mistake in strtomp()
2016-01-04 18:33:06 +01:00
cinap_lenrek
d30b160fe3
libmp: support for c-style base prefixes for strtomp(), octal support
2016-01-03 22:43:44 +01:00
cinap_lenrek
39f18c9d88
libsec: implement TLS-PSK for tlsClient()/tlsServer()
2015-12-25 17:05:05 +01:00
cinap_lenrek
4a6ab355c1
file: recognize bootable disk images (by 0x55AA boot sector signature)
2015-12-23 02:31:47 +01:00