]>
git.lizzy.rs Git - plan9front.git/log
cinap_lenrek [Wed, 28 Sep 2016 17:15:10 +0000 (19:15 +0200)]
nusb/lib: fix wrong endpoint id when openep() finds already existing endpoint file
ftrvxmtrx [Mon, 26 Sep 2016 21:00:06 +0000 (23:00 +0200)]
sam: putenv("%", ...): don't crash when no file is current
cinap_lenrek [Thu, 22 Sep 2016 09:04:43 +0000 (11:04 +0200)]
sam: use $% instead of $f for filename to be consistent with acme
cinap_lenrek [Thu, 22 Sep 2016 08:49:48 +0000 (10:49 +0200)]
sam: make current filename available to shell commands in $f (thanks aiju)
cinap_lenrek [Wed, 21 Sep 2016 19:57:08 +0000 (21:57 +0200)]
ip(3): spelling, thanks sl
cinap_lenrek [Wed, 21 Sep 2016 19:47:52 +0000 (21:47 +0200)]
ip(3): update description of /net/ipifc/*/status format
cinap_lenrek [Tue, 20 Sep 2016 07:15:53 +0000 (09:15 +0200)]
rio: fix onscreen()
cinap_lenrek [Mon, 19 Sep 2016 17:04:21 +0000 (19:04 +0200)]
scat: hjdicks for amd64
aiju [Mon, 19 Sep 2016 16:45:15 +0000 (16:45 +0000)]
pc(1): if the input base is not 10, print the 0d prefix before decimal numbers; this way, all output is always valid input (for the current mode)
cinap_lenrek [Mon, 19 Sep 2016 00:30:39 +0000 (02:30 +0200)]
merge
cinap_lenrek [Mon, 19 Sep 2016 00:28:10 +0000 (02:28 +0200)]
webfs: aaand another one (should go to sleep)
cinap_lenrek [Mon, 19 Sep 2016 00:14:03 +0000 (02:14 +0200)]
merge
cinap_lenrek [Mon, 19 Sep 2016 00:12:18 +0000 (02:12 +0200)]
merge
cinap_lenrek [Mon, 19 Sep 2016 00:11:03 +0000 (02:11 +0200)]
webfs: fix mistake...
cinap_lenrek [Mon, 19 Sep 2016 00:04:13 +0000 (02:04 +0200)]
webfs: don't use cache connections when posting
we cannot retry posts and we do not know for sure if a
post had any side effect when we got no status, so always
make a new connection for a post request.
aiju [Sun, 18 Sep 2016 23:20:28 +0000 (01:20 +0200)]
pc(1): add pb (thanks, BurnZeZ); add bit numbering
cinap_lenrek [Sun, 18 Sep 2016 19:16:45 +0000 (21:16 +0200)]
rio: improved bandsize()
when dragging a window edge, allow one to slide to a corner
or slide from corner to corner (usefull when inverting).
also make sure the right or bottom of the rectangle returned
by whichrect() is not outside of the screen (which makes
drawing slow).
cinap_lenrek [Sun, 18 Sep 2016 14:54:24 +0000 (16:54 +0200)]
cpu: quote remaining remote command arguments, don't syslog on missing /mnt/term/dev/cpunote file
cinap_lenrek [Sat, 17 Sep 2016 15:49:59 +0000 (17:49 +0200)]
ipv6on: get network device from $netdir/ipifc/*/status
cinap_lenrek [Sat, 17 Sep 2016 13:58:11 +0000 (15:58 +0200)]
etherzynq: implement promisc mode and multicast filter support
cinap_lenrek [Sat, 17 Sep 2016 12:18:40 +0000 (14:18 +0200)]
nusb/ether: promisc and multicast support for admtek pegasus (aue)
cinap_lenrek [Sat, 17 Sep 2016 12:06:03 +0000 (14:06 +0200)]
nusb/ether: multicast and promisc support for rtl8150 (url)
cinap_lenrek [Fri, 16 Sep 2016 21:23:19 +0000 (23:23 +0200)]
merge
cinap_lenrek [Fri, 16 Sep 2016 21:21:54 +0000 (23:21 +0200)]
nusb/ether: experimental pomisc mode and multicast support for smsc and asix
aiju [Thu, 15 Sep 2016 09:13:22 +0000 (09:13 +0000)]
pc(1): _ handling in numbers was broken at some point; restore documented behaviour
aiju [Thu, 15 Sep 2016 08:51:59 +0000 (08:51 +0000)]
pc(1): add nsa() command
cinap_lenrek [Tue, 13 Sep 2016 22:18:45 +0000 (00:18 +0200)]
ape: fix format clash, %z is for size_t (which is a long currently), not pointer sized
cinap_lenrek [Sun, 11 Sep 2016 21:20:55 +0000 (23:20 +0200)]
ape: bring strtod() in line with plan9's libc version
cinap_lenrek [Sun, 11 Sep 2016 21:19:18 +0000 (23:19 +0200)]
libc: dont use floating point for portable umuldiv(), use 64 bit uvlong
cinap_lenrek [Sun, 11 Sep 2016 17:07:17 +0000 (19:07 +0200)]
kernel: rekey chacha state on each randomread() invocation
we can encrypt the 256 bit chacha key on each invocation
making it hard to reconstruct previous outputs of the
generator given the current state (backtracking resiatance).
cinap_lenrek [Sun, 11 Sep 2016 12:12:39 +0000 (14:12 +0200)]
devcons: remove /dev/reboot "halt" command...
the "halt" command written to /dev/reboot just causes the
machine to crash... its also undocumented... removing it.
--
cinap
cinap_lenrek [Sun, 11 Sep 2016 01:18:48 +0000 (03:18 +0200)]
kernel: better nonce partitioning for chacha random number generator
leave the block counter to chacha_encrypt() and increment the 96 bit
iv instead.
cinap_lenrek [Sun, 11 Sep 2016 00:10:25 +0000 (02:10 +0200)]
kernel: xoroshiro128+ generator for rand()/nrand()
the kernels custom rand() and nrand() functions where not working
as specified in rand(2). now we just use libc's rand() and nrand()
functions but provide a custom lrand() impelmenting the xoroshiro128+
algorithm as proposed by aiju.
cinap_lenrek [Sun, 11 Sep 2016 00:09:07 +0000 (02:09 +0200)]
kernel: make randomread() fault reentrant
we now access the user buffer in randomread() outside of the lock,
only copying and advancing the chacha state under the lock. this
means we can use randomread() within the fault handling path now
without fearing deadlock. this also allows multiple readers to
generate random numbers in parallel.
cinap_lenrek [Sat, 10 Sep 2016 23:54:06 +0000 (01:54 +0200)]
kernel: replace various custom random iv buffer filling functions with calls to prng()
stanley lieber [Fri, 9 Sep 2016 20:59:00 +0000 (16:59 -0400)]
fortunes: Nein -- General Chuck Yeager
cinap_lenrek [Thu, 8 Sep 2016 08:40:19 +0000 (10:40 +0200)]
authsrv(2): update Nvrsafe structure to include aesmachkey
cinap_lenrek [Wed, 7 Sep 2016 23:49:25 +0000 (01:49 +0200)]
kernel: fix type for utime/stime in pexit(), fix debug format strings
cinap_lenrek [Wed, 7 Sep 2016 23:28:34 +0000 (01:28 +0200)]
kernel: make sure procalarm() remaining time doesnt become negative
cinap_lenrek [Wed, 7 Sep 2016 22:44:38 +0000 (00:44 +0200)]
kernel: always do unsigned subtractions for m->ticks delta for updatecpu() and rebalance(), handle ticks wrap arround in hzsched()
cinap_lenrek [Wed, 7 Sep 2016 21:39:10 +0000 (23:39 +0200)]
kernel: use tk2ms() instead of TK2MS macro for process time conversion
this code isnt time critical and process TReal delta can become
very long, so use tk2ms() which is less prone to overflow.
cinap_lenrek [Wed, 7 Sep 2016 21:36:04 +0000 (23:36 +0200)]
kernel: tsemacquire() use MACHP(0)->ticks for time delta
we might wake up on a different cpu after the sleep so
delta from machX->ticks - machY->ticks can become negative
giving spurious timeouts. to avoid this always use the
same mach 0 tick counter for the delta.
cinap_lenrek [Wed, 7 Sep 2016 19:14:23 +0000 (21:14 +0200)]
devcap: timeout capabilities after a minute, fix memory leak, paranoia
the manpage states that capabilities time out after a minute,
so we add ticks field into the Caphash struct and record the
time when the capability was inserted. freeing old capabilities
is handled in trimcaps(), which makes room for one extra cap
and frees timed out ones.
we also limit the capuse write size to less than 1024 bytes to
prevent denial of service as we have to copy the user buffer.
(memory exhaustion).
we have to check the from user *before* attempting to remove
the capability! the wrong user shouldnt be able to change any
state. this fixes the memory leak of the caphash.
do the hash comparsion with tsmemcmp(), avoiding timing
side channels.
allocate the capabilities in secret memory pool to prevent
debugger access.
cinap_lenrek [Tue, 6 Sep 2016 20:29:40 +0000 (22:29 +0200)]
merge
cinap_lenrek [Tue, 6 Sep 2016 20:27:26 +0000 (22:27 +0200)]
devproc: do unsigned subtraction to get MACHP(0)->ticks - up->times[TReal] delta
aiju [Mon, 5 Sep 2016 15:48:46 +0000 (15:48 +0000)]
pc(1): bugfix: allow setting output base to 0 (thanks, deuteron)
cinap_lenrek [Sat, 3 Sep 2016 17:05:28 +0000 (19:05 +0200)]
5c: do shift propagation for rotate right (ROR)
cinap_lenrek [Sat, 3 Sep 2016 16:18:28 +0000 (18:18 +0200)]
5c: format assembly constant right shift encoding 0 as >>32
cinap_lenrek [Sat, 3 Sep 2016 15:11:38 +0000 (17:11 +0200)]
5a: assemble constant >>0 right shifts as <<0 (no shift), allow >>32
previously, right shift >>0 resulted in >>32 being emited. this
is especially problematic when the shift count comes from a macro
expansion.
we now handle constant shift >>0 as <<0 (no shift) and allow
shift by 32 be specified.
this applies to logical right shift (>>) arithmetic right shift (->)
and right rotate (@>).
cinap_lenrek [Sat, 3 Sep 2016 15:01:56 +0000 (17:01 +0200)]
5l: format assembly constant right shift encoding 0 as >>32
cinap_lenrek [Sat, 3 Sep 2016 14:47:51 +0000 (16:47 +0200)]
libmach: fix RORREG, right shift with shift count 0 means >>32
aiju [Thu, 1 Sep 2016 11:46:44 +0000 (11:46 +0000)]
pc(1): manpage: restore previous size rather than set to 10
aiju [Thu, 1 Sep 2016 11:38:33 +0000 (11:38 +0000)]
pc(1): manpage formatting
aiju [Thu, 1 Sep 2016 10:55:12 +0000 (10:55 +0000)]
pc: add cat() function
aiju [Thu, 1 Sep 2016 10:46:37 +0000 (10:46 +0000)]
mptrunc: don't write to r->p[r->top]
aiju [Wed, 31 Aug 2016 13:00:50 +0000 (13:00 +0000)]
pc: add rev function
aiju [Mon, 29 Aug 2016 07:57:15 +0000 (09:57 +0200)]
pc: add gcd, rand and minv; set base of logical operation results to 0
cinap_lenrek [Mon, 29 Aug 2016 00:09:34 +0000 (02:09 +0200)]
libmp: remove unused mpeuclid.c
cinap_lenrek [Mon, 29 Aug 2016 00:07:52 +0000 (02:07 +0200)]
libmp: allow passing nil to v,x,y results of mpextendedgcd(), simplify mpinvert()
cinap_lenrek [Sun, 28 Aug 2016 22:45:16 +0000 (00:45 +0200)]
libmp: mpnrand(), what was i *THINKING*
the prior implementation was unneccesarily complicated for
no good reason due to me misunderstanding how libc's nrand()
works. in contrast to libc, we already generate the *closest*
power-of-2 random number with mprand() in the sampling loop.
cinap_lenrek [Sun, 28 Aug 2016 15:39:18 +0000 (17:39 +0200)]
python: remove automatic compiled module loading (.pyc files)
cinap_lenrek [Sun, 28 Aug 2016 14:46:32 +0000 (16:46 +0200)]
libmp: mpdiv(): fix divisor==quotient case (again)
cinap_lenrek [Sun, 28 Aug 2016 14:33:52 +0000 (16:33 +0200)]
libmp: timingsafe sign flip for small power-of-two negative divisor for mpdiv()
aiju [Sun, 28 Aug 2016 14:05:22 +0000 (16:05 +0200)]
mp.h: add mpasr
aiju [Sun, 28 Aug 2016 11:59:16 +0000 (13:59 +0200)]
pc(1): SYNOPSIS...
aiju [Sun, 28 Aug 2016 11:49:26 +0000 (13:49 +0200)]
pc(1): document -n option in manpage
aiju [Sun, 28 Aug 2016 11:40:01 +0000 (13:40 +0200)]
add pc(1)
aiju [Sun, 28 Aug 2016 10:00:25 +0000 (12:00 +0200)]
mpdiv: negative divisor has to flip sign of quotient
aiju [Sun, 28 Aug 2016 09:38:29 +0000 (11:38 +0200)]
mp: fix mptov and mptouv
aiju [Sun, 28 Aug 2016 08:49:41 +0000 (10:49 +0200)]
mp: fix mpnot and add mpasr
cinap_lenrek [Sun, 28 Aug 2016 01:41:25 +0000 (03:41 +0200)]
mercurial: use new d_stat from dirent structure in osutil.listdir
cinap_lenrek [Sun, 28 Aug 2016 01:39:49 +0000 (03:39 +0200)]
ape: add d_stat struct in dirent struct allowing the avoidance of stats
aiju [Sat, 27 Aug 2016 23:23:51 +0000 (01:23 +0200)]
timmy: manpage
aiju [Sat, 27 Aug 2016 23:08:26 +0000 (01:08 +0200)]
strtomp: update the returned char* even if there were no characters parsed
aiju [Sat, 27 Aug 2016 23:07:34 +0000 (01:07 +0200)]
strtomp: fix mpbits() call in octal code
cinap_lenrek [Sat, 27 Aug 2016 20:37:08 +0000 (22:37 +0200)]
fix wrong manpage section index generation for rc-httpd(8)
cinap_lenrek [Sat, 27 Aug 2016 19:28:21 +0000 (21:28 +0200)]
rio(4): document text truncation
cinap_lenrek [Sat, 27 Aug 2016 19:27:52 +0000 (21:27 +0200)]
rand(2), cons(3): clarify /dev/random behaviour
cinap_lenrek [Sat, 27 Aug 2016 18:50:55 +0000 (20:50 +0200)]
merge
cinap_lenrek [Sat, 27 Aug 2016 18:42:31 +0000 (20:42 +0200)]
kernel: switch to fast portable chacha based seed-once random number generator
cinap_lenrek [Sat, 27 Aug 2016 18:39:36 +0000 (20:39 +0200)]
devsdp: keep cipher states in secret memory
cinap_lenrek [Sat, 27 Aug 2016 18:38:33 +0000 (20:38 +0200)]
ip/esp: allocate cipher states in secret memory
cinap_lenrek [Sat, 27 Aug 2016 18:37:31 +0000 (20:37 +0200)]
devtls: allocate cipher states in secret memory
cinap_lenrek [Sat, 27 Aug 2016 18:37:14 +0000 (20:37 +0200)]
devssl: allocate cipher states in secret memory
cinap_lenrek [Sat, 27 Aug 2016 18:36:08 +0000 (20:36 +0200)]
wifi: update wifi.h header
cinap_lenrek [Sat, 27 Aug 2016 18:35:39 +0000 (20:35 +0200)]
wifi: allocate cipher states in secret memory, do AESstate key setup once
cinap_lenrek [Sat, 27 Aug 2016 18:33:03 +0000 (20:33 +0200)]
kernel: add secalloc() and secfree() functions for secret memory allocation
The kernel needs to keep cryptographic keys and cipher states
confidential. secalloc() allocates memory from the secret pool
which is protected from debuggers reading the memory thru devproc.
secfree() releases the memory, overriding the data with garbage.
cinap_lenrek [Sat, 27 Aug 2016 18:23:55 +0000 (20:23 +0200)]
libc: add poolisoverlap() and definitions for Pool *secrmem
aiju [Fri, 26 Aug 2016 19:23:13 +0000 (21:23 +0200)]
Bfn: set +x
aiju [Thu, 25 Aug 2016 21:39:07 +0000 (23:39 +0200)]
document Bfn
aiju [Thu, 25 Aug 2016 21:03:54 +0000 (23:03 +0200)]
fix Bfn botch
aiju [Thu, 25 Aug 2016 20:36:39 +0000 (22:36 +0200)]
add Bfn script
cinap_lenrek [Sat, 20 Aug 2016 17:09:08 +0000 (19:09 +0200)]
merge
cinap_lenrek [Sat, 20 Aug 2016 17:06:57 +0000 (19:06 +0200)]
vga/igfx: add pci did's for kenjis intel graphics cards.
cinap_lenrek [Sat, 20 Aug 2016 16:51:07 +0000 (18:51 +0200)]
merge
cinap_lenrek [Sat, 20 Aug 2016 16:49:44 +0000 (18:49 +0200)]
vga/igfx: work in progress fdi link train for sandy bridge, properly calculate fdi and displayport lane count
spew [Thu, 18 Aug 2016 13:52:58 +0000 (08:52 -0500)]
fix awk format printing bugs (thanks aiju)
cinap_lenrek [Tue, 16 Aug 2016 16:06:22 +0000 (18:06 +0200)]
devmnt: fix mistake in mntrahread()
mntrahread() had the prefetch window condition wrong so
it would very agressively prefetch ignoring the prefetch
window.
cinap_lenrek [Mon, 15 Aug 2016 07:07:34 +0000 (09:07 +0200)]
webfs: dont include http status in "needkey" error string
cinap_lenrek [Mon, 15 Aug 2016 06:40:04 +0000 (08:40 +0200)]
libframe: consistent use of nil vs. 0