Commit graph

5883 commits

Author SHA1 Message Date
cinap_lenrek 34f5a83330 pc64: state mp.h dependency for archacpi.$O 2017-04-11 02:26:39 +02:00
cinap_lenrek 075e1ddd7d upas/fs: remove imap lastread debounding
its unclear why this was here, waketime logic should handle
this already.
2017-04-09 04:36:47 +02:00
cinap_lenrek 1d94a18e56 upas/fs: fix sync condition
we used to check for mb->d->name != nil before stating, to avoid
stating pop3/imap mailboxes who don't really have a local file,
but this breaks when the md->d is reconstructed (faked) from
the index! resulting in the mailbox stop being refreshed.

the solution is to not have mb->d == nil for imap/pop mailoxes.
2017-04-09 04:32:38 +02:00
cinap_lenrek 35f6a75355 upas/fs: make use of Maxmsg consistent 2017-04-08 23:01:19 +02:00
cinap_lenrek 445d64a387 upas/fs: simplify imap4read() 2017-04-08 23:00:48 +02:00
cinap_lenrek f14ad276c2 upas/fs: fix dir comparsion and skip directories in mdir, avoid stat
- ignore directories in dirskip()
- use sortkey of 0 for invalid items, otherwise it could confuse qsort()
- use file size from dirreadall() instead of doing stat
- various cleanups
2017-04-08 22:59:15 +02:00
cinap_lenrek a208a93733 upas/send: use openfolder() to deliver mail to avoid code duplication 2017-04-08 22:52:06 +02:00
cinap_lenrek fd78f6722e upas/common: deliver mail to mdir as .tmp file and rename after it has been fully written
theres a race condition when mail delivery to mdir is slow,
then upas/fs sees partial mail file and caches the truncated
file size.

to avoid this, delivery will create the new mail file with
the .tmp extension (which is ignored by upas/fs) and after
everything has been written, rename it to the final name.
2017-04-08 22:50:17 +02:00
cinap_lenrek 00fbdd622a kernel: avoid waserror() botch in devwalk (from drawterm, thanks aiju)
calculate alloc flag before waserror(), as compilers like
gcc will not notice the value changing later because
setjump() restores the old value due to callee-saves.

change is applies here to make it easier to merge with
drawterm.

thanks to aiju for debugging this; used to cause drawterm
memory leak until compiled with gcc -O0.
2017-04-05 00:34:07 +02:00
cinap_lenrek 30c05fe3dd kernel: fix memory leak in checkpagerefs() debug function (thanks aiju) 2017-04-04 20:13:31 +02:00
cinap_lenrek 249ff9a24c tlshand: simplify tlsReadN() 2017-04-04 19:01:57 +02:00
cinap_lenrek de80075fc6 tlshand: fix mpint to bytes conversion, reorganize send/recv buffer, check for overflow in msgSend()
when converting mpint to bytes, always pad it to the size of
the modulus (RSA,DHE,ECDHE). mptobytes() now takes a byte len
parameter which the caller usually calculates from the group
modulus using mpsignif(). this bug sometimes caused "bad record mac"
after the handshake.

use a shared buffer, given that msgSend()/msgRecv() don't overlap
we can use the first half for sending, and the top half for
receiving, shifting down as neccesary. the space beween sendp and
recvp is free.

