Commit graph

1861 commits

Author SHA1 Message Date
cinap_lenrek
7c3ea4360b hpost: add -l flag to get location url after POST 2012-10-18 14:38:07 +02:00
cinap_lenrek
909efb22c5 /sys/src/cmd/auth/mkfile: fix lib.$O.a race 2012-10-18 03:49:40 +02:00
cinap_lenrek
1ee5cd7425 kernel: mnt cache rework
avoid double entries in the cache for copen() and properly handle
locking so we wont just give up if we cant lock the Mntcache entry,
but drop the cache lock, qlock the Mntcache entry, and then recheck
the cache.

general cleanup (cdev -> ccache, use eqchantdqid())
2012-10-17 15:48:30 +02:00
stanley lieber
e51845797b fortunes, rob, rsc, troll: the war is over 2012-10-16 11:21:21 -05:00
cinap_lenrek
fcacce0f2f kernel: duppage cleanup
remove the sched() call and retry loop from duppage() and just
drop the page lock, then reacquire it after lock(&palloc).
2012-10-16 16:10:26 +02:00
cinap_lenrek
45b99937be kernel: cachedel() lock order, lookpage, cleanup
the lock order of page.Lock -> palloc.hashlock was
violated in cachedel() which is called from the
pager. change the code to do it in the right oder
to prevent deadlock.

change lookpage to retry on false hit. i assume that
a false hit means:

a) we'r low on memory -> cached page got uncached/reused

b) duppage() got called on the page, meaning theres another
cached copy in the image now.

paging in is expensive compared to the hashtable lookup, so
i think retrying is better.

cleanup fixfault, adding comments.
2012-10-16 14:12:21 +02:00
cinap_lenrek
1335be8276 swap: track swap pages with > 255 references, setswapchan() swapimage.c
swaped pages use a 8bit refcount where as the Page uses a 16bit one.
this might be exploited with having a process having a single page
swaped out and then forking 255 times to make the swap map refcount
overflow and panic the kernel.

this condition is probably very rare. so instead of doubling the
size of the swap map, we add a single 32bit refcount swapalloc.xref
which will keep the combined refcount of all swap map entries who
exceeded 255 references.

zero swapimage.c in setswapchan() after closing it as the stat() call
below might error leaving a dangeling pointer.
2012-10-15 14:04:30 +02:00
cinap_lenrek
2f732e9a85 kernel: attachimage / exec error handling
attachimage()'s approach to handling newseg() error is flawed:

a) the the image is on the hash table, but ref is still 0, and
there is no segment/pages attached to it so nobody is going to
reclaim / putimage() it -> leak

b) calling pexit() would deadlock us because exec has acquired
up->seglock when calling attachimage(), so this would just deadlock.

the fix does the following:

attachimage() will putimage() and nexterror() if newseg() fails
instead of pexit(). this is less surprising.

exec now keeps the condition variable commit which is set once
we are commited / reached the point of no return and check this
variable in the highest waserror() handler and pexit() us there.

this way we have released up all the locks and pexit() will
cleanup.

