summaryrefslogtreecommitdiff
path: root/sys/src
AgeCommit message (Collapse)Author
2013-05-06ape: fix uninitialized variable bug in getfields()ppatience0
2013-05-06mergeppatience0
2013-05-06access: unused variableppatience0
2013-05-06pbs: allow 9bootfat start cluster beyond 0xFFFFcinap_lenrek
pbs failed to load (silently loading garbage) 9BOOTFAT from start cluster beyond FFFF because we ignored the low word from the directory entry. now taking the high 16 bit of the directory's start cluster into account.
2013-05-05devip: dont raise error() out of Fsprotocone()cinap_lenrek
Fsprotoclone() is not supposed to raise error, but return nil. ipopen() seemed to assume otherwise as it setup error label before calling Fsprotoclone(). fix ipopen(), make Fsprotoclone() return nil instead of raising error.
2013-05-05devip: handle malloc errors, fix queue leakscinap_lenrek
Fsprotocone(): qopen() and qbypass() can fail and return nil, so make sure the connection was not partially created by checking if read and write queues have been setup by the protocol create hanler. on error, free any resources of the partial connection and error out. netlogopen(): check malloc() error.
2013-05-04libdraw: fix font f->cacheimage nil dereferencecinap_lenrek
the initial fontresize() might fail but its error code is ignored potentially leaving f->cacheimage == nil. make sure we call fontresize() in loadchar() when theres no cacheimage and check the return value to avoid nil pointer dereference.
2013-05-04libmach: update mips disassembler (from sources)cinap_lenrek
2013-05-04sort: handle write error in debug modecinap_lenrek
2013-05-04bio: use UTFmax for Bungetsize and fix libmach to include <libc.h> before ↵cinap_lenrek
<bio.h> (from sources)
2013-05-04nedmail: recognize image/jpg mimetypecinap_lenrek
2013-05-04u9fs: fix compilation warningsftrvxmtrx
2013-05-04u9fs: make it compileftrvxmtrx
2013-05-03ape: get rid of fixed MUXADDR for buffered i/ocinap_lenrek
instead of trying to resize the segment (which will not work when the kernel picks the address as it will allocate right before the base of the topmost segment), we create the mux segment with the maximum size needed (arround 1.4MB) for OPEN_MAX filedescriptors. buf slots will be reused and slots get demand paged once used.
2013-05-03ape: remove unused variables from _buf (from erik qunastros _bufupd patch)cinap_lenrek
2013-05-02fixed operand size for ADD SP, nqeed
2013-05-02devsd: initialize unit->sense[0] in sdsetsense() (from erik quanstroms 9atom)cinap_lenrek
2013-05-01chan: fix potential path leak on clone in namec() (from erik quanstroms 9atom)cinap_lenrek
2013-05-01devpipe: fix channel and queue leaks (from erik quanstroms 9atom)cinap_lenrek
2013-05-01aoe: updating aoe driver from erik quanstros 9atomcinap_lenrek
1 the config string was grabbed Aoehsz too far into the packet due to using the wrong pointer to start. 2 never accept a response with tag Tmgmt or Tfree. 3 defend against "malicious" responses; ones with a response Aoehdr.type != request Aoehdr.type. this previously could cause the initiator to crash. 4 vendor commands were improperly filtered out.
2013-05-01devloopback: fix potential channel leak on allocation error (from eriks 9atom)cinap_lenrek
2013-05-01cc: accept 24 bit numeric runescinap_lenrek
2013-05-01frexp: handle NaN values (from sources)cinap_lenrek
2013-05-01uartpci: add detection for StarTech PCI8S9503V (P588UG) (from sources)cinap_lenrek
2013-04-30rio: fix highlight text for -bstanley lieber
2013-04-295c: dont emit conditional integer division instructionscinap_lenrek
the integer division instructions are emulated with _div() function patched in by 5l which does not handle conditional execution. so do not optimize away the branch in that case.
2013-04-29Fix double-free fault when isaconfig returns nothing for "etherN". (from ↵cinap_lenrek
richard millers devether-doublefree patch)
2013-04-28bootrc: fix spacing when asking for fs/auth ipppatience0
2013-04-27libdraw: avoid printing error on closemouse()cinap_lenrek
2013-04-27libdraw: exit mouseproc() on read error instead of spinningcinap_lenrek
2013-04-26nusb/serial: Add support for Amontec JTAGkey devices (from sources)cinap_lenrek
2013-04-24make all the commands agnostic about Rune width. (from sources)cinap_lenrek
2013-04-24cpu: don't print spurious errstr for bad auth method, fix commentcinap_lenrek
2013-04-23ftpd: "opts utf8 on"cinap_lenrek
2013-04-23ftpd: fix nil pointer derefernece when ominiting arguments to opts commandcinap_lenrek
2013-04-23ftpd: implement "OPTS UTF-8 ON", fix uninitialized printing uninitialized ↵cinap_lenrek
memory in HELP command
2013-04-22- use the double-buffer buffer to allow redrawing on resize events.cinap_lenrek
specifing -d on the command line now only disables synchronous drawing events. - use threaded mouse and keyboard to allow for asynchronous receoption of quit messages. this allows plot to exit before drawing is completed. for programs like mapdemo, this is important. there were two things that needed to get fixed as a result - replace fprint(2, ...); exits("bad"); with sysfatal. also get rid of stdio. - dpoint needed a mach-dependentent (sic) version. otherwise points on a resized screen will not be properly placed.
2013-04-22ether8169: fix deadlock in allocation error case for attach. (thanks erik)cinap_lenrek
typo in error case, should qunlock() instead of qlock().
2013-04-20aux/listen: do not redirect stderr (fd 2) of the listener to the network ↵cinap_lenrek
connection Charles Forsyth described the problem below in: http://9fans.net/archive/2013/04/190 In a few cases, the kernel will use pprint to put a diagnostic on the standard error (file descriptor 2). One of those is a warning that the process has used more than 100 file descriptors. That message is possibly obsolete and could be removed, but there are others, such as notifying an uncaught trap that are probably helpful to make visible. In any case, as things stand, a busy exportfs might have many file descriptors open, provoking the diagnostic. Unfortunately, aux/listen and aux/listen1 connect file descriptor 2 to the incoming network connection. If the connection's protocol is not a simple, unstructured, textual one, diagnostics on the standard error will cause confusion, in particular to devmnt.c if 9p is used. /rc/bin/service files that start applications that run special protocols might want to redirect file descriptor 2; alternatively, perhaps aux/listen shouldn't redirect fd 2 by default: the few commands that do connect the remote user to shells, or equivalent, including telnetd and sshd could dup 1 to 2 when that was sensible.
2013-04-20mergecinap_lenrek
2013-04-20ip/torrent: use NPROC processes in parallel for calculating initial piece hashescinap_lenrek
2013-04-16mouse: fix cursor redraw to prevent screen blanking (thanks erik)cinap_lenrek
2013-04-14devmouse: remove unneeded reference to kerndatecinap_lenrek
2013-04-14sdiahci: add pci id for 82801eb/er and c210cinap_lenrek
2013-04-14reduce software cursor flickeringcinap_lenrek
the software cursor starts flickering and reacts bumby if a process spends most of its time with drawlock acquired because the timer interrupt thats supposed to redraw the cursor fails to acquire the lock at the time the timer fires. instead of trying to draw the cursor on the screen from a timer interrupt 30 times per second, devmouse now creates a process calling cursoron() and cursoroff() when the cursor needs to be redrawn. this allows the swcursor to schedule a redraw while holding the drawlock in swcursoravoid() and cursoron()/cursoroff() are now able to wait for a qlock (drawlock) because they get called from process context. the overall responsiveness is also improved with this change as the cursor redraw rate isnt limited to 30 times a second anymore.
2013-04-12pci: Add Intel C216 chipset PCI support (from sources)cinap_lenrek
2013-04-12usbehci: align page td buffer for >16K transfers, fix isohsinit()cinap_lenrek
from ehci spec: The buffer pointer list in the qTD is long enough to support a maximum transfer size of 20K bytes. This case occurs when all five buffer pointers are used and the first offset is zero. A qTD handles a 16Kbyte buffer with any starting buffer alignment.
2013-04-11mergecinap_lenrek
2013-04-11ndb/dns: dont override req->aborttime in udpquery()cinap_lenrek
overriding aborttime in udpquery() makes no sense. it causes recursive queries to extend the timeout infinitely. nobody but the issuer of the request should modify aborttime.
2013-04-11libauth: auth_chuid empty (from sources)cinap_lenrek
instead of an "i/o count too small", detect a missing capability (empty, null string) before the write, and diagnose it as such.