summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2018-09-14ansify auich_trigger_input() and remove #ifdef around DPRINTF(); ok ratchov@miko
2018-09-14mark some suspend/resume functions always returning zero as void; ok ratchov@miko
2018-09-14unbreak userland uses of in_pcb.h by including sys/refcnt.hJonathan Gray
ok visa@
2018-09-13Add reference counting for inet pcb, this will be needed when weAlexander Bluhm
start locking the socket. An inp can be referenced by the PCB queue and hashes, by a pf mbuf header, or by a pf state key. OK visa@
2018-09-13Include the size of IPCOMP header when checking for compression.Martin Pieuchot
Problem found and anaylyzed by Romain Gabet, ok markus@
2018-09-13In drm_wait_one_vblank() add a delay when we're "cold". Interrupts aren'tMark Kettenis
enabled at that point, so we cannot wait for one to happen. But having no delay at all breaks detection of some output connectors. Thanks to Philippe Meunier for tracking down the issue. ok millert@, jsg@
2018-09-13- There's no need to set R92C_HSSI_PARAM2_READ_EDGE for R92C_HSSI_PARAM2(0)Kevin Lo
for rtl8188eu - Fix typo in structure r92c_rom in comment: s/0x8192/0x8129/ - Add id member to struct r88e_rom which identifies eeprom - Replace magic numbers with something more readable - Cosmetic tweaking ok stsp@
2018-09-13When unveil(2) was introduced one break from SYS_access case was removedRicardo Mestre
here, this adds it back. Noticed by Coverity 1471854. feedback from semarie@ OK deraadt@
2018-09-13clarify that config_activate_children() is called unconditionally in ↵miko
*activate(). ok ratchov@
2018-09-13drm/drivers: add support for using the arch wc mapping API.Jonathan Gray
From Dave Airlie c59fdc4cfbda52ce081c59540762185d765c3369 in linux 4.4.y/4.4.155 7cf321d118a825c1541b43ca45294126fd474efa in mainline linux
2018-09-13drm/i915/userptr: reject zero user_sizeJonathan Gray
From Matthew Auld 182e963432d867384f2e55487ec60ca7a9f99cd1 in linux 4.4.y/4.4.155 c11c7bfd213495784b22ef82a69b6489f8d0092f in mainline linux
2018-09-13avoid sequence-point warning with gcc 4.9Jonathan Gray
ok kettenis@
2018-09-12Make pmap_protect(9) actually remove exec permission if the new permissionsMark Kettenis
include PROT_READ but not PROT_EXEC. ok patrick@
2018-09-12Stop exporting TDB counters to userland, this change introduced aMartin Pieuchot
regression with iked(8). Reported by Mark Patruck.
2018-09-12Fix obvious cut&pasto in comment (ifa_msghdr -> if_announcemsghdr).Kenneth R Westerback
ok claudio@
2018-09-12Whitespace fixesPhilip Guenther
2018-09-12Now that the pmap is more paranoid about some shootdowns (pmap.c rev 1.119),Philip Guenther
avoid some TLB flushes by not reloading %cr3 when the value isn't changing. original diff by and ok mlarkin@
2018-09-12When shooting pages in the KVA range, all pmaps have the page mapped,Philip Guenther
not just pmap_kernel() and this CPUs pmap. Meanwhile, when mapping another pmap's tables, order the locking so that we don't need IPIs specific to the temp pmap. tested in snaps for a bit ok mlarkin@
2018-09-12Move -Wno-address-of-packed-member to the clang block as well and syncJonathan Gray
armv7 and i386 with amd64. ok guenther@
2018-09-11Convert inetctlerrmap to u_char like inet6ctlerrmap. That is alsoAlexander Bluhm
what FreeBSD does. Remove old #if 0 version of inet6ctlerrmap. OK mpi@
2018-09-11Only look for acpi tables if acpi(4) attached. Fixes radeondrm(4) crashMark Kettenis
on arm64 when using a device tree.
2018-09-11ues the format string for signed ints, for signed intsPeter Hessler
reminded by stsp@
2018-09-11Nuke unused LIST() ieee80211com_head.Kenneth R Westerback
ok stsp@
2018-09-11Put clang-specific options behind conditionals to reduce meta-warningsPhilip Guenther
ok mpi@
2018-09-11Make the distribution of in_ and in6_ functions in in_pcb.c andAlexander Bluhm
in6_pcb.c consistent, to ease comparing the code. Move all inet6 functions to in6_. Bring functions in both source files in same order. Cleanup the include section. Now in_pcb.c is a superset of in6_pcb.c. The latter contains all the special implementations. Just moving arround, no code change intended. OK mpi@
2018-09-11Include bnxt in arm64.ccardenas
Tested on mcbin with Broadcom BCM57404 (Dell variant). Ok jmatthew@ and kettenis@
2018-09-11We actually support 39-bit VA's in userland.Mark Kettenis
ok patrick@, jsg@
2018-09-11Nuke some trailing spaces that wandered into theKenneth R Westerback
crosshairs.
2018-09-11With the interface debug flag enabled, print a "score" for each AP wePeter Hessler
consider during auto-join. This can help users determine why a specific network was chosen. OK stsp@
2018-09-11- moving state look up outside of PF_LOCK()Alexandr Nedvedicky
this change adds a pf_state_lock rw-lock, which protects consistency of state table in PF. The code delivered in this change is guarded by 'WITH_PF_LOCK', which is still undefined. People, who are willing to experiment and want to run it must do two things: - compile kernel with -DWITH_PF_LOCK - bump NET_TASKQ from 1 to ... sky is the limit, (just select some sensible value for number of tasks your system is able to handle) OK bluhm@
2018-09-11Add defines for amd microcode msrs which appear to be present since k8Jonathan Gray
though amd only provides public redistributable updates for >= family 10h.
2018-09-10Remove useless INPCBHASH() macros. Just expand them.Alexander Bluhm
OK stsp@
2018-09-10Prevent a panic in umb(4) when roaming is diabled.Gerhard Roth
Found by beck@, tested and ok by bluhm@
2018-09-10- if_cloners list populated at boot time only then becomes immutable,Alexandr Nedvedicky
so we can let go if_cloners_lock. OK tb@, claudio@, bluhm@, kn@, henning@
2018-09-10Instead of calculating the mbuf packet header length here and there,Alexander Bluhm
put the algorithm into a new function m_calchdrlen(). Also set an uninitialized m_len to 0 in NFS code. OK claudio@
2018-09-10if_setrdomain could potentially call if_clone_create recursively in the createHenning Brauer
rdomain case leading to locking issues and lots of headscratching. turns out the only case where if_setrdomain could actually create an rdomain and thus end up with that pattern is the ioctl path. make if_setrdomain never create an rdomain, return error if it doesn't exist already, introduce if_createrdomain, and adjust the ioctl path to use it. ok sashan bluhm claudio
2018-09-10in pf_syncookie_validate, return early if we don't have syncookies inHenning Brauer
flight that can possibly match. there is a tiny but existing chance that a sequence number matches w/ our hash and we'd end up dropping traffic. unclear whether that has actually happened since the report chain is long :) report via haesbert via bluhm; ok bluhm
2018-09-10During fragment reassembly, mbuf chains with packet headers wereAlexander Bluhm
created. Add a new function m_removehdr() do convert packet header mbufs within the chain to regular mbufs. Assert that the mbuf at the beginning of the chain has a packet header. found by Maxime Villard in NetBSD; from markus@; OK claudio@
2018-09-10Limit the fragment entry queue length to 64 per bucket. So we haveAlexander Bluhm
a global limit of 1024 fragments, but it is fine grained to the region of the packet. Smaller packets may have less fragments. This costs another 16 bytes of memory per reassembly and devides the worst case for searching by 8. requestd by claudio@; OK sashan@ claudio@
2018-09-10do not immediately set the join'd network, the join command only updatesPeter Hessler
the list. makes /etc/netstart very fast when ran while the interface is up OK stsp@
2018-09-10fix typo in the length of the essid we want to switch toPeter Hessler
found with and OK stsp@
2018-09-10extract clearing WEP/WPA in ess into helper functionsPeter Hessler
2018-09-10use the correct essid when switching during the ioctl pathPeter Hessler
pointed out by stsp@
2018-09-10give set_ess a len variable, so we can correctly match the essid we wantPeter Hessler
to switch to. pointed out by stsp@
2018-09-10put the port into autonegotiate mode on attach, since that's the defaultJonathan Matthew
media setting. tested by and ok ccardenas@
2018-09-10if the adapter can't determine the phy type on a port, pretend it's baseCRJonathan Matthew
so we get a usable list of media types to pick from. tested by and ok ccardenas@
2018-09-10bit rates over 2G won't fit in an int, so use uint64_ts insteadJonathan Matthew
2018-09-09pmap_activate() should match cpu_switchto, so set up ci_{kern,user}_cr3Philip Guenther
if activating for the current thread and meltdown mitigations are in effect. Not clear if it's actually possible to hit the case where this matters, but it's the Right Thing. ok mlarkin@
2018-09-09Simplify pmap_is_curpmap(): %cr3 can never match pm_pdirpa_intel herePhilip Guenther
as this code isn't present in those page tables ok mlarkin@
2018-09-09Calculate automatically the padding necessary for lining up thePhilip Guenther
iretq instruction used when Meltdown mitigation is effect. It got pushed off when an lfence was added in locore.S rev 1.107, resulting in two signals being sent instead of one when iretq faulted, and neither signal had the correct sigcontext info. Update the makefile rule for locore.o to verify that things are correct. ok mlarkin@