]>
git.lizzy.rs Git - plan9front.git/log
spew [Wed, 26 Oct 2016 03:53:38 +0000 (22:53 -0500)]
winwatch: middle mouse button click also prompts for label
ftrvxmtrx [Mon, 24 Oct 2016 21:51:16 +0000 (23:51 +0200)]
stats: alternatively read battery and temp from aux/acpi
ftrvxmtrx [Mon, 24 Oct 2016 21:50:04 +0000 (23:50 +0200)]
aux/acpi: make it stats(8)-friendly
cinap_lenrek [Mon, 24 Oct 2016 18:56:11 +0000 (20:56 +0200)]
fix bugs and cleanup cryptsetup code
devfs:
- fix memory leak in devfs leaking the aes key
- allocate aes-xts cipher state in secure memory
- actually check if the hexkey got fully parsed
cryptsetup:
- get rid of stupid "type YES" prompt
- use genrandom() to generate salts and keys
- rewrite cryptsetup to use common pbkdf2 and readcons routines
- fix alot of error handling and simplify the code
- move cryptsetup command to disk/cryptsetup
- update cryptsetup(8) manual page
cinap_lenrek [Sun, 23 Oct 2016 15:18:35 +0000 (17:18 +0200)]
auth/factotum: bound the number of srv processes to 16, error the 9p rpc when it is over limit
cinap_lenrek [Sun, 23 Oct 2016 15:16:22 +0000 (17:16 +0200)]
lib9p: limit the number of srv processes kept arround 8
cinap_lenrek [Sun, 23 Oct 2016 02:09:27 +0000 (04:09 +0200)]
pc/archacpi: don't do acpi initialization in the kernel, provide generic acpimem routines
get rid of _INI and _REG method calls, this is not full acpi environment
anyway and all we really want todo at kernel boot time is figuring out
the interrupt routing. aux/acpi can try to enable more stuff if it needs
to later when battery status desired.
dont snoop memory space regions in amlmapio(), this is just wrong as
amlmapio() is *lazily* mapping regions as they are accessed, so the
range table would never be really complete. instead, we provide generic
access to the physical address space, excluding kernel and user memory
with acpimem file.
cinap_lenrek [Sat, 22 Oct 2016 22:31:42 +0000 (00:31 +0200)]
ip: simplify code as packblock() and concatblock() will never error
cinap_lenrek [Sat, 22 Oct 2016 22:29:41 +0000 (00:29 +0200)]
devip: simplify ipbwrite() by using retun value of qbwrite()
cinap_lenrek [Sat, 22 Oct 2016 22:25:17 +0000 (00:25 +0200)]
ip/icmp: only reply to echo request when directed to us and source is unicast
cinap_lenrek [Fri, 21 Oct 2016 22:35:17 +0000 (00:35 +0200)]
gif: just read and decode the first image when -9 or -c flag is specified
cinap_lenrek [Fri, 21 Oct 2016 22:04:21 +0000 (00:04 +0200)]
libdraw: avoid dropping queued button change mouse events in emouse()
cinap_lenrek [Fri, 21 Oct 2016 22:02:23 +0000 (00:02 +0200)]
mothra: avoid flushimage() calls, event() will implicitely flush
spew [Thu, 20 Oct 2016 03:15:51 +0000 (22:15 -0500)]
mpc: remove unused yylval type
ftrvxmtrx [Tue, 18 Oct 2016 21:05:09 +0000 (23:05 +0200)]
aux/acpi: batteries and CPU temp reading so far
ftrvxmtrx [Tue, 18 Oct 2016 21:04:19 +0000 (23:04 +0200)]
archacpi: optionally export acpi memory regions; properly initialize environment
ftrvxmtrx [Tue, 18 Oct 2016 19:25:19 +0000 (21:25 +0200)]
sam: revert showdata crap
ftrvxmtrx [Tue, 18 Oct 2016 18:27:08 +0000 (20:27 +0200)]
sam: corner cases are hard
ftrvxmtrx [Tue, 18 Oct 2016 18:22:25 +0000 (20:22 +0200)]
sam: fixup :(
ftrvxmtrx [Tue, 18 Oct 2016 18:02:01 +0000 (20:02 +0200)]
samterm: support "showdata" plumb action
stanley lieber [Sun, 16 Oct 2016 18:16:17 +0000 (14:16 -0400)]
fortunes: does that me a dipshit
ftrvxmtrx [Sat, 15 Oct 2016 21:42:22 +0000 (23:42 +0200)]
scram: remove _PTS(5). it just doesn't make any sense
ftrvxmtrx [Sat, 15 Oct 2016 21:34:08 +0000 (23:34 +0200)]
scram: oops. word is 0xffff, not 0xff
ftrvxmtrx [Sat, 15 Oct 2016 21:10:53 +0000 (23:10 +0200)]
scram: run _PTS(5) and disable GPEs before entering S5. x200s shuts down properly now
stanley lieber [Mon, 10 Oct 2016 17:43:48 +0000 (13:43 -0400)]
fortunes: Angular uses the term "scope" in a manner akin to the fundamentals of co
mputer science.
BurnZeZ [Mon, 3 Oct 2016 16:31:48 +0000 (12:31 -0400)]
iwhois(1): make -n work, add .org, and a couple minor changes
cinap_lenrek [Wed, 28 Sep 2016 17:25:23 +0000 (19:25 +0200)]
nusb/kb: set usage to 0 (undefined) for items exceeding usage list
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