summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2014-07-10record the size of the rx rings so we can wrap around them correctly.David Gwynne
fixes a panic, reported by paul de weerd.
2014-07-10introduce the revolutionary concept of NULL pointers. ok gccHenning Brauer
2014-07-10pool_debug still needed for non-DIAGNOSTIC kernelsTheo de Raadt
2014-07-10introduce bpf_mcopy_stripvlan, which cuts the 4 extra bytes out of theHenning Brauer
ether_vlan_header to make it a regular ether_header while copying into the bpf buffer. add bpf_mtap_stripvlan, which is a 1-line wrapper around _bpf_mtap passing this copy function in. ok benno
2014-07-10prepare for upcoming ext4 read supportMartin Pelikan
Parts of the on-disk inode changed their meaning in order to support bigger sizes. More flags & prettification. No functional change. ok guenther
2014-07-10syncTheo de Raadt
2014-07-10Print an understandable error message when we fail to read the reportMartin Pieuchot
descriptor. Pointed out by benno@
2014-07-10Add new sendsyslog(const char *, size_t) system call which simply passesTheo de Raadt
a message up into syslogd's /dev/log interface. This will be used to make syslog_r work during file descriptor exhaustion, or inside sandboxes which prohibit socket, connect, sendto, etc. The system call is being added about a week before the library and daemon changes. ok guenther tedu miod matthew
2014-07-10Align octhci(4) with the other HC drivers and add it as a commented entryMartin Pieuchot
to GENERIC. ok pirofti@
2014-07-10hide the biglock thrashing under pool_debug so it can be turned offTed Unangst
2014-07-10rings that dont rx packets dont need to be refilled.David Gwynne
2014-07-10Simplify the way divert(4) sends packets to userspace: Instead ofLawrence Teo
unnecessarily allocating an mbuf tag to store the divert port, just pass the divert port directly to divert_packet() or divert6_packet() as an argument. includes a style fix pointed out by bluhm@ ok bluhm@ henning@ reyk@
2014-07-10guenther spotted my bad copy and pasting.David Gwynne
fall back to htobe64 for htobem64 instead of htole64 on LE archs.
2014-07-09regenBrad Smith
2014-07-09shorten a bitBrad Smith
2014-07-09Add work-in-progress octeon USB host controller support.Paul Irofti
Not enabled for now. It's easier for me to work on it in-tree. Discussed with and okay miod@
2014-07-09- do the actual viomb_deflate() after printing the debug messageJasper Lievisse Adriaanse
- whitespace cleanup ok sf@
2014-07-09regensasano
2014-07-09add devices for DM&P Vortex86EX SoCsasano
ok by miod@ and deraadt@
2014-07-09Add ffs routine needed for upcoming octhci interrupt routine.Paul Irofti
Okay miod@
2014-07-09autoconf(9) is your friend and it knows you more than you think. ItMartin Pieuchot
even knows your children! So let him handle the seperation correctly. Do not rewrite your own custom config_detach_children(9) and as a bonus start removing the usbd_port tentacles from the stack. ok pirofti@, yuo@, miod@, deraadt@
2014-07-09Use the correct rf revision number for AR2425 radios. When read fromStefan Sperling
hardware the revision is zero. Linux also hardcodes this value. ok reyk
2014-07-09CPUF_PARK check was placed improperly in the previous commit.Mike Larkin
2014-07-09Now that the stack handles properly the xhci(4) way of setting anMartin Pieuchot
address, kill some no longer true comments and create a proper function to assign an address. For the moment, an address is assigned when setting up a slot for a new device.
2014-07-09Adds an optional bus function to set the address of a new device andMartin Pieuchot
explicitly set it when required. Right now xhci(4) does not need such function because it assigns addresses when the first pipe of a device is opened. ok yuo@, pirofti@
2014-07-09use explicit_bzero for stack and freed variablesTed Unangst
2014-07-09spellingTed Unangst
2014-07-09Kill unused route storages.Martin Pieuchot
blambert@, henning@, lteo@
2014-07-09Minor cleanups in wording in some comments and printfs, and added someMike Larkin
dprintfs to help debugging in the field (disabled by default)
2014-07-09Don't use the suspending kernel's VA mapping for the piglet. It's farMike Larkin
easier and much less error-prone to just identity map it in the resuming kernel as we have more control over the VA space layout there (otherwise we are at the mercy of the suspending kernel's placement of the piglet VA). This diff also increases the size of the piglet to 4 chunks, to avoid an overwrite issue seen in m2k14 where the start of the kernel text was overwritten with a bounced chunk before unpack.
2014-07-09Delete an obsolete commentPhilip Guenther
2014-07-09Fixes a resume time page table issue on amd64 if the piglet was locatedMike Larkin
above 1GB physical (caused by using an incorrect page size mask) Also removes some unneeded low memory mappings on both amd64 and i386 (this is a cosmetic fix but makes things easier to debug).
2014-07-09Cleanup the chunk placement routine by removing the conflict resolver.Mike Larkin
Chunks are now sorted by ascending PA and all chunks are bounced before unpack. This fixes an issue where the trampoline chunks were being placed at the end of the unpack ordering, causing overwrite during unpack.
2014-07-09Add support bpfwrite on DLT_LOOP interfaces.YASUOKA Masahiko
ok guenther
2014-07-09Teach rw_status() and rrw_status() to return LK_EXCLOTHER if it's writePhilip Guenther
locked by a different thread. Teach lockstatus() to return LK_EXCLUSIVE if an exclusive lock is held by some other thread. ok beck@ tedu@
2014-07-09ext_type is set but never read. its a waste of space.David Gwynne
MEXTADD will be fixed later. ok henning@ deraadt@ mpi@
2014-07-09Do the way long overdue renaming of register names from o32 to n64 ABI.Miod Vallat
In other words, ta0-ta3 are now a4-a7 instead of t0-t3; and the former t4-t7 are now t0-t3.
2014-07-09Kill unused shutdown hook pointers.Martin Pieuchot
ok miod@, deraadt@, tedu@
2014-07-09Use suspending kernel's stack smash guard to avoid panicing during unpack.Mike Larkin
ok deraadt@
2014-07-09Herr Reyk correctly pointed out that we don't need the if_pflog.h includeHenning Brauer
here any more
2014-07-09Fixes a hibernate issue wherein we locked the kernel lock while hatchingMike Larkin
but then parked ourselves in real mode without completing acquisition of said lock. Also removes the park routine from i386 since we don't need it (the APs are already parked at the time we start unpack). discussed with and ok kettenis@, also ok deraadt@
2014-07-09now that mclgeti doesnt do the rx ring accounting, cluster allocationDavid Gwynne
doesnt need to know which ifp an mbuf was allocated on so it can uncount it on free. while here, remove the ext_backend field which identifies the pool the cluster came from and use ext_arg instead. ok henning@ mpi@
2014-07-09tedu bpf_mtap_pflog().Henning Brauer
now that it is a trivial wrapper around the extended bpf_mtap_hdr, we can use bpf_mtap_hdr directly. added benefit: pflog_bpfcopy doesn't need to be exported any more and can stay private to if_pflog.c ok benno bluhm reyk
2014-07-09bpf code surgery / shuffling / simplification.Henning Brauer
the various bpf_mtap_* are very similiar, they differ in what (and to some extent how) they prepend something, and what copy function they pass to bpf_catchpacket. use an internal _bpf_mtap as "backend" for bpf_mtap and friends. extend bpf_mtap_hdr so that it covers all common cases: if dlen is 0, nothing gets prepended. copy function can be given, if NULL the default bpf_mcopy is used. adjust the existing bpf_mtap_hdr users to pass a NULL ptr for the copy fn. re-implement bpf_mtap_af as simple wrapper for bpf_mtap_hdr. re-implement bpf_mtap_ether using bpf_map_hdr re-implement bpf_mtap_pflog as trivial bpf_mtap_hdr wrapper ok bluhm benno
2014-07-09need uvm/uvm_extern.h since no longer supplied below user.hTheo de Raadt
2014-07-09obvious need for systm.h, which no longer comes in from something user.h ↵Theo de Raadt
includes
2014-07-09if you use sysctl, you need sysctl.hTheo de Raadt
2014-07-09pull in uvm/uvm_extern.h (before and) and instead pmap.h, and do not assumeTheo de Raadt
that user.h's tentacles fetched it even earlier.
2014-07-09Set default of net.inet6.icmp6.nodeinfo to 0,Sebastian Benoit
disables responses to RFC4620 IPv6 Node Information Queries. ok florian henning bluhm
2014-07-09Fix boot -d. refreshcreds() should be called when trapping from userspace,Philip Guenther
but I flipped the test on i386/amd64, thus breaking kernel traps before enough proc0 bits were set up. In theory, this could have resulted in a NFS read for a page fault being done with a process's old credentials. pointed out by Patrick Wildt of bitrig