Commit graph

1614 commits

Author SHA1 Message Date
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
cinap_lenrek abba8aa7a9 page: simplify locking, avoid eenter deadlock on resize 2012-08-09 04:03:03 +02:00
cinap_lenrek 5cbae621a5 libdraw: improve handling of screen clipr 2012-08-09 04:02:10 +02:00
cinap_lenrek 84d1ef1463 ape/mkfile: work arround fake "command line arguments" rule matching 2012-08-08 21:36:42 +02:00
cinap_lenrek f466d3894c ndb/dns: cleanup 2012-08-08 19:03:10 +02:00
stanley lieber ea64fd3ad5 fortunes, rob, theo: updates 2012-08-08 09:38:24 -05:00
stanley lieber 23b76aa92d pkg(1): add new pkg repo to man page 2012-08-08 09:37:53 -05:00
aiju 9e608833e9 hjfs: various fixes 2012-08-08 10:14:20 +02:00
aiju f2c70fe2f7 more hjfs fixes 2012-08-08 00:52:37 +02:00
aiju 34bf0ce496 hjfs: various changes 2012-08-08 23:14:42 +02:00
aiju 2e19497159 hjfs: default service name, fshalt 2012-08-07 18:43:13 +02:00
aiju b21b9ba89c added hjfs 2012-08-07 17:57:04 +02:00
cinap_lenrek ef1c186305 venti: fix possible nil deref in libventi vtgetreq() and cleanup vacfs (import from sources) 2012-08-07 16:11:35 +02:00
cinap_lenrek 37a93ef857 ppp: noauth server option (import from sources) 2012-08-07 15:57:42 +02:00
cinap_lenrek 36adf27af8 add Echange[] error string 2012-08-07 07:15:41 +02:00
cinap_lenrek 7fbae174eb floppy: fix endless loop when trying to change floppy type on media change 2012-08-07 07:08:33 +02:00
cinap_lenrek e15b523a6c libmach: fix acid -k regression (was broken in r5eeb36d3ddd0) 2012-08-07 03:48:56 +02:00
cinap_lenrek 6baaf0a773 unzip/zipfs: skip over variable length comment in end of table of content record 2012-08-06 02:25:22 +02:00
cinap_lenrek 5eec707368 pci.c: reserve pci membars after assinging them for *nobios= option 2012-08-06 23:56:10 +02:00
cinap_lenrek cd99666815 memory.c: remove unused xmapupa map 2012-08-06 23:54:52 +02:00
cinap_lenrek 6a443a3e6a merge 2012-08-05 15:51:38 +02:00
cinap_lenrek 8f9374e811 merge 2012-08-05 15:50:42 +02:00
cinap_lenrek 2f457f5f19 audioac97: reserve ioport ranges 2012-08-05 15:49:38 +02:00
aiju e2270b09f3 fixed telnetd 2012-08-04 14:52:29 +02:00
cinap_lenrek 4de62918a3 catclock: properly handle initdraw error instead of crashing 2012-08-04 02:06:57 +02:00
cinap_lenrek b14d7ac38c cron: snprint, error handling (update from sources) 2012-08-03 22:50:21 +02:00
cinap_lenrek 82ece1bb0c ps: cleanup 2012-08-02 02:53:42 +02:00
cinap_lenrek dc25c70249 ps -n print note group 2012-08-02 02:47:18 +02:00
cinap_lenrek 1159f1e54f ip: fix assert panic on fragmented icmp echo request (see eriks icmp-frag patch) 2012-08-02 02:02:10 +02:00
cinap_lenrek 4971432577 libndb: apply eriks dnsquery() ipv6 reverse lookup patch 2012-08-02 01:25:34 +02:00
cinap_lenrek 64cb1dd5b4 libmach: add arm64 constants (import from sources) 2012-08-02 22:23:58 +02:00
cinap_lenrek 18d1ef20b3 format check for octal fmt strings (import from sources) 2012-08-02 22:22:57 +02:00
cinap_lenrek da20365290 libauth: fix authrpc buffer overflow (import from sources) 2012-08-02 22:22:05 +02:00
cinap_lenrek a13a30e854 ndb: recognize ip6.arpa postfix in mkptrname() 2012-08-02 22:20:55 +02:00
cinap_lenrek 8e07a4c9a5 cb: import updates from sources 2012-08-01 21:57:13 +02:00
cinap_lenrek 9b5b68a302 cdfs: pull updates from sources 2012-08-01 21:34:14 +02:00
cinap_lenrek c7ad44a048 factotum: fix _adgetticket() filedescriptor race, add timeouts to all authserver transactions 2012-08-01 19:18:33 +02:00
cinap_lenrek acc239ef26 kfs: fix read offset integer overflow 2012-08-01 01:22:01 +02:00
cinap_lenrek 235f71ba47 cwfs: fix read offset integer overflow 2012-08-01 01:10:24 +02:00
aiju c2304e9329 make sam jump to changes made by undo 2012-08-01 23:14:39 +02:00
cinap_lenrek 9caf93faa8 vesa: timeout blank/unblank operation if it gets stuck 2012-08-01 22:56:58 +02:00
cinap_lenrek 02acb1d4f0 mothra: make emalloc zero memory, fix uninitialized nextline pointer crash 2012-07-31 09:43:24 +02:00
cinap_lenrek 4f33c88a51 import updated compilers from sources 2012-07-30 19:11:16 +02:00
cinap_lenrek fcc5e75d07 tsemacquire: manpage and syscallfmt 2012-07-30 22:45:49 +02:00
cinap_lenrek 49ac0b93d3 add tsemacquire syscall for go 2012-07-29 20:26:49 +02:00
cinap_lenrek 780d393e4b ndb/cs: limit number of slave procs 2012-07-29 03:05:05 +02:00
cinap_lenrek 0f59758d12 factotum: authdial timeout 2012-07-29 02:53:59 +02:00
cinap_lenrek b4d2e39d8c ndb/cs/dns: make sure never to block the 9p loop when we run out of processes, fail the request instead 2012-07-28 19:17:54 +02:00