explicitely check for overflow in msgSend().
2017-04-04 01:59:17 +02:00
cinap_lenrek 02ffb19904 merge 2017-04-03 02:50:36 +02:00
cinap_lenrek 6ff5c10ffb tlshand: fix ECDHE and DHE for SSLv3 2017-04-03 02:48:47 +02:00
aiju 1d891d163e fix typo in 9p(2) manpage 2017-04-03 00:11:40 +00:00
cinap_lenrek 8829d51f50 devvga: remove unused copy of checkport() function 2017-04-02 20:17:44 +02:00
cinap_lenrek 8ea31ae7b2 devvga: fix mistake 2017-04-02 20:10:44 +02:00
cinap_lenrek a6d852d0a6 devvga: include hwgc in vgactl file 2017-04-02 20:08:15 +02:00
cinap_lenrek 6a1841dce5 aux/wpa: go to background when not prompting, handle open networks 2017-04-02 19:05:56 +02:00
aiju e09adf5944 pc(1): fix memory leak and add clog() function 2017-04-02 14:47:23 +00:00
cinap_lenrek e0087b2a78 nusb/lib: make usbcmd() return value symmetic; returning size of data phase (if any) (thanks aiju)
usbcmd() with Rh2d used to return the command size (8+ndata) wile returning
only ndata for Rd2h. this changes it to always return ndata for Rh2d. it
mostly doesnt matter as Rh2d callers only check r < 0 for error, but this
makes the interface symmetic.
2017-04-01 22:19:58 +02:00
cinap_lenrek 25725eb0ad hjfs: avoid 8c "non-interruptable temporary" warning 2017-04-01 15:21:28 +02:00
aiju 089d493d96 chgrp: remove unused function declaration (thanks archeus) 2017-04-01 09:01:26 +00:00
aiju 4175b19c94 games/blit: remove strange debugging line 2017-04-01 08:57:03 +00:00
cinap_lenrek d801a4f300 ndb/dns: double Maxretries for long cname redirection chains 2017-04-01 03:35:30 +02:00
aiju 9cb67a523f nusb/serial: pl2303: better error handling 2017-03-31 20:20:25 +00:00
cinap_lenrek 330916bfa5 merge 2017-03-30 23:39:03 +02:00
cinap_lenrek 557cbe10ad sdnvme: enable in pcf, pccpuf, pc64 kernel configuration 2017-03-30 23:37:28 +02:00
cinap_lenrek 8cacd2cc0a sdnvme: don't write completion queue doorbell register when nothing has been processed
turns out on real hardware, the front falls off if we write
the completion queue doorbell registers without consuming
an entry. so only write the register when we have processed
something.
2017-03-30 23:33:46 +02:00
spew 0d3c3ba935 hjfs: disable hjfs check until more functionality is complete 2017-03-29 13:54:50 -05:00
spew 3525d2f7a7 hjfs: improve error messaging around blocks that are not found 2017-03-28 23:04:28 -05:00
spew 1c13d41b8c hjfs: Fix bugs in ref count scan check. Enable as a console command (caveat: command arguments will change as I implement more functionality) 2017-03-28 20:39:14 -05:00
cinap_lenrek e51044884b move blit roms to /sys/lib/blit 2017-03-29 01:33:16 +02:00
cinap_lenrek 5a36451a5e blit: fix mkfile 2017-03-29 01:20:13 +02:00
cinap_lenrek 0c1110ace2 kernel: fix twakeup()/timerdel() race condition
timerdel() did not make sure that the timer function
is not active (on another cpu). just acquiering the
Timer lock in the timer function only blocks the caller
of timerdel()/timeradd() but not the other way arround
(on a multiprocessor).

this changes the timer code to track activity of
the timer function, having timerdel() wait until
the timer has finished executing.
2017-03-29 00:30:53 +02:00
cinap_lenrek bfae9e08be sdnvme: NVMe controller driver (work in progress)
basic NVMe controller driver, reads and writes work.
"namespaces" show up as logical units.
uses pin/msi interrupts (no msi-x support yet).
one submission queue per cpu, shared completion queue.
no recovery from fatal controller errors.
only tested in qemu (no hardware available).

commiting this so it can be found by someone who has
hardware.
2017-03-29 00:21:35 +02:00
aiju 83dd98022d games/blit: mkfile: install into /bin/games 2017-03-28 19:48:50 +00:00
aiju 447672be5c add games/blit 2017-03-28 19:43:09 +00:00
spew f14e277c58 hjfs: fix broken dprint 2017-03-27 22:05:53 -05:00
spew 3103efb8b0 hjfs: simplify dprinting 2017-03-27 21:38:12 -05:00
spew 2e64925b91 hjfs: add simple scan check of directory entry blocks 2017-03-27 21:27:45 -05:00
spew e02bc28aaf hjfs: check: check a block if its ref count is _not_ zero. Also check all the ref counts of blocks of a directory and clean up messages 2017-03-27 17:57:10 -05:00
stanley lieber 4671df38fe various fortune corpuses: Nil means nothing. 2017-03-27 13:33:09 -04:00
spew 3edac80327 hjfs: merge start of hjfs check implementation 2017-03-27 09:57:08 -05:00
spew 347bb2a7a7 hjfs: start implementation of checking a directory 2017-03-27 09:55:56 -05:00
cinap_lenrek f59ef5e8e7 devsd: handle case where theres no ifc->enable() function 2017-03-26 16:53:19 +02:00
cinap_lenrek 2b323158bd merge 2017-03-26 16:46:58 +02:00
cinap_lenrek 019bb580da devsd: check return value of ifc->enable(), don't leak unit name/user strings 2017-03-26 16:45:34 +02:00
cinap_lenrek 1889aa50c3 sdvirtio: return 1 for success in vioenable()/viodisable() 2017-03-26 16:43:32 +02:00
aiju cf8f90e1d3 file(1): recognise Xilinx bitstreams 2017-03-25 22:29:29 +00:00