summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-06-26After logging (if enabled) is switched to file, there is no reason to keepNicholas Marriott
stdin/stdout/stderr active, so dup them to /dev/null.
2009-06-26undefine() leaves the hash entry for the macro (for use by builtin()) andPhilip Guenthe
only deletes the definition; macro_for_all needs to skip those to keep dumpdef() from segving ok and regress test by espie (thanks!)
2009-06-26Sync with sudo repoTodd C. Miller
2009-06-26Two pci'd that come from cardbus, in case anyone ever needs them...Theo de Raadt
ok jsg
2009-06-26Fix a use after free in the pagedaemon.Owain Ainsworth
specifically, if we free a RELEASED anon, then we will first of all remove the page from the anon, free the anon, then get the next page relative to the anon page, then call uvm_pagefree(). The problem is that while we zero out anon->an_page, we do not zero out pg->uanon. Now, uvm_pagefree() if pg->uanon is not NULL zeroes out some variables in the struct for us. One of the backed out commits added more zeroing there which would have exacerbated this use after free under heavy paging (which was where we saw bugs). Fix this by zeroing out pg->uanon. I have looked for other similar cases, but have not found any as of yet. been in snaps a while, "please do commit that" deraadt@
2009-06-26Remove some unused function declarations; no binary change.Nicholas Marriott
2009-06-26invert direction for inner icmp state lookups (e.g. traceroute with icmp)Markus Friedl
ok henning, jsing
2009-06-26If we are going to move to the eeprom-based MAC address finding instead ofTheo de Raadt
CIS-based... some newer devices have the MAC address at offset 8 instead of offset 3. But we can tell by the first three octets, Intel says.
2009-06-26Prefer fdcache() to pdcache() in cpu_fork(), as the MI uvm code has touchedMiod Vallat
p->p_stats earlier, and loss of information there can cause spurious SIGPROF or SIGVTALRM to be delivered. ok kettenis@
2009-06-26Add all the cardbus com devices to puc, since these can show up on theTheo de Raadt
pci bus because of the expresscard adaptors... Lacking a better mechanism, also remind people to keep those lists syncronised.
2009-06-26explicitly print an empty value between two end_line() calls to preventCan Erkin Acar
garbage from being printed at certain window sizes. Noticed by deraadt@
2009-06-26Using information gleamed from the FreeBSD driver, change the MAC addressTheo de Raadt
reading to use the eeprom instead of CIS, and then the Xircom Cardbus cards can work in the expresscard adaptor, as pci devices. ok jsg
2009-06-26Status line fixes: don't truncate status-right now the length calculation isNicholas Marriott
done for UTF-8, limit to the maximum length correctly when printing, and always print a space even if the left string is longer than the width available.
2009-06-26Overhaul sr_boot_assembly(). The original code had a number of problems,Joel Sing
including a "chunk id already in use" bug that occurred when assembling more than one volume at boot. Volumes are now kept in order, as are the chunks which they are assembled from. Duplicated chunk IDs are now handled appropriately, with the chunk that has the most recent ondisk metadata being used. Also tested by nicm@ who got bitten by the "chunk id already in use" bug. ok marco@
2009-06-26Support the ICH10 variants of em(4). All the work done by Dariusz SwiderskiClaudio Jeker
with help from Brad. OK deraadt@
2009-06-26since nitems() is not yet fit for userland consumption, provide itTheo de Raadt
ourselves ok krw
2009-06-26use standard safe CTheo de Raadt
2009-06-26locally define nitems() macro, #ifndef'd.Okan Demirmen
"please commit" gilles@ jacekm@
2009-06-26Also #ifndef nitems here, caught by Thomas Jeunet.Nicholas Marriott
2009-06-26the pr_usrreq implementation for routing sockets shares exactly one lineBret Lambert
of code between cases, so stop pretending otherwise, and move the if() dance to a switch, as is done in every other pr_usrreq I'm aware of. ok claudio@ michele@
2009-06-26There is no need to log routing socket version mismatches.Claudio Jeker
OK henning@, sthen@
2009-06-26More consistent RTM_VERSION checking. A few missing one was in the wrongClaudio Jeker
spot. OK henning@, sthen@
2009-06-26Another daemon needing RTM_VERSION checks. Why rwhod is doing all the hardClaudio Jeker
work instead of using getifaddrs() and working on this much simpler structure is beyond my immagination. Looked over by henning@ and sthen@
2009-06-26check that dumpdef still works after undefining macros, and not dumps core.Marc Espie
problem found by Philip Guenther.
2009-06-26- include two missing headers in if.cJasper Lievisse Adriaanse
- add missing parenthesis in nfs.c ok canacar@
2009-06-26the correct *.ipk file has ${OSrev} in itTheo de Raadt
2009-06-26regenKevin Lo
2009-06-26add the VIA VX855 chipsetKevin Lo
ok deraadt@
2009-06-26the 'inputs.usingdac' mixer item was used to select which group ofJacob Meuser
DACs to use. for several months, there have been at most two groups, the first being all usable analog DACs and the second being all usable digital DACs. so 'inputs.usingdac' essentially was used to switch between analog and digital modes. this was entirely unclear to most users because the DACs were listed by their NIDs, which means nothing unless you know how azalia(4) internals works. rename 'inputs.usingdac' to 'outputs.mode', and replace the lists of DAC NIDs with 'analog' and 'digital'. similarly for recording, change 'record.usingadc' to 'record.mode', and replace the lists of ADC NIDs with 'analog' and 'digital'.
2009-06-26if a codec has multiple line out jacks, and the codec says allJacob Meuser
the line out jack have different colors, use the colors in the line out mixer item names.
2009-06-26If two or more children exit before hotplugd is scheduled only one SIGCHLDKurt Miller
will be delivered, so deal with this case in the SIGCHLD handler. Also retry if waitpid() fails with EINTR. looks good deraadt@ millert@
2009-06-25do not use nitems(); ok claudioTheo de Raadt
2009-06-25Remove some dead assignments, found by sthen with clang.Nicholas Marriott
2009-06-25#ifndef nitems to avoid redefining it if it is already in a header.Nicholas Marriott
2009-06-25the rule is not to use nitems() in userland yetTheo de Raadt
2009-06-25sync the SENSOR_DRIVE_* names with sysctl(8)'sOkan Demirmen
ok canacar@
2009-06-25use the nitems() macro where appropriateOkan Demirmen
ok canacar@
2009-06-25sasyncd isn't interested in messages on the routing socket other thanStuart Henderson
RTM_IFINFO to monitor the state of carp(4) interfaces; programme the filter on the socket accordingly so it doesn't have to handle other message types. ok henning@
2009-06-25fix the function name in log_warn() text, it was borrowed from someStuart Henderson
previous test code of mine.
2009-06-25Another kroute.c needing RTM_VERSION checks. Looked over by sthen@ and henning@Claudio Jeker
2009-06-25Back out if_ix.c 1.16, 1.17 and 1.18 (and corresponding changes to toTheo de Raadt
if_ix.h) since it corrupts packets or the checksum flags or something upwards and breaks nfs. The 1.16 MCLGETI change does not cause this but has a double free on reboot, and the 1.18 fixes that double free but introduces the packet corruption.
2009-06-25At least try to check for the RTM_VERSION here even so part of this codeClaudio Jeker
escaped from a horror story and robs you're sanity. This needs major cleanup. OK sthen@, OK henning@
2009-06-25Another kroute.c code with missing RTM_VERSION checks.Claudio Jeker
OK sthen@, henning@
2009-06-25Add missing RTM_VERSION checks. Bad me, no cockies.Claudio Jeker
Tested and OK sthen@, OK henning@
2009-06-25Check RTM_VERSION even on sysctl data.Claudio Jeker
Tested and OK sthen@, OK henning@
2009-06-25backout the buf_acquire() does the bremfree() since all callersThordur I. Bjornsson
where doing bremfree() befure calling buf_acquire(). This is causing us headache pinning down a bug that showed up when deraadt@ too cvs to current, and will have to be done anyway as a preperation for backouts. OK deraadt@
2009-06-25Another copy another missing RTM_VERSION check.Claudio Jeker
Tested and OK sthen@, OK henning@
2009-06-25Another copy of the strange while loop seen in route(8). Add missingClaudio Jeker
RTM_VERSION check. Tested and OK sthen@, OK henning@
2009-06-25Same code as in route(8) same RTM_VERSION check missing.Claudio Jeker
Tested and OK sthen@, OK henning@
2009-06-25Add a missing RTM_VERSION check.Claudio Jeker
Tested and OK sthen@, OK henning@