summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2011-12-14Handle rthreads consistently in ktrace by moving the flags and vnode intoPhilip Guenthe
struct process; KTRFAC_ACTIVE becomes P_INKTR. Also, save the credentials used to open the file in sys_ktrace() and use them for all writes to the vnode. much feedback and ok jsing@
2011-12-13Fix auto-boot failure problem. The controller name should be aKenji Aoyama
complete device name for auto-boot check. ok miod@
2011-12-12fixup af-to regression with match rulesMike Belopuhov
pfctl should not infer the af-to behavior from the af/naf difference. instead, we should be clear that this is an af-to rule. essentially this change converts FOM_AFTO marker into a rule flag PFRULE_AFTO so that we don't rely on ambiguous checks (like r->af != r->naf) when setting things up. positive review and comments from claudio, ok henning, sperreault
2011-12-12add missing m_freem's into the error code paths. there's no changeMike Belopuhov
in behavior since we don't do split headers; ok dlg, kettenis
2011-12-11Suspend other rthreads before dumping core or execing; make them exitPhilip Guenthe
when exec succeeds. ok jsing@
2011-12-09Add new KERN_PROC_CWD sysctl to get the current working directory of a process.Nicholas Marriott
ok guenther deraadt
2011-12-09we need to always schedule another rx ring refill calloutMike Belopuhov
in case we fail to do it at the spot. prevents rx ring lockups under high load. ok dlg
2011-12-09we don't do intel i/oat and don't set up parameters for theMike Belopuhov
tcp timer interrupts, therefore there's no reason we should enable the interrupt itself; ok kettenis
2011-12-08add timeout to fill rx-ring in case of mbuf shortage while in vr_intr();Markus Friedl
fixes hanging interfaces similar to in myx(4); ok dlg@, claudio@, henning@
2011-12-07Add copyright and fix RCS ID.Marco Pfatschbacher
OK kettenis.
2011-12-07Make sure we only return 1 from the interrupt handler if the interruptMark Kettenis
actually was for us. Fixes problems when the interrupt is shared. tested by stu@, ok mikeb@
2011-12-07Avoid kernel crash by removing double clfree() on endpoint closing forMarcus Glocker
ugen(4) devices. From NetBSD PR#37934 spotted by Logan Aden.
2011-12-06Add support for Nuvoton NCT6776F fan, voltage and temperature sensors.Marco Pfatschbacher
Tested on a Supermicro X9SCL/X9SCM board. With help from kettenis to make the part that works around a chip ID collision less ugly. OK kettenis
2011-12-06Remove needless temporary variable for greater clarity.Bret Lambert
testing sthen@ ok sthen@ henning@ dlg@
2011-12-06don't duplicate rtfree actions taken by rtrequest1() in rtdeletemsg()Bret Lambert
testing sthen@ ok sthen@ henning@ dlg@
2011-12-06simplify the somewhat-tangled conditional maze in rt_getifa()Bret Lambert
testing sthen@ ok sthen@ henning@ dlg@
2011-12-04Slightly different fix for the problem fixed by the previous commit for betterMark Kettenis
diffability with the amd64 codebase.
2011-12-04Do not check for an HyperTransport bus if we are using mode #2. Prevents aMiod Vallat
safety panic from occuring. Found the hard way by nick@
2011-12-04Add support for Apple fn keysMartin Pieuchot
based on a diff from jcs@, ok miod@
2011-12-04renaming synaptics_pt_* -> pms_sec_*Alexandr Shadchin
(synaptics and alps uses this for trackpoint) ok mpi@
2011-12-03Remove an OpenBSD-specific tweak regarding .Xr spacingIngo Schwarze
and make it compatible with bsd.lv mandoc and with groff-1.21. This tweak was originally added for compatibility with groff-1.15, which is no longer needed. ok jmc@ kristaps@
2011-12-03Be sure not to access the vm_page array out of bounds in uvm_pmr_freepages().Miod Vallat
Among other things, this fixes early panics on hppa system which memory size is exactly 128MB. Found the hard way and reported by fries@, not reported by beck@
2011-12-03Correctly handle clitpad packets for some ALPS models.Martin Pieuchot
reported by espie@, not reported by miod@ with and ok shadchin@, ok espie@
2011-12-03add support for MSG_NOSIGNAL.Federico G. Schwindt
linux bits compiled on i386 by sebastia@, mikeb@ ok
2011-12-03Make sure splx() is called before exiting wi_usb_tx_lock_try().Kenneth R Westerback
Found by Jan Klemkow. Thanks!
2011-12-03Make sure splx() is called before exiting trm_StartWaitingSRB().Kenneth R Westerback
Found by Jan Klemkow. Thanks!
2011-12-02dont put MAXMCLBYTES in the mclsizes array with a comment saying its 64kDavid Gwynne
when the macro can change without automatically fixing the comment. instead add a diagnostic that checks that the biggest cluster size is always MAXMCLBYTES. requested by and ok kettenis@
2011-12-02Kill unused IFCAP_IPSEC and IFCAP_IPCOMP.Christiano F. Haesbaert
ok claudio@ henning@ mikeb@
2011-12-01Be sure to splx() before return in pgt_media_status(); from Jan Klemkow onMiod Vallat
tech@
2011-12-01Mark Apple iPod and iPhone products with UQ_BAD_HID and UAUDIO_FLAG_BAD_AUDIO.David Hill
This allows these devices to attach as ugen, so at least we can use some apps, like gphoto2 to retrieve media. requested by a few, ok mikeb@
2011-12-01regenDavid Hill
2011-12-01Add a bunch of Apple iPod and iPhone devicesDavid Hill
2011-12-01Make sure we only enter pf_route() when undefering in the PF_ROUTETO case.Ryan Thomas McBride
ok dlg claudio
2011-11-30this diff introduces the MAXMCLBYTES macro to describe the largestDavid Gwynne
cluster the generic network stack will be able to give you. it also recognises that external storage on an mbuf may be bigger than MCLBYTES. its only when m_pullup or m_pulldown need to allocate another cluster that they now check the len argument, and now they do it against MAXMCLBYTES. this is required for me to do pfsync on jumbo frames as the m_pulldown for the subregions fail beyond MCLBYTES into the packet. ok deraadt@ mikeb@ henning@ blambert@ manpage changes ok jmc@
2011-11-30correctly calculate the space available in external storage in m_pullup.David Gwynne
ok deraadt@ claudio@ blambert@ mikeb@
2011-11-29the code for managing tty vs cua usage collision was free'ing all sortsTheo de Raadt
of critical structures when it hit a collision. Also, ttyopen is ldisc 0, so it should not be called twice (and furthermore, with the wrong dev_t) original report from mikeb, ok dlg mikeb and discussed with miod
2011-11-29Do not blindly return 1 from the interrupt handler since we do not knowJoel Sing
if we actually did any work. Otherwise devices sharing this interrupt will not have their interrupt handler run, possibly leading to the kernel spinning in the vic(4) interrupt handler. ok dlg@
2011-11-29whitespace fixes. no binary change.David Gwynne
2011-11-29use a u_int64_t for the state id in pfsync_state. this makes it consistentDavid Gwynne
with every other thing that stores the state id (including other pfsync messages). includes improvements to the systat code to consider the creatorid as well as the state id in its cache to avoid collisions between states created on different hosts. tested by me in production and on amd64 talking to sparc64. ok henning@
2011-11-29ready this for big-endian support later onTheo de Raadt
ok mlarkin
2011-11-29Only free the piglet on hibernate fail if we are suspending.Mike Larkin
2011-11-29Limit the kumeran errata to a specific mac/phy combo as done in the IntelJonathan Gray
code instead of testing only the phy. Fixes autoneg on ich9. From Jonathan Perkin
2011-11-28Fix reversed error-handling gotos in myx_buf_fill(), which would lead toBret Lambert
either an mbuf leak or a NULL pointer dereference. ok sthen@ claudio@ dlg@ testing claudio@ dlg@
2011-11-28deprecate PFTM_UNTIL_PACKET. nothing in the tree uses it, andDavid Gwynne
pf_state_expires() handled it incorrectly. discussed with mikeb@ ok henning@
2011-11-27When checking for offset wrap around in vn_read(), compare againstPhilip Guenthe
LLONG_MAX instead of SSIZE_MAX ok deraadt@
2011-11-27Regen.Mark Kettenis
2011-11-27Switch to proper PA-RISC 2.0 mnemonics. Works around a bug in the assemblerMark Kettenis
getting rid of the (hopefully) last bug in this code.
2011-11-27Bring back low latency interrupt moderation for 82599Mike Belopuhov
lost during update. Originally from claudio, rev1.46. ok claudio
2011-11-27Checksum fix from reyk (rev1.31) that was lost during update:Mike Belopuhov
Fix the IP ckecksum offloading logic that disables and breaks offloading if the packet is neither TCP nor UDP because of an erroneous "default" case. No functional change in the default build because IP checksum offloading is currently disabled in ix(4). Tested on 82598 and 82599 (though checksums are still disabled by default). ok claudio
2011-11-27Protect more operations in the pfsync_clone_destroy to preventMike Belopuhov
accidental race conditions. From Erik Lax, thanks! ok dlg