summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2018-09-18cast HWRM_NA_SIGNATURE when shortening it to keep gcc happy, prodded by jsg@Jonathan Matthew
2018-09-18fix memory leak in ieee80211_end_scan()Ricardo Mestre
OK phessler@ jsg@
2018-09-17Simplify VFS initialization.Visa Hankala
Because loadable kernel modules are no longer, there is no need to register or unregister filesystem implementations at runtime. Remove vfs_register() and vfs_unregister(), and make vfsinit() call vfs_init routines directly. Replace the linked list of vfsconf structs with the vfsconflist[] array. OK mpi@ bluhm@
2018-09-17Do not acknowledge a received ack-only tcp packet that we would drop due tofriehm
PAWS. Otherwise we could trigger a retransmit of the opposite party with another wrong timestamp and produce loop. I have seen this with a buggy server which messed up tcp timestamps. Suggested by Prof. Jacobson for FreeBSD. ok krw, bluhm, henning, mpi
2018-09-17fix memory leaks in ieee80211_add_ess()Jonathan Gray
ok stsp@ phessler@
2018-09-16Fix length checks in the receive path of iwm(4).Stefan Sperling
Prompted by a panic reported by Xavier Guerin on bugs@ ok tb@
2018-09-16Move vfsconf lookup code into dedicated functions.Visa Hankala
OK bluhm@
2018-09-14Initialize the TDB to NULL in ipsec_common_input() andRicardo Mestre
ipsec_{input,output}_cb() so that in the case of sending or receiving a bogus mbuf (NULL) we don't end up trying to dereference the TDB, while being an uninitialized pointer, to increase the drops. Coverity IDs 1473312, 1473313 and 1473317. OK mpi@ visa@
2018-09-14Unify and bump some of the NMBCLUSTERS defines. Some archs had it set toClaudio Jeker
4MB which is far too low especially when the platform is able to run MP. New limits are, amd64 = 256M; arm64, mips64, sparc64 = 64M; alpha, arm, hppa, i386, powerpc = 32M; m88k, sh = 8M Still rather conservative numbers but much better than before. At least some hangs of arm64 build boxes was caused by this. OK kettenis@, visa@
2018-09-14add gapdummy.c to the "clean" target like other generated filesChristian Weisgerber
ok visa@ jsg@ phessler@
2018-09-14In general it is a bad idea to use one random secret for two things.Alexander Bluhm
The inet PCB uses one hash with local and foreign addresses, and one with local port numbers. Give both hashes separate keys. Also document the struct fields. OK visa@
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@