summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-03-16ssam: don't pollute the environment.stanley lieber
2015-03-16mp(2) man page: mpinvert, not mpinverse (thanks, pr)stanley lieber
2015-03-16kernel: get rid of auxpage() and preserve cache index bits in Page.va in ↵cinap_lenrek
mount cache the mount cache uses Page.va to store cached range offset and limit, but mips kernel uses cache index bits from Page.va to maintain page coloring. Page.va was not initialized by auxpage(). this change removes auxpage() which was primarily used only by the mount cache and use newpage() with cache file offset page as va so we will get a page of the right color. mount cache keeps the index bits intact by only using the top and buttom PGSHIFT bits of Page.va for the range offset/limit.
2015-03-16kernel: avoid repeated calls to reclaim(), dont miss last page in Ptecinap_lenrek
when we are skipping a process because we could not acquire its segment lock, dont call reclaim() again (which is pointless as we didnt pageout any pages), instead try the next process. the Pte.last pointer is inclusive, so don't miss the last page in pageout().
2015-03-15rsa(8): recommend secstore(1) for Plan 9 RSA private key storagecinap_lenrek
2015-03-15mothra: <del>, <ins>, <wbr>cinap_lenrek
2015-03-15mothra: add <strike> supportcinap_lenrek
2015-03-15boot: disable group/other permission checking in bootfs paqfscinap_lenrek
when building bootfs in d770 mode directory, the other permissions in bootfs paq are masked off which results in boot to fail. theres no point in checking group/other permissions on boot, so just disable permissin checking in paqfs with the -a flag.
2015-03-14doom: print correct version number on mismatch (thanks qu7uux)cinap_lenrek
2015-03-14webfs: do not send credentials in automatic referer urlcinap_lenrek
2015-03-14rc-httpd: support for http basic authentication, fix cgi support to work ↵cinap_lenrek
with hgweb.cgi
2015-03-14httpauth: little helper for rc-httpd to do http basic authentication with ↵cinap_lenrek
plan9 auth server
2015-03-13hg, python: remove proto filescinap_lenrek
2015-03-13hg: install hgweb templatescinap_lenrek
2015-03-12pemencode: handle base64 input length < 3, fix bogus zero terminationcinap_lenrek
2015-03-12imap4d: simplify auth code using encodefmt(), use readn() to get multiple of ↵cinap_lenrek
3*18 in base64 input buffer
2015-03-12webfs: simplify http basic auth code by using encodefmt()cinap_lenrek
2015-03-12upas/marshal: deduplicate cistrcmp()/cistrncmp()/enc64()cinap_lenrek
use the libc versions of these routines avoiding code duplication.
2015-03-11ndb/dns: reduce sencodefmt() to not link in enc32()/enc64() encoderscinap_lenrek
the special sencodefmt() in ndb/dn.c is only used with %H format for hexadecimal printing for binary strings. removing the unused calls to enc32() and enc64() reduces the code size by arround 4K. (this is usefull for ndb/getip which gets linked into the kernel).
2015-03-11encode(2): clarify lim argument to enc*(), add SOURCE reference for encodefmt()cinap_lenrek
2015-03-11mergecinap_lenrek
2015-03-11smtp, smtpd: fix use of enc64(), fix memory leaks in doauth()cinap_lenrek
the approximation of n*2 to calculate the number of output bytes for enc64() fails for inputs of size < 3. this is fixed by using encodefmt() which gets the calculation right and also simplifies the code avoiding the allocation and freeing of intermediate string buffers.
2015-03-11netaudit: comment file server auth test (unreliable on cwfs)aiju
2015-03-11gif: fix color table clipping (for cb5.gif)cinap_lenrek
2015-03-11factotum: remove unused extern declarations of invoker and authdom from headercinap_lenrek
2015-03-10kernel: fix integer overflow in syssegflush(), segment code cleanupcinap_lenrek
mcountseg(), mfreeseg(): use Pte.first/last pointers when possible and avoid constructs like s->map[i]->pages[j]. freepte(): do not zero entries in freepte(), the segment is going away and here is no point in zeroing page pointers. hoist common code at the top avoiding duplication. segpage(), fixfault(): avoid load after store for Pte** pointer. fixfault(): return -1 in default case to avoid the "used but not set" warning for mmuphys and get rid of the useless initialization. syssegflush(): due to len being unsigned, the pe = PGROUND(pe) can make "chunk" bigger than len causing a overflow. rewrite the function and deal with page alignment and errors at the beginning. syssegflush(), segpage(), fixfault(), putseg(), relocateseg(), mcountseg(), mfreeseg(): keep naming consistent.
2015-03-10wpa(8): the -p flag will also prompt for user/password on wpa enterprisecinap_lenrek
2015-03-10pushtls(2): fix signature to TLSconn.trace()cinap_lenrek
2015-03-09webfs: implement CONNECT method for https connections over proxycinap_lenrek
when using a http proxy, establish secure tls connection to the other end with the CONNECT method so the proxy.
2015-03-08theo: OpenBSD is not generally known as an exposed democracy.stanley lieber
2015-03-08g: search .awk and .rc filesstanley lieber
2015-03-08gs: fix bug 694539. Reading off the end of the cbuf when dash pattern len is maxcinap_lenrek
2015-03-07kernel: catch address overflow in syssegfree()cinap_lenrek
the "to" address can overflow in syssegfree() causing wrong number of pages to be passed to mfreeseg(). with the current implementation of mfreeseg() however, this doesnt cause any data corruption but was just freeing an unexpected number of pages. this change checks for this condition in syssegfree() and errors out instead. also mfreeseg() was changed to take ulong argument for number of pages instead of int to keep it consistent with other routines that work with page counts.
2015-03-07snap: fix readseg() to cope with > 2gb segmentscinap_lenrek
2015-03-06mergecinap_lenrek
2015-03-06zynq: sdio supportcinap_lenrek
2015-03-06devsd: always page align sd bufferscinap_lenrek
sdbio() tests if it can pass the buffer pointer directly to the driver when it is already in kernel memory. we also need to check if the buffer is properly aligned but alignment requirement is handled in system specific sdmalloc() and was not known to devsd. to solve this, we *always* page align sd buffers and get rid of the system specific sdmalloc() macro (was only used in bcm kernel).
2015-03-06zynq: do mpinit() early so cpu1 debug prints do not intermixcinap_lenrek
2015-03-05mergecinap_lenrek
2015-03-05set /mail/tmp permissions world writable in cdprotocinap_lenrek
2015-03-05zynq: fix usb by implementing delay() and give proper port speed in portstatuscinap_lenrek
2015-03-04col(1): add SOURCE (thanks, qrstuv)stanley lieber
2015-03-04libthread: get rid of chaninit() (thanks qrstuv)cinap_lenrek
chaninit() does not initialize Chan.qentry and Chan.nentry and there is no way to get rid of such a channel. nobody is using it, so removing the function to avoid confusion.
2015-03-03kernel: fix physical segment handlingcinap_lenrek
ignore physical segments in mcountseg() and mfreeseg(). physical segments are not backed by user pages, and doing putpage() on physical segment pages in mfreeseg() is an error. do now allow physical segemnts to be resized. the segment size is only checked in segattach() to be within the physical segment! ignore physical segments in portcountpagerefs() as pagenumber() does not work on the malloced page structures of a physical segment. get rid of Physseg.pgalloc() and Physseg.pgfree() indirection as this was never used and if theres a need to do more efficient allocation, it should be done in a portable way.
2015-03-02libdraw: font->display->defaultsubfont vs. display->defaultsubfont, dead ↵cinap_lenrek
code, malloc erros it is possible to have fonts belong to different or no display, so the check for defaultsubfont has to be against font->display, not the global display variable. remove unused freeup() routine. handle strdup() error in allocsubfont() and realloc() error in buildfont().
2015-03-01devmnt: remove unused mntstats fields from Mntrpccinap_lenrek
2015-03-01factotum: cleanup getnvramkey()cinap_lenrek
- remove secstore password code, it is not used anymore. - zero the Nvrsafe structure on the stack before returning. - use smprint(), can't overflow.
2015-03-01libdraw: use multiple read() calls in openfont() to read .font filecinap_lenrek
font files might be bigger than the i/o unit, so do multiple reads until eof to read it.
2015-03-01libdraw: use readn() to read headers and Fontchar arraycinap_lenrek
the Fontchar array might be bigger than the i/o unit, so we have to use readn() to properly read it.
2015-03-016c: fix missing memset in Bconv()cinap_lenrek