note: this bug shouldnt us hit in with the current newseg()
implementation as it uses smalloc() which would wait to
satisfy the allocation instead of erroring.
2012-10-14 19:48:46 +02:00
cinap_lenrek
fef6ff96ad update fshalt(8) manpage 2012-10-14 13:33:10 +02:00
cinap_lenrek
143fcc0a42 formpost becomes hpost 2012-10-14 06:28:58 +02:00
cinap_lenrek
45c0c41280 urlencode: fix /fd/0 use 2012-10-13 15:35:39 +02:00
stanley lieber
324ab59b08 ircrc(1): man page fixes, thanks pap 2012-10-12 09:17:47 -05:00
stanley lieber
2f83fa7f74 hget(1): fix man page errors, add another example 2012-10-11 22:06:11 -05:00
stanley lieber
b786ff0544 add /rc/bin/formpost; add formpost to hget(1) man page 2012-10-11 16:37:48 -05:00
cinap_lenrek
5cddd21627 cifsd: fix 64bit fileoffset bug
the low 32bit word got *sign-extended* on vlong conversion. m(
2012-10-11 21:38:54 +02:00
stanley lieber
05a0570970 ircrc(1): fix error 2012-10-11 11:34:15 -05:00
stanley lieber
1ef8bffd3c add /sys/man/1/ircrc, thanks pap 2012-10-11 11:31:40 -05:00
cinap_lenrek
16d61d3c97 kernel: try to catch some (rare) mistakes
kstrcpy() did not null terminate for < 4 byte buffers. fixed,
but i dont think there is any case where this can happen in
practice.

always set malloctag in kstrdup(), cleanup.

always use ERRMAX bounded kstrcpy() to set up->errstr, q->err
and note[]->msg. paranoia.

instead of silently truncating interface name in netifinit(),
panic the kernel if interface name is too long as this case
is clearly a mistake.

panic kernel when filename is too long for addbootfile() in
devroot. this might happen if your kernel configuration is
messed up.
2012-10-11 17:29:16 +02:00
cinap_lenrek
d9394b0d87 6in4: fix exit status, less strict src filtering, logging (import from sources) 2012-10-11 13:21:30 +02:00
cinap_lenrek
73e7e47d5b kenrel: simplify image cache by use of ccloseq() 2012-10-10 08:22:35 +02:00
cinap_lenrek
ca9f286b6c vncv: cleanup 2012-10-09 16:22:19 +02:00
cinap_lenrek
6f2ea28817 vncv: fork tcs with RFNOWAIT as we dont collect wait message 2012-10-09 15:26:45 +02:00
cinap_lenrek
3cc39a0ac7 vncv: snarfvers race, silly walks, add -l option for clipboard charset 2012-10-09 15:15:57 +02:00
cinap_lenrek
14817c4991 /sys/lib/acid/kernel: fix imagecache() and procenv() 2012-10-09 03:52:18 +02:00
cinap_lenrek
e52677328b merge 2012-10-09 03:23:21 +02:00
cinap_lenrek
eb13b7debc /sys/lib/acid/kernel: needacid("chan") 2012-10-09 03:22:28 +02:00
aiju
4048ceedd6 fortunes 2012-10-08 22:14:19 +02:00
stanley lieber
8b24e40e29 netaudit(8): english 2012-10-07 22:06:47 -05:00
cinap_lenrek
df66638fb5 netaudit changes and manual page 2012-10-08 00:56:00 +02:00
stanley lieber
e598b6dd31 hjfs(8): fix wording 2012-10-07 15:09:04 -05:00
stanley lieber
104c0eaf29 fortunes, rsc, rob: more 2012-10-07 14:40:29 -05:00
stanley lieber
c2881f43fb add /sys/man/8/hjfs 2012-10-07 14:39:45 -05:00
cinap_lenrek
54c5131529 /sys/lib/acid/kernel: fix intrcount() 2012-10-07 08:03:02 +02:00
stanley lieber
3049e7036b hjfs(4): fly your flag 2012-10-06 12:27:40 -05:00
stanley lieber
f80ac5dd42 fortunes, rob, rsc, theo, troll: updates 2012-10-06 11:56:56 -05:00
cinap_lenrek
83ffc3a1da pc kernel: make imagemem maxsize 10% less of mainmem maxsize 2012-10-06 07:05:08 +02:00
stanley lieber
349abfcd79 add /sys/man/4/hjfs 2012-10-06 03:49:53 +00:00
cinap_lenrek
16a9d6bbd3 tftpfs(4) example typo 2012-10-06 05:14:46 +02:00
cinap_lenrek
bac191c407 httpfile(4) section name quoting 2012-10-06 05:13:14 +02:00
cinap_lenrek
d21df97764 paint(1) fix bad cross reference 2012-10-06 05:12:07 +02:00
stanley lieber
c23d478a25 tftpfs(4): minor corrections 2012-10-05 21:25:55 -05:00
cinap_lenrek
61d1967e74 tftpfs: add manpage, add -x option 2012-10-06 04:14:48 +02:00
cinap_lenrek
5baafe7307 libfis: do not lie about logical sector units 2012-10-06 22:56:05 +02:00
cinap_lenrek
4cfd5cb02e urlencode: encode null bytes 2012-10-05 23:38:43 +02:00
cinap_lenrek
310afb88ef urlencode: fix null byte hexdigit() bug 2012-10-05 23:30:05 +02:00
cinap_lenrek
9ac9a135c8 urlencode: decode + as space 2012-10-05 23:21:17 +02:00
cinap_lenrek
4af5408953 replace urlencode with c version that isnt broken for utf-8 2012-10-05 23:14:23 +02:00
aiju
56df14a6a3 fixed ream code; added megabyte output to df 2012-10-03 18:27:22 +02:00
cinap_lenrek
aeb41b90f6 merge 2012-10-03 18:19:17 +02:00
cinap_lenrek
8840830ab8 liblex: fix allprint() definition (from sources) 2012-10-03 18:18:01 +02:00
aiju
0ebd85f72c hjfs: debug-chdeind and sync commands added 2012-10-03 18:10:56 +02:00
cinap_lenrek
76c102e548 apply sources patch cc-cpp-c99-comm
When running "?c -p ...", ensure the backend cpp recognizes C++ comments.

2c(1) states that the compilers recognize // comments, and the bare compilers
do.  But if you invoke the compiler with '-p', the backend cpp process
doesn't handle // comments properly unless you also give ?c the undocumented
'-+' option (which it passes through to cpp).
2012-10-03 18:09:53 +02:00
aiju
87b66bade2 fixed debug-getblk 2012-10-03 18:01:23 +02:00
aiju
20f8378ea1 hjfs debug commands 2012-10-03 17:45:58 +02:00
aiju
2bcaa6be7e fixed potential bug in hjfs 2012-10-03 17:23:17 +02:00
cinap_lenrek
549b4e0225 upas/marshal: fix usage line and add missing flags to manpage 2012-10-02 00:37:17 +02:00
cinap_lenrek
9e7ecc41d5 devproc buffer overflow, strncpy
in devproc status read handler the p->status, p->text and p->user
could overflow the local statbuf buffer as they where copied into
it with code like: memmove(statbuf+someoff, p->text, strlen(p->text)).
now using readstr() which will truncate if the string is too long.

make strncpy() usage consistent, make sure results are always null
terminated.
2012-10-01 02:52:05 +02:00
cinap_lenrek
347ac6ef58 guesscpuhz(), apm suspend
use fastclock timer (pit2) to measure cpufreq in guesscpuhz(). this
gives a bigger period minimizing the danger of overrun as pit2 runs
at the constant maximum period of 0x10000 ticks. also use smaller
loop increments (1000) and bigger maximum loop upper bound.

move the loops < ... check to the bottom of the loop so we get the
effective count *before* adding the next loop increment.

ilock() while doing measurements in guesscpuhz() to prevent accidents
with other processors reading fastclock or doing guesscpuhz()
in parralel.

export new i8253reset() function for apm to reset the timers after
a apm bios suspend.
2012-09-30 19:41:34 +02:00
cinap_lenrek
2204bb7321 ether82557: timeout for ifstats DumpSC command 2012-09-30 16:16:20 +02:00
cinap_lenrek
5d64e428eb fix devproc and killbig segment race
we have to acquire p->seglock before we lock the individual
segments of the process and lock them. if we dont then pexit()
might free the segments before we can lock them causing the
"qunlock called with qlock not held, from ..." prints.
2012-09-30 16:14:27 +02:00
stanley lieber
fa08484d47 cpuid(8): fix spelling 2012-09-28 21:49:12 -05:00
cinap_lenrek
cd9ac26eb7 cpuid(8) manpage improments 2012-09-29 04:12:42 +02:00
cinap_lenrek
934442ace2 cpuid(8) manpage 2012-09-29 03:57:59 +02:00
cinap_lenrek
67f3dbdaee mothra: fix select boxes in textview 2012-09-28 01:53:14 +02:00
aiju
7a91a85509 fixed hjfs df 2012-09-27 17:08:52 +02:00
aiju
9cec2db619 really renamed statw to df 2012-09-27 16:26:47 +02:00
aiju
38e993c731 renamed statw to df 2012-09-27 16:26:28 +02:00
aiju
196f605e83 trivial mistake 2012-09-27 15:10:03 +02:00
aiju
45f76d6191 hjfs: statw command 2012-09-27 15:06:42 +02:00
stanley lieber
72061412ce fortunes, rob, rsc: updates 2012-09-26 18:52:49 -05:00
cinap_lenrek
37e8a817ea mothra: fix url snarfing 2012-09-26 19:32:34 +02:00
cinap_lenrek
5961379aba mothra: display url is page list if no title is available 2012-09-26 19:21:04 +02:00
cinap_lenrek
8035bb7dd1 mothra: never snarf the "Go:" box 2012-09-26 19:00:50 +02:00
cinap_lenrek
2b7330765a mothra: dont make all images into links (only in mothmode) 2012-09-26 18:28:10 +02:00
cinap_lenrek
03f2668d68 libdraw: enter()/eenter() ^W support - we are getting there 2012-09-26 17:35:21 +02:00
cinap_lenrek
d3f93ee1f3 need more coffee 2012-09-26 15:54:25 +02:00
cinap_lenrek
aa3dd7fd8f libdraw: fix ^W corner case tick == 0 for enter()/eenter() 2012-09-26 15:48:57 +02:00
cinap_lenrek
a77f6553d8 libdraw: implement ^W word delete for enter() and eenter() 2012-09-26 15:31:09 +02:00
cinap_lenrek
01e3e719ed mothra: various improvements
* disallow snarf on password entries
* remove current title label as it is displayed in the page list (redundant)
* avoid redrawing page list just to update the title
* check if the chan changed for backup bitmap in pl_rtdraw()
2012-09-24 01:08:09 +02:00
cinap_lenrek
a8a71a36f5 mothra: cache backup bitmap in pl_rtdraw() 2012-09-24 23:32:57 +02:00
cinap_lenrek
8007596779 mothra: forgot to add snarf.c 2012-09-24 22:50:44 +02:00
cinap_lenrek
948d0a1180 mothra: snarf and paste 2012-09-23 20:14:47 +02:00
cinap_lenrek
f68d096fb7 mothra: dont highlight subpanels in textview 2012-09-23 12:11:21 +02:00
cinap_lenrek
da8dd94a7a mothra: fast (offscreen) alpha drawing on scroll 2012-09-23 04:18:39 +02:00
cinap_lenrek
74cdf2c10a mothra: cleanup textview code 2012-09-23 03:48:29 +02:00
cinap_lenrek
bd998b2a78 mothra: text selection 2nd attempt 2012-09-22 19:54:33 +02:00
cinap_lenrek
f34ef5a8d4 mothra: first attempt on text selection 2012-09-22 17:46:56 +02:00
cinap_lenrek
9a06f93b71 tftp: prevent it from hanging if ack packets get lost
send ACK reply for duplicate data packets in case our ack response
got lost. make sure packets are in sequence and ignore out of
oder packets (except the ones we'v already acked).
2012-09-20 09:33:40 +02:00
google
9d182f906d Add disk/smart to mkfile 2012-09-20 10:42:17 +12:00
Marko Kostić
d5be0c1853 user: Marko Kostić <marko.m.kostic@gmail.com>
branch 'default'
added sys/lib/kbmap/sr (serbian cyrillic kbmap)
added sys/lib/kbmap/sr@latin (serbian latin kbmap)
2012-09-19 23:37:47 +02:00
google
2c4947656f Add manpages for atazz and smart 2012-09-20 22:51:20 +12:00
google
2a9d702506 Add Erik Quanstrom's smart tool for ATA SMART. 2012-09-20 22:42:06 +12:00
google
fa7fb8b66b Add Erik Quanstrom's atazz
(needed to disable power management/head unload on 2.5" drive)
2012-09-20 22:39:48 +12:00
cinap_lenrek
913afc39c9 tftpd: apply sstallion's tftpd-rfc patch (from sources)
tftpd option handling is not RFC-compliant. This causes picky
clients (such as curl) to fail transfers.
2012-09-18 18:27:59 +02:00
cinap_lenrek
a5756259cf 5l -H7 (elf) support (import from sources) 2012-09-18 18:22:38 +02:00
cinap_lenrek
3ba213a9d7 6c: extern register fix (import from patch/6c-extreg)
to make it easy to use normal libraries (such as libdraw, libsec, and libmp)
with the kernel, which uses extern register, don't stray into the external
register set when allocating values to registers.
2012-09-18 18:18:43 +02:00
cinap_lenrek
36f4f9fcd3 bring kernel acid library in sync (import from sources) 2012-09-18 18:11:16 +02:00
google
c3cd4fe746 fix typo. 2012-09-19 21:13:36 +12:00
google
1f7eb17f4b Enable busmastering for SCH (Poulsbo) PATA controller. 2012-09-19 21:07:44 +12:00
cinap_lenrek
a31c30564c sdide: make sure bmiba is in i/o port space, not memory 2012-09-16 16:46:28 +02:00
cinap_lenrek
92d3ff8426 rio: single line scroll up/down with holding shift key 2012-09-16 02:49:41 +02:00
cinap_lenrek
5cabb3070c vnc use Breadn() instead of Bread() 2012-09-16 01:47:44 +02:00
cinap_lenrek
9a02104699 hget -P to read postbody from stdin 2012-09-15 07:07:19 +02:00
cinap_lenrek
1d62e1d8c8 usb: dont give up on unassigned pci irq line in hci driver
sometimes, the bios does not assign a interrupt line for pci
devices. this should not be fatal in case of mp ineterrupts
as long as there is intpin or msi can be used.

warn in intrenable() if we hit such a interrupt and set
irq to -1 to prevent it from getting enabled on the pic
or as isa interrupt in apic mode.
2012-09-15 03:17:17 +02:00
cinap_lenrek
336df4d4ae Qcoalesce patch to satisfy full read length 2012-09-14 03:35:15 +02:00
aiju
d6e505167c the IRS 2012-09-13 18:44:44 +02:00
cinap_lenrek
8ca0a19825 merge 2012-09-13 09:39:15 +02:00
cinap_lenrek
4590975312 mothra: fix wrong ascent calculation if text element is too large, fix image border layout 2012-09-13 09:37:28 +02:00
stanley lieber
808e622e73 fortunes, rob, troll: the usual 2012-09-12 14:37:56 -05:00
cinap_lenrek
7b3c5d9257 mothra: special parse mode for <script> as parsetag gets confused by long javascript lines 2012-09-11 07:38:11 +02:00
aiju
6479692f56 fortunes! 2012-09-10 18:10:56 +02:00
cinap_lenrek
f90682e32e add hungary keyboard map (contributed by bencef) 2012-09-10 11:01:36 +02:00
cinap_lenrek
0a48c1e340 lp: HTML table support 2012-09-10 08:10:30 +02:00
cinap_lenrek
8472086cc6 update manual pages for lp HTML support 2012-09-10 08:01:49 +02:00
cinap_lenrek
f6dd4bb5ee lp: handle HTML files with html2ms | troff in process/generic 2012-09-10 07:40:28 +02:00
cinap_lenrek
2fd758bf2a mothra: simpler approach to ignoring <script> tags 2012-09-10 03:09:30 +02:00
cinap_lenrek
f57e4ecb01 hgwebfs: remove prefixing // from file path 2012-09-10 22:20:40 +02:00
cinap_lenrek
b62042cdeb libaml: store *value* instead of name reference in dest for alias op 2012-09-09 09:06:37 +02:00
cinap_lenrek
6aa1ca35c3 libaml: implement Alias and Debug instructions 2012-09-08 17:48:09 +02:00
google
a71b3dff06 Print correct sizes in prep autopart. 2012-09-09 17:37:21 +12:00
google
dd1b8df880 Add alignment hints for e512 ATA drives. 2012-09-09 17:22:12 +12:00
cinap_lenrek
aead11533e support file:// urls in hgwebfs extension as apparently hg uses them. m( 2012-09-08 01:55:46 +02:00
stanley lieber
72c1608409 fortunes, rob, theo: I wasn't asking about 9front. 2012-09-06 10:52:41 -05:00
cinap_lenrek
a064a48e6d nusb: handle 0 csp value on iface, remove unneeded configdev() calls after getdev() 2012-09-06 05:25:23 +02:00
cinap_lenrek
3cdaf6ea5f usbd: add missing quotefmtinstall 2012-09-06 04:07:51 +02:00
cinap_lenrek
ee0a0fca5d rdbfs(4), no ^t^t on 9front system 2012-09-06 02:45:15 +02:00
cinap_lenrek
9c18f300a4 devshr: honor noattach 2012-09-06 01:05:37 +02:00
google
577a9f763f Prevent nusb/disk and nusb/kb from blocking nusbrc 2012-09-06 13:15:59 +12:00
cinap_lenrek
93063b3db0 nusbd: properly handle port detach on hub disconnect 2012-09-05 00:06:20 +02:00
cinap_lenrek
0c52215ae3 usb: fix potential isoread overruns, error instead of panic on isoread in ohci 2012-09-03 04:23:02 +02:00
cinap_lenrek
cfd25faa28 usb: fix isowrite putsamples race 2012-09-03 01:54:34 +02:00
cinap_lenrek
1be10947ba doom: fix mixbuffer size confusion 2012-09-03 00:24:27 +02:00
cinap_lenrek
d32c8fc79a ether82563: fix format string error 2012-09-02 21:57:10 +02:00
google
3914d039b1 Add timeout to eeprom and flash init in ether82563 driver.
Prevents hang on misidentified or broken cards.
2012-09-03 19:23:28 +12:00
google
25a5ae8a44 Add Intel 82801JIB ICH10 southbridge 2012-09-03 17:44:30 +12:00
google
14843589e2 Intel 82567V DOES support jumbo frames, despite claims to the contrary. 2012-09-03 13:40:51 +12:00
google
59d3ba2ce0 Intel 82567V does not support jumbo frames. 2012-09-02 11:31:53 +12:00
cinap_lenrek
c74eff0906 audiohda: unsigned vid/rid formating 2012-09-02 01:02:34 +02:00
cinap_lenrek
5446d9779c date: pikeshedding 2012-09-02 00:18:43 +02:00
google
4cd4b82553 Fixes previous commit: dc3f9d299b40 2012-09-02 01:06:38 +12:00
google
2dfe66d72f Add -i flag to date: prints ISO-8601 datestamp
Add -t flag to date: prints ISO-8601 timestamp
2012-09-02 00:33:39 +12:00
google
87b6b93257 Fix for i82567V-2 2012-09-02 00:27:43 +12:00
cinap_lenrek
7f22b32e63 isodate in libc? revert every commit for great justice! 2012-09-01 14:12:29 +02:00
google
0e41e0b7c5 Add prototypes for isotime and isodate. This should have been in the previous commit. 2012-09-02 23:15:15 +12:00
google
dfc348c4e2 Add -i and -t options to date for isodate and isotime display. 2012-09-02 23:08:14 +12:00
google
cdb7bdde96 Add isotime() and isodate() functions to libc. 2012-09-02 23:05:41 +12:00
google
67e047589a Fix date formatting in asctime after year 2099. 2012-09-02 22:59:31 +12:00
cinap_lenrek
e91301a401 rdmsr/wrmsr become tryrdmsr/trywrmsr, we can should check for trap 2012-08-31 16:48:33 +02:00
cinap_lenrek
a7ed529d97 upas/fs: catch alarm note (used in pop3 code) 2012-08-30 17:39:22 +02:00
cinap_lenrek
c430bf65d3 ndb/dns: fix mistake 2012-08-29 20:14:15 +02:00
cinap_lenrek
e1a0aa42dc merge 2012-08-29 19:06:12 +02:00
cinap_lenrek
860d938b20 ndb/dns: bug fixes and massive cleanup
removing the querylck from the DN as it was never used or being
effective which saves like a ton on space per domain name.

remove the Query.tcplock and put query on the stack. it is
unneccesary to lock the query as its only used by one process
at a time. put Query's on the stack.

change outsidens() to outsidensip() which now takes the ip
buffer that it fills instead of returning static buffer (which
would race with multiple processes involved).

eleminate mostly all of the lock(&dnlock)/unlock(&dnlock) calls.
we'r not working on shared cache RR's in the resolver procs.
we work on *copies* done by rrlookup() made under the dnlock.

the cache garbage collection only runs when all processes are
locked out and is also taking the dnlock while doing so.

cleanup xmitquery(). for the tcp case, we dont need to get
more nameserver addresses, just take the ip from the udp header
that tcpquery() placed there for us.

fixed baddelegation() to actually check for delegation loop even
if theres no dom info for our host.

remove lots of debug code. remove the dnforceage() as it doenst
make sure other processes are locked out. this could destroy
dn's currenctly refered by running queries.

remove dnageallnever() as its not used. dont attach rr's to
keepers to prevent outside spoofing.

make myaddr() retrive the ip address if not set.
2012-08-29 19:01:05 +02:00
stanley lieber
30d016224a fortunes, troll: epub 2012-08-28 22:48:39 -05:00
stanley lieber
60bcab4d78 /sys/lib/dist/ndb/common: for god and country, geronimo, geronimo, geronimo 2012-08-28 22:46:44 -05:00
aiju
5ba4ccd30e fixed RFNOMNT 2012-08-27 17:50:48 +02:00
cinap_lenrek
40d5dce459 dns: fix rr->srv memory leak in rrcopy, mark rr->sig->signer, dn aging, cleanup 2012-08-26 21:56:03 +02:00
cinap_lenrek
25070f33fb audiohda: add intel sch models (thanks puddingpimp on #cat-v for sending a patch) 2012-08-26 17:16:03 +02:00
cinap_lenrek
8f0ec8b725 ndb/dns: fix netmkaddr() race, dnlock consistency, strcpy, cleanups 2012-08-26 01:51:46 +02:00
cinap_lenrek
19219d5a95 archmp: checksum _MP_ structure before use, coherence() and comments (import from sources)
we used to only test the checksum of the PCMP structure referenced by
the _MP_ without checking _MP_ itself. now fixed.

geoff added some coherence() calls and comments in the mpstartup and
apic code which seems to be a good idea.
2012-08-25 14:06:42 +02:00
aiju
69f5a04ac3 games/gb: del instead of f12/o 2012-08-25 22:38:32 +02:00
aiju
9cab16b426 games/gb: set audioproc priority 2012-08-25 22:33:51 +02:00
aiju
d7c21149e4 gb: pause function 2012-08-25 22:13:29 +02:00
aiju
46124af6cf fix CUT macro in cpuid 2012-08-24 19:19:42 +02:00
aiju
6edb672951 added aux/cpuid 2012-08-24 18:49:25 +02:00
stanley lieber
c42a535fe9 fortunes, rob, rsc, troll: updates 2012-08-24 10:18:33 -05:00
cinap_lenrek
3ac4524e4a syscallfmt: use up->syserrstr instead of up->errstr (import from sources) 2012-08-24 15:53:35 +02:00
cinap_lenrek
da01fdae11 guesscpuhz: add sanity checks for virtualbox (import from sources) 2012-08-24 15:46:21 +02:00
cinap_lenrek
d436b2117e add unified sigsearch() function to look for bios data structures
replace the various functions that searched for bios data structures by
a single sigsearch() one in pc/memory.c that will probe the various bios
data areas.

also, a new checksum() function was added that is to be used to validate
the structures found.
2012-08-24 15:36:56 +02:00
cinap_lenrek
86f323290c wait: always check up->nchild before going to sleep
always make sure that there are child processes we can wait for
before sleeping.

put pwait() sleep into a loop and recheck. this is not strictly
neccesary but prevents accidents if there are spurious wakeups
or a bug.
2012-08-24 13:11:04 +02:00
cinap_lenrek
d404e9e9f8 devmnt: more carefull wakeup in mountmux
once we set q->done = 1 in mountmux, the sleeper might return freeing q
so the wakeup might access invalid memory. we change the embedded Rendez
structure in the Mntrpc into a pointer to the sleeping procs up->sleep
rendez so the rendez is always going to be valid even if the rpc has been
freed.

the call to mntstats was moved before we set q->done also to prevent
accessing invalid memory.
2012-08-24 13:00:14 +02:00
cinap_lenrek
80a5bfc1d8 sdvirtio: be more carefull at wakeup
wakeup cannot access r->sleep once we set r->done because the
sleeper might just return at this point making r invalid. make
a copy of the sleep rendez pointer before setting r->done.
2012-08-24 12:52:34 +02:00
cinap_lenrek
8e5dd37eba ndb/dns: fix memory corruption and bad serveraddrs() range checks 2012-08-22 19:45:29 +02:00
cinap_lenrek
87fca361f7 rio: rect outside screen counts as covered wcovered() 2012-08-22 00:11:42 +02:00
cinap_lenrek
20b4f55603 9bootpxe: try /cfg/pxe/default if /cfg/pxe/$ether fails before breaking to the prompt. 2012-08-21 14:23:52 +02:00
cinap_lenrek
be0301f458 calloc: check multiplication overflow 2012-08-19 10:50:39 +02:00
cinap_lenrek
feb58cce49 plot(1) manpage corrections 2012-08-19 09:07:59 +02:00
cinap_lenrek
62f5a7e2b7 vncs: cleanup and error handling 2012-08-19 08:57:40 +02:00
cinap_lenrek
7bb4a790d6 webfs: capture error string from tlsClient 2012-08-18 15:10:34 +02:00
cinap_lenrek
56aa8e173f libsec: add sha256WithRSAEncryption signature alg 2012-08-18 15:09:02 +02:00
cinap_lenrek
c120dbc777 pccpuf: add vgaradeon 2012-08-17 19:03:26 +02:00
cinap_lenrek
8b93667775 lib/profile: remove startupasfs, start rio as subprocess so we drop to rc if it fails (no framebuffer), drawterm 2012-08-17 18:19:03 +02:00
cinap_lenrek
31ed86ce23 webcookies: create $home/lib/webcookies as 0600 2012-08-17 18:14:34 +02:00
cinap_lenrek
7fdf820589 pckernel: use constants instead of hardcoding cpuid bits in various places 2012-08-17 04:03:51 +02:00
cinap_lenrek
81954dbf25 mothra: bruteforce image src= attribute 2012-08-16 09:03:57 +02:00
cinap_lenrek
2dd17995f1 rio: fix mistake 2012-08-16 06:57:58 +02:00
cinap_lenrek
711557c85e rio: add some tolerance when declaring windows covered 2012-08-16 06:32:34 +02:00
cinap_lenrek
2eb369bb1d rio: add covered (burried) windows to the menu3 hidden window list 2012-08-16 04:00:32 +02:00
cinap_lenrek
3932153299 mothra: handle misplaced trailing quotes 2012-08-15 13:15:34 +02:00
cinap_lenrek
21b5efe962 jpg: ignore sampling factors for grayscale as colormap1() doesnt handle it 2012-08-14 05:36:05 +02:00
cinap_lenrek
a8d7bbeeb3 remove 9/pc/boot.fs file 2012-08-14 03:54:26 +02:00
cinap_lenrek
142a77c9dc nusb/kb: increase mouse packet buffer from 32 to 64 bytes for Microsoft Sidewinder X5 Mouse (thanks Rexford Gibbs for reporting and testing) 2012-08-13 10:41:02 +02:00
cinap_lenrek
73e924d847 hg: hook system_rcpath and user_rcpath instead of polluting enviroment by setting HGRCPATH 2012-08-13 09:53:04 +02:00
cinap_lenrek
2a9b90cf85 page: fix drawpage race 2012-08-12 20:25:22 +02:00
cinap_lenrek
a1f69ed555 hjfs: fix tabs (damn google code editor) 2012-08-11 12:41:49 +02:00
aiju
3759a4a945 disallow walk on open chans 2012-08-11 10:40:48 +00:00
cinap_lenrek
6538711ef0 hjfs: fix permcheck bug 2012-08-11 12:02:05 +02:00
cinap_lenrek
1132aca4f0 vgaclgd542x: support >8bit colors 2012-08-10 21:03:13 +02:00
cinap_lenrek
d1f1be9c57 vgavmware: fix hardware acceleration (fill is not available with SVGA2) 2012-08-10 15:17:27 +02:00
cinap_lenrek
dbc4833d10 acid: fix cvtitoa buffer overflow 2012-08-10 10:06:23 +02:00
cinap_lenrek
8a53b8192d mothra: avoid eenter deadlock on resize 2012-08-09 04:03:33 +02:00