summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2015-08-23Add support for the Secure-PLT ABI variant. This will give us better W^XMark Kettenis
support on powerpc as it uses a non-executable GOT and PLT. "start slamming stuff in" deraadt@
2015-08-23recompute len when the path is absolute as canonpath could have shrink itSebastien Marie
OK deraadt@
2015-08-23Use simple byte pointer arithmetic and memcpy from/to aligned stackChristian Weisgerber
variables to handle the "packed" binary format passed out to userland when querying the prefix/router list. From NetBSD (Martin Husemann). ok mpi@
2015-08-23back out bpf+srp. its blowing up in a bridge setup.David Gwynne
ill debug this out of the tree.
2015-08-23bpf+srp is blowing up, so its being backed out. bpf will need the big lock.David Gwynne
2015-08-23"XXXMRG: consider making it an inline or macro"Theo de Raadt
no way.
2015-08-23fairly trivial sizes for free()Theo de Raadt
2015-08-23add some sizes to free. looked over by deraadtTed Unangst
2015-08-22Move to tame(int flags, char *paths[]) API/ABI.Theo de Raadt
The pathlist is a whitelist of dirs and files; anything else returns ENOENT. Recommendation is to use a narrowly defined list. Also add TAME_FATTR, which permits explicit change operations against "struct stat" fields. Some other TAME_ flags are refined slightly. Not cranking libc now, since nothing commited in base uses this and the timing is uncomfortable for others. Discussed with many; thanks for a few bug fixes from semarie, doug, guenther. ok guenther
2015-08-22catch up to macppc genassym.cf; regarding C mutexesTheo de Raadt
2015-08-22Make urtwn(4) attach to Netgear WNA1000Mv2. From Mark Willson.Stefan Sperling
2015-08-22regenStefan Sperling
2015-08-22Add device ID for Netgear WNA1000Mv2. From Mark Willson via misc@Stefan Sperling
2015-08-22delete a wrong commentMike Larkin
2015-08-22delete some wrong commentsMike Larkin
2015-08-21Remove the unused loan_count field and the related uvm logic. Most ofVisa Hankala
the page loaning code is already in the Attic. ok kettenis@, beck@
2015-08-21Run the part of the interrupt handler that does rx completion without holdingMark Kettenis
the kernel lock. ok mpi@, dlg@
2015-08-21Whitelist TIOCGPGRP (for tcgetpgrp()) in TAME_IOCTL.Doug Hogan
Requested by Sunil Nimmagadda to help tame http. ok deraadt@
2015-08-21use vaddr_t for kernel va range calculation instead of paddr_t. No binaryMike Larkin
change but using paddr_t here wasn't correct - better to clean it up.
2015-08-21enable beep and CD controls on ALC292Jonathan Gray
2015-08-21re-enable *8.David Gwynne
if we're allowed to try and use large pages, we try and fit at least 8 of the items. this amortises the per page cost of an item a bit. "be careful" deraadt@
2015-08-20Respect the access size when reading or writing to pci config space.Mark Kettenis
This version also makes sure writes are properly aligned, preventing the panics seen with the previous incarnation of this change. Fixes battery status passthrough in vmware, brightness keys on my x220 and who knows what else. ok mlarkin@, deraadt@
2015-08-20Use the IPD Clock Count register as a timecounter, making the clockVisa Hankala
tick in Octeon MP land. ok pirofti@, miod@, uebayasi@
2015-08-20Make ART internals free of 'struct sockaddr'.Martin Pieuchot
Keep route entry/BSD compatibility goos in the rtable layer. The way addresses and masks (prefix-lengths) are encoded is really tied to the radix-tree implementation. Since we decided to no longer support non-contiguous masks, we could get rid of some extra "sockaddr" allocations and reduce the memory grows related to the use of a multibit-trie.
2015-08-20In an email dated 11 Feb 2015, Yoichi Hariguchi accepted to re-licenseMartin Pieuchot
his reference ART implementation from a BSD 4-clause to ISC. Thanks a lot to him!
2015-08-20Import an alternative routing table backend based on Yoichi Hariguchi'sMartin Pieuchot
ART implementation. ART (Allotment Routing Table) is a multibit-trie algorithm invented by D. Knuth while reviewing Yoichi's SMART [0] (Smart Multi-Array Routing Table) paper. This implementation, unlike the one from the KAME project, supports variable stride lengths which makes it easier to adapt the consumed memory/speed trade-off. It also let you use a bigger first-level table, what other algorithms such as POPTRIE [1] need to implement separately. Adaptation to the OpenBSD kernel has been done with two different data structures. ART nodes and route entries are managed separately which makes the algorithm implementation free of any MULTIPATH logic. This implementation does not include Path Compression. [0] http://www.hariguchi.org/art/smart.pdf [1] http://conferences.sigcomm.org/sigcomm/2015/pdf/papers/p57.pdf ok dlg@, reyk@
2015-08-20Enable audio on Thinkpad docks. Help from jsg@ for the *40 / *50 seriesMike Larkin
docks. ok jsg@
2015-08-20reactivate tame()Theo de Raadt
2015-08-20remove unused vesafb code, had been commented out and not compiled in forMike Larkin
7 years (for some parts, 9 years), and was only ever referenced in i386 anyway. ok jsg@, matthieu@, armani@
2015-08-20Remove an unused #include file from i386 and amd64 pmap.hMike Larkin
ok miod@, millert@, deraadt@
2015-08-19PF must keep IPv6 fragment size as chosen by sender also for packets,Alexandr Nedvedicky
which are routed on behalf route-to action. OK bluhm@
2015-08-19Stop passing around constants for metadata size and location. JustKenneth R Westerback
use the constants where needed. ok jsing@
2015-08-19Prevent mips64 FPU emulation from corrupting the page queuesVisa Hankala
in MP systems. ok miod@
2015-08-19An interface address without interface pointer could cause anAlexander Bluhm
uvm_fault in in_ouraddr(). Do not use a stale local address from the routing table. OK mpi@
2015-08-19Convert all calls to rtrequest1() and the following error checkAlexander Bluhm
into a common pattern. In the man page clarify the usage of the returned route. OK mpi@ mikeb@ jmc@
2015-08-19Halt extra cores on SP kernel, to avoid trashing the system if thereVisa Hankala
is more than one active CPU. Additionally pick an init core at runtime. This allows booting the system with a set of CPUs that does not contain core 0, at least in terms of the early-stage boot code. ok jasper@ (a while ago)
2015-08-19Make uvm_pmr_isfree() work correctly when RB_NFIND() returnsVisa Hankala
an exact match. ok kettenis@
2015-08-19Sync page_flagbits with reality.Visa Hankala
ok kettenis@
2015-08-19Remove some verbose logs in in6_update_ifa() now that errors areMartin Pieuchot
propagated.
2015-08-19KNFMartin Pieuchot
2015-08-19Make arplookup() return a pointer to a "struct rtentry".Martin Pieuchot
This is needed for proper refcounting of rtentries and reduce differences with nd6_lookup(). Tweak and ok bluhm@
2015-08-19Use rtfree(9) instead of decrementing rt_refcnt in rt_getifa().Martin Pieuchot
Note that it is safe to keep a reference to the ifa pointed by a route entry after freeing the entry iff the ifa is valid. ok bluhm@
2015-08-18Fix inconsistent spelling of `inconsistent'Miod Vallat
2015-08-18typosMiod Vallat
2015-08-18Unbreak Octeon kernel config after r1.25 of files.mips64.Visa Hankala
Feedback and ok miod@
2015-08-18Apply the logic used for "protocol" queues to bridge(4). This allowsMartin Pieuchot
to defer the work currently done in bridge_input() and requiring the KERNEL_LOCK to bridgeintr(). Tested by sthen@ ok rzalamena@, dlg@, bluhm@
2015-08-18Remove PF_KEY-specific hacks from rtalloc(9). They are dead since SPDMartin Pieuchot
lookups use the radix API directly. ok mikeb@
2015-08-18Call rtfree(9) when we no longer need the route entry rather thanMartin Pieuchot
decrementing rt_refcnt just after rtrequest1(9). While here reduce the differences with rt_ifa_add(9). There's still an ambiguity about rtrequest1(9)'s return value, but bluhm@ will address that in a different diff. Discussed with and ok bluhm@
2015-08-18Check the error value returned by in6_ifattach().Martin Pieuchot
Prodded by and ok bluhm@
2015-08-18Add missing trailing to error message:Stefan Sperling
pckbc0: unable to establish interrupt for irq 12pckbd0 at pckbc0 (kbd slot) ok miod@