summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2015-02-09Change the way stackgap_random is applied. Instead of applying it within theMiod Vallat
fixed stack area of the exec'd image, and risking hitting process limits, should we want to increase stackgap_random, the randomness is applied to the stack region in the process' vmspace.
2015-02-09fix print/panic messages + remove superfluous if_ibytes additionMartin Pelikan
ok reyk
2015-02-09if_input sets m->m_pkthdr.rcvif so we dont have to.David Gwynne
2015-02-09Remove a chunk missed in previous scope ID shuffling creating wrongMartin Pieuchot
states for external traffic through a link-local address. Found the hard way and fix tested by bluhm@.
2015-02-09Stop using USRSTACK as the edge of the stack, but rather use the vmspaceMiod Vallat
vm_minsaddr or vm_maxsaddr, depending upon the direction the stack goes in. This should have no effect on the existing behaviourrr. ok kettenis@ deraadt@
2015-02-09No need to check for va < USRSTACK before invoking uvm_grow() on behalf ofMiod Vallat
a userland map.
2015-02-09Do not use USRSTACK when VM_MIN_KERNEL_ADDRESS is what you really mean.Miod Vallat
2015-02-09Do not even try to call uvm_grow() from sendsig. It will be invokedMiod Vallat
automagically if copyout() of the signal frame faults.
2015-02-09No need to export USRSTACKMiod Vallat
2015-02-09More sanity checking for Local APIC NMI entries.Mark Kettenis
ok deraadt@
2015-02-09turn off QLA_DEBUG noise, requested by deraadt@Jonathan Matthew
2015-02-09Make sure we actually have an entry before checking its limits.Mark Kettenis
ok deraadt@
2015-02-09convert the multicast filter hash to use siphash, like i did forDavid Gwynne
ip_mroute.c requested by and ok claudio@
2015-02-09i missed a quote when cutting the fmt strings up.David Gwynne
i found the breakage with my compiler, guenther found the missing quote with his eyes.
2015-02-09make the %b format args easier (for me) to read.David Gwynne
ok guenther@
2015-02-09Complete rewrite of the Elantech clickpads v4 packet parser in order toMartin Pieuchot
support "click-and-drag". This implements a simple filter to keep track of a moving finger on the clickpad. For the moment wsmouse(4) and wscons(4) are still unaware of multitouch events and pms(4) has to do the translation, but this is a small steps in this direction. All the good work has been done by Ulf Brosziewski.
2015-02-09Add flag to taskq_create() calls to match dlg@ API changePhilip Guenther
ok phessler@ dlg@
2015-02-09i added a newline i shouldnt haveDavid Gwynne
queried by guenther@
2015-02-09we want to defer work traditionally (in openbsd) handled in anDavid Gwynne
interrupt context to a taskq running in a thread. however, there is a concern that if we do that then we allow accidental use of sleeping APIs in this work, which will make it harder to move the work back to interrupts in the future. guenther and kettenis came up with the idea of marking a proc with CANTSLEEP which the sleep paths can check and panic on. this builds on that so you create taskqs that run with CANTSLEEP set except when they need to sleep for more tasks to run. the taskq_create api is changed to take a flags argument so users can specify CANTSLEEP. MPSAFE is also passed via this flags field now. this means archs that defined IPL_MPSAFE to 0 can now create mpsafe taskqs too. lots of discussion at s2k15 ok guenther@ miod@ mpi@ tedu@ pelikan@
2015-02-09tweak the new if_input function so it takes an mbuf_list insteadDavid Gwynne
of a single mbuf. this forces us to batch work between the hardware rx handlers and the stack. this includes a converstion of bge from ether_input to if_input. ok claudio@ pelikan@ mpi@
2015-02-09convert vio(4) to if_input().Martin Pelikan
ok mpi
2015-02-09after many days of coding, enable WEPPeter Hessler
2015-02-09move the init of the if_input from ether_ifattach to if_attach.David Gwynne
ok mpi@
2015-02-08enable iwm(4) in big ramdisks for easy upgradesPeter Hessler
tested with and without firmware files. OK stsp@ deraadt@
2015-02-08Fix iwm(4) attach and firmware loading process such that a reboot afterStefan Sperling
fw_update isn't required anymore. An iwm0 interface now appears if the firmware isn't installed at boot, but it has no MAC address. Firmware is now reloaded on ifconfig down/up and the MAC address is set if successful. test + ok phessler@
2015-02-08Add missing \n to DPRINTFs in iwm(4).Stefan Sperling
2015-02-08Sprinkle some string constant consistency on iwn(4) as well.Stefan Sperling
2015-02-08In iwm(4), convert many verbose printf do DPRINTF, sync some string constantsStefan Sperling
with iwn(4), and remove a few printf which don't appear in iwn(4).
2015-02-08Fix mfi ioctl to set drive state properly.YASUOKA Masahiko
diff from Tsubai Masanari test dlg jmatthew ok dlg
2015-02-08Convert to if_input().Martin Pieuchot
2015-02-08Convert to if_input().Martin Pieuchot
2015-02-08Do not assume that addresses passed to bus_space_map(9) are relativeMartin Pieuchot
to the bus base address, that's not the case with radeondrm(9) cards on G5. From miod@
2015-02-08Convert wirless devices to if_input(), tested with iwn(4) and urtwn(4).Martin Pieuchot
ok pelikan@, reyk@, blambert@, henning@
2015-02-08Convert to if_input().Martin Pieuchot
ok pelikan@, reyk@, blambert@, henning@
2015-02-08Introduce if_input() a function to pass packets dequeued from aMartin Pieuchot
recieving ring to the stack. if_input() is at the moment a drop-in replacement for ether_input_mbuf() but will let us stack pseudo-driver in a nice way in order to no longer call ether_input() recursively. ok pelikan@, reyk@, blambert@, henning@
2015-02-08ANSI'fy.Masao Uebayashi
2015-02-08Fix stack trace of tail calls. From NetBSD. OK miod@Masao Uebayashi
2015-02-08Only attach cpu-based sensors on the primary cpu, for two reasonsTheo de Raadt
- The sensor framework cannot fetch values on the right cpu - sensor_task_register() calls malloc, and calling it is inapproapriate ok guenther
2015-02-08Count dropped SYN packets on the tcpstat. They are dropped due to theYASUOKA Masahiko
listen queue (backlog) limit or the memory shortage in syn-cache. ok henning reyk claudio
2015-02-08Just use sysctl_rdstruct() to read out some structs. Only differenceClaudio Jeker
to current code is that you can no longer call this with a NULL oldlenp which does not make any sense. OK phessler, henning Behaviour change pointed out by miod@
2015-02-08Hilarious! We are not ready yet for large stack random biases, due toTheo de Raadt
the stack region handling in uvm.
2015-02-08De-static to make ddb hangman harder. OK phessler, henningClaudio Jeker
2015-02-08Rename some of the functions by adding a 6 so they do not conflict withClaudio Jeker
the still static functions in ip_mroute.c OK phessler, henning
2015-02-08remove the dead code inside #if(def) RED_NOTYETHenning Brauer
if we ever do sth like RED again it almost certainly won't be RED; the code isn't even in a state to be useful as documentation/hint, and even if it was it could be retrieved from the attic.
2015-02-08Typo "fature" -> "feature"Mike Larkin
2015-02-08Something is subtly wrong with this. On ramdisks, processes run out ofTheo de Raadt
mappable memory (direct or via execve), perhaps because of the address allocator behind maps and the way wiring counts work?
2015-02-08replace hand rolled code to maintain a list of bufs with a fifoDavid Gwynne
bufq. guenther pointed out this is one of the last things using the compat in struct buf that we still have from the disksort days. not anymore. ok miod@ guenther@
2015-02-08pf normalization code was in dire need of style normalization.Henning Brauer
ok mpi pelikan
2015-02-08Give up tracing if RA is corrupted. OK miod@Masao Uebayashi
2015-02-08Style.Masao Uebayashi