summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2008-09-23One more uninitialized local. Yawn.Miod Vallat
2008-09-23Plug more uninitialized variables.Miod Vallat
2008-09-23Do not merge userland map entries.Artur Grabowski
Imagine lots of random small mappings (think malloc(3)) and sometimes one large mapping (network buffer). If we've filled up our address space enough, the random address picked for the large allocation is likely to be overlapping an existing small allocation, so we'll do a linear scan to find the next free address. That next free address is likely to be just after a small allocation. Those two map entires get merged. If we now allocate an amap for the merged map entry, it will be large. When we later free the large allocation the amap is not truncated. All these are design decisions that made sense for sbrk, but with random allocations and malloc that actually returns memory, this really hurt us. This is the reason why certain processes like apache and sendmail could eat more than 10 times as much amap memory as they needed, eventually hitting the malloc limit and hanging or running the machine out of kmem_map and crashing. otto@ ok
2008-09-23syncCan Erkin Acar
2008-09-23Add IDs for Philips SNU6500 to uath(4) ok damien@Can Erkin Acar
2008-09-23Fix uninitialized variable.Miod Vallat
2008-09-23In pmap_steal_memory(), when a memory segment is completely allocated,Miod Vallat
remove it correctly from the array.
2008-09-23Fix uninitialized variable if the TOD clock value is horribly wrong.Miod Vallat
2008-09-23Fix uninitialized value.Miod Vallat
2008-09-23Rewrite two small sections of code in bge_blockinit() to simplify theBrad Smith
code. No functional change. ok krw@
2008-09-22ignore a type 6 event seen on my x200 when the ac adapter isjoshua stein
plugged in and removed
2008-09-22regenBrad Smith
2008-09-22Fix a typo.Brad Smith
2008-09-22Add PCI id's for the Intel ICH10 southbridge.Brad Smith
Based on a diff from Robert <robert at openbsd dot pap dot st>
2008-09-22Do not dereference an uninitialized pointer if a rogue, unknown type of boardMiod Vallat
is detected.
2008-09-22Do not return an uninitialized value on success in stclose().Miod Vallat
ok krw@
2008-09-22Make sure some possibly uninitialized local variables are assigned correctMiod Vallat
values in all cases. ok marco@
2008-09-22Do not use an uninitialized local for comparison in azalia_rirb_intr().Miod Vallat
While there, fix a bounds checking error in azalia_[gs]et_port(). ok deanna@ ratchov@
2008-09-22regenBrad Smith
2008-09-22Add PCI id's for the Intel G41, G45 and Q45 GPUs.Brad Smith
2008-09-22regenBrad Smith
2008-09-22- Add XenSource vendor id and SCSI HBA product id.Brad Smith
- Add some more Intel ICH9 product id's. Most of the Intel product id's are from Robert <robert at openbsd dot pap dot st>
2008-09-22Reorder PFSTATE_PFLOW define:Marco Pfatschbacher
It applies to state_flags, not to sync_flags. OK henning@, gollo@
2008-09-21Add missing splnet to the ioctl handler.Brad Smith
ok jsg@
2008-09-19system/5918: fix clearing of ITIMER_VIRTUAL and ITIMER_PROF it_intervalDamien Miller
ok tedu@
2008-09-19Perform the mvme197 latency timer reprogramming in the boot blocks, inMiod Vallat
addition to the kernel, and unconditionnaly handle all busswitch revision 1 based boards as horribly broken, even with 50MHz clocks. Based on an report of an early 50MHz 197LE board being unable to boot, due to memory corruption.
2008-09-19Fix a bunch of problems and races with posix file locking.Artur Grabowski
- file descriptor table becomes the owner of the lock instead of the proc. - When grabbing the lock, we check if the fd hasn't changed under our feet, this is more or less impossible to solve without a hack like this. I've banged my head against the wall, I figured out a solution, but implementing it correctly would cost me 12 gray hairs. Screw it, this is ugly, but it works. - Wait until usecount drains before releasing the posix lock in closef. - Add missing FREF/FRELE to sys_flock - keep the pid in the flock struct instead of abusing the fact that we used to use the proc as the lock owner. Pointed out by and discussed with Al Viro, big thanks. miod@ ok
2008-09-19AES with keysize != 128 bit is not supported in hardware, so we needMarkus Friedl
to switch to the software implementation; ok hshoexer, tom
2008-09-19increase MAXINTERP from 64 to 128 and allow a little extra room on topDamien Miller
of that for shell scripts to cover the #!, an optional space following it and a newline at the end. feedback and ok miod@
2008-09-19While vaguely interesting, the prints coming out of the driver was way tooDale Rahn
noisy. Hopefully this will quiet it down for all but extremely odd cases (where we probably want to see the messages).
2008-09-19miod pointed out that some items were multiply defined (patched intoDale Rahn
existance too many times).
2008-09-18Introduce the infrastructure required to support hardware VLAN tagChristian Weisgerber
stripping: Add a field to the mbuf pkthdr to hold the tag and an mbuf flag that tells if the tag is valid. Inspired by FreeBSD. Struct packing suggested by kettenis@. csum_flags is now 16 bits. Adapt to this in the drivers. ok reyk@, henning@
2008-09-18Rework the drm locking to be at least halfway sane. The freebsd codeOwain Ainsworth
held a lock over all driver ioctls in order to be ``mpsafe''. Stop lying to ourselves for a start. This code is not fully mpsafe, and should not pretend to be so. Put the locking around where it should, and rely on biglock for the rest. This will need to be fixed, but avoids some of the horrible that we have right now. Tested by many over a long time and several iterations.
2008-09-18fix potential use of uninitialized valueCharles Longeau
Found by LLVM/Clang Static Analyzer. ok claudio@
2008-09-18Redesign of the powerpc interrupt architecture, use true levels intead ofDale Rahn
blocking specific interrupts. Needs signficant testing to prove that one remaining elusive bug has been squashed.
2008-09-17Solve m_free problem with a not correctly configured pflow interfaceJoerg Goltermann
leading to a kernel crash reported in PR5930 OK claudio@ henning@
2008-09-17fix whitespacesJoerg Goltermann
ok henning@
2008-09-17remove dead stores and newly created unused variables.Charles Longeau
fix potential use of uninitialized value in trunk_port_ioctl() function. Found by LLVM/Clang Static Analyzer. ok mpf@ henning@
2008-09-17Also update the NVIDIA PCI id for the i386 copy of this code.Brad Smith
2008-09-17catch up with renamed Nvidia PCI IDChristian Weisgerber
2008-09-17Remove the unsupported media types explicitly listed in the switch casesBrad Smith
for MII_MEDIACHG. The default case will catch these media types. ok jsg@
2008-09-17ATI IXPx00 -> SBx00Brad Smith
2008-09-17Update for renamed ATI PCI ids.Brad Smith
2008-09-17regenBrad Smith
2008-09-17rev 1.1369 changed the SB200 entries to use the IXPx00 naming schemeBrad Smith
for consistency with the other entries already there. Revert that change. Also change the other entries for the SBx00 chipsets from using IXPx00 to using SBx00. IXPx00 was a code name used by ATI in addition to the SBx00 product name. As of SB700 and newer the IXPx00 name has been dropped plus SBx00 are more well known. requested by jsg@ awhile ago.
2008-09-17remove dead stores and newly created unused variables.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok henning@ mpf@
2008-09-17regenBrad Smith
2008-09-17- Fix a typo, Rebotics -> RoboticsBrad Smith
- Replace tabs with spaces as separator for two NVIDIA entries NVIDIA part from Antti Harri <iku at openbsd dot fi>
2008-09-17regenBrad Smith
2008-09-17Remove some duplicate NVIDIA entries and touch up some of the namesBrad Smith
to make the naming more consistent.