summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
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-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-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-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-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-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-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-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-25re-enable inteldrm since new X driver is about to fix the issueTheo de Raadt
2009-06-25fxp no longer fits on this mediaTheo de Raadt
2009-06-25Change safe_rng_read() from __inline to static __inline likeJonathan Gray
the original FreeBSD code for consistent behaviour between c89/c99 compilers.
2009-06-25scrub_flags is a u_int8_t, but PFSTATE_SCRUB_TCP is 0x0100, so theStuart Henderson
"reassemble tcp" state option failed to work correctly. Increasing this to u_int16_t fixes kernel/6178. ok deraadt@ henning@
2009-06-25Workaround a stupid problem ATI SB600 revisions and ATI SB700 southTheo de Raadt
bridge revisions A12 and A13. We really don't know what it does, but then noone else does. From NetBSD and Linux, via brad
2009-06-24Compute OpenBSD area bounds as the largest area spanning all the OpenBSDMiod Vallat
partitions; since all of them are DPME partitions, they might not be contiguous but that's the best we can do at the moment.
2009-06-24Even more pci ethernet devices, based on a diff from Brad.Miod Vallat
2009-06-24add some pci ethernet devices that some people, like miod, might be usingTheo de Raadt
2009-06-24enable softraidTodd T. Fries
test built and booted by me ok marco@, deraadt@
2009-06-24Remove a semicolon at the end of an if statement that made the threadJonathan Gray
waiting for all the workqs to die wakeup more often than it should have. ok dlg@ tedu@
2009-06-24There are 3 reasons why the first block in apm_probe can fail, and in oneTheo de Raadt
case it is not OK to DPRINTF, so delete that code. Found by dhill ok marco dhill
2009-06-24Add support for the SMBus controller for the Broadcom HT-1100 chipsetTheo de Raadt
to piixpm(4). from brad
2009-06-24like I did for em(4) before, doubled error messages are sillyTheo de Raadt
from brad
2009-06-24move the "pf_map_addr: selected address" printf up to -xnoisy.Stuart Henderson
ok henning@
2009-06-24Remove extra psignal/wakeup in exit1() which can cause the parent toKurt Miller
receive SIGCHLD twice if scheduled before the reaper runs. diff by guenther@ and myself. okay guenther@ deraadt@
2009-06-24Reset the rebuild counter when initiating a rebuild.Joel Sing
ok marco@
2009-06-24Abort the current rebuild if the rebuild chunk disappears. Whilst here alsoJoel Sing
rename the abort flag so that it is more generalised. ok marco@
2009-06-24for the isp(4) driver, invert the meaning of the options which pullTheo de Raadt
firmwares into the smaller (and larger) media ok krw
2009-06-24turn off POOL_DEBUG as we go into release; pointed out by mpfTheo de Raadt
2009-06-24Major update to isp driver, mostly from mjacob via FreeBSD.Kenneth R Westerback
Everything that worked before should still work so in it goes. Newer boards (2300, 2400) may now work but are still a work in progress. Thanks to many testers but especially kettenis@ for finding a show stopper bug and stomping it. ok deraadt@
2009-06-24Simplify the ioctl handling code. From Brad.Stuart Henderson
Tested by nick@
2009-06-24print RFv1/RFv2 for 8187L dmesgs; since code paths are very differentMartynas Venckus
also print 8187B/8187L rev. ids for unknown revisions and remove dots as suggested by jsg@. ok jsg@
2009-06-23syncStuart Henderson
2009-06-23Add the PCI id for the EHCI controller on the AMD 8111 from the datasheet.Stuart Henderson
From Brad.
2009-06-23Make sure that the metadata level matches the requested assembly level whenJoel Sing
creating a volume. ok marco@
2009-06-23Fix some more whitespace issues.Joel Sing
2009-06-23Add support for the 82574L chips and the bme1000 phy which is also used onClaudio Jeker
some newer ICH* chips. All the hard work done by Dariusz Swiderski sfires (at) sfires.net, tested by myself, sthen@ and many more. Eyeballed and OK dlg@ kettenis@
2009-06-23Ignore the PCT if the PSS has zero entries, only becameGordon Willem Klok
a problem after we started striking entires for containing junk and /* should never happen */ happened. Fixes PR 6175 confirmed by submiter: nick templeton nick @ nicktempleton.com ok marco@
2009-06-23- /dev/drum is long gone; sync comment with realityJasper Lievisse Adriaanse
ok thib@
2009-06-23Don't use == for string comparison.Jonathan Gray
"looks good to me" jakemsr@
2009-06-22Sync the strict alignment with vr(4). Remove the if (1) and replace it withClaudio Jeker
an #ifdef #else #endif dance. Reminded by Brad.
2009-06-22Remove unneeded sotorawpcb() call, as the PCB is unmolested betweenBret Lambert
malloc()ing it and calling that macro. No functional change, just tightening things up a bit. ok claudio@ michele@
2009-06-22Check that the address family is appropriate before processing ICMPv4 andJoel Sing
ICMPv6 messages. ok henning@
2009-06-22Always drop ICMPv6 in IPv4 datagrams, not only when compiled with INET6.Joel Sing
Suggested by Max Laier. ok henning@