summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
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@
2018-09-09convert the things we save in 'join' into a single ioctl. mixing relatedPeter Hessler
settings over multiple calls was risky and racy. Pass essid, wpa, and wep paramaters in a single ioctl and process it atomically. no change for 'nwid' users OK stsp@ benno@
2018-09-09Apply retguard to the last asm functions in the arm64 kernel. This completesmortimer
retguard in the kernel and brings the number of useful ROP gadgets at runtime to zero. ok kettenis@
2018-09-09allow the automatically created loopback interfaces in rdomains to beHenning Brauer
deleted if the rdomain doesn't contain any other interface. turn the rdomain back into an ordinary, empty rtable in that case. with this and the previous commits one can get rid of rdomains again without rebooting, which wasn't possible any more for some time ok bluhm, input mpi
2018-09-09if_setrdomain: allow empty rtables to be turned into rdomains, not justHenning Brauer
nonexistant ones as before. nasty error handling with bluhm, feedback mpi as well. ok bluhm
2018-09-09provide rtable_empty(), returns 1 if the rtable doesn't contain any routesHenning Brauer
ok bluhm
2018-09-08Bump NMBCLUSTERS to a more reasonable 256MB instead of the tiny 4MB.Claudio Jeker
May help ports builders to not run out of memory. Lots of agreement and OK n2k18@
2018-09-08Split the pf(4) fragment reassembly queue into smaller parts.Alexander Bluhm
Remember 16 entry points based on the fragment offset. Instead of a worst case of 8196 list traversals we now check a maximum of 512 list entries or 16 array elements. discussed with claudio@ and sashan@; OK sashan@
2018-09-08Don't cause an error when setting the same rdomain.YASUOKA Masahiko
Found by asou at soum.co.jp. ok claudio mpi akoshibe benno
2018-09-07remove some unused variables and otherwise tidy up a bit.Jonathan Matthew
2018-09-07Explain the special case for redirect to localhost in a comment.Alexander Bluhm
input and OK claudio@
2018-09-07clarify that goto error in alloc_all_endpoints_fixed_ep() always returnsmiko
USBD_INVAL. ok mpi@
2018-09-07move initial jack count to alloc_all_endpoints(), and reset count to zeromiko
in free_all_jacks(). ok stsp@ ratchov@
2018-09-07Add retguard macros to cpu_switchto, setjmp, longjmp.mortimer
ok kettenis@
2018-09-06If we cannot stop the endpoint when aborting a transfer assume thatMartin Pieuchot
the device is gone and give back the descriptor to the stack. Without this usbd_abort_pipe() could end up in an infinite loop. Issue reported by Tom Murphy.
2018-09-06fix whitespaceJonathan Gray
2018-09-06Implement 64-bit DMA support in sdhc(4).Patrick Wildt
tested in snaps ok kettenis@
2018-09-06execute the same code for failure of assign_all_jacks_automatically()miko
and attach_all_mididevs(). this ensures unbind_all_jacks() and usbd_deactivate() happen for both cases. ok ratchov@
2018-09-06sync icmp_mtudisc_clone() with icmp6_mtudisc_clone(); prompted by bluhm@miko
2018-09-05Back out 1.4, it broke thingsJoshua Stein
2018-09-05Serialize synchronous commands with a rwlock.Martin Pieuchot
Prevent triggering an assert if two drivers try to submit a command at the same time. Issue reported by Tom Murphy.
2018-09-05factor error code in icmp6_mtudisc_clone(); ok kn@ florian@miko
2018-09-05Add defines for dealing with PCID support in cr3Philip Guenther
ok mlarkin@
2018-09-04Forgot to rename pf_frent_holes() prototype in previous commit.Alexander Bluhm
2018-09-04Avoid traversing the list of fragment entris to check whether theAlexander Bluhm
pf(4) reassembly is complete. Instead count the holes that are created when inserting a fragment. If there are no holes left, the fragments are continuous. idea from claudio@; OK claudio@ sashan@
2018-09-04kevent: Don't poll for nonzero timeouts < 1us.cheloha
Instead of truncating nanosecond timeouts to zero here and polling, we should round up to a delay of at least a tick, just like all the other timespec syscalls. Fixed in NetBSD kern_event.c v1.62 and FreeBSD r247804. ok millert@ visa@
2018-09-03regenJoshua Stein
2018-09-03add another toshiba nvmeJoshua Stein