summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2017-11-27Stop reporting WPA and WEP keys back to userland.Stefan Sperling
The kernel is not a password database; look your wifi keys up elsewhere. Discussed with several. ok phessler@ jca@
2017-11-27lenght->length, mostly in commentsStuart Henderson
2017-11-27Revise the linux sleeping compat code to avoid lock ordering problems.Mark Kettenis
Based on a diff from mpi@. ok guenther@, mpi@
2017-11-27Use a single timer for all ND6 entries.Martin Pieuchot
This prevents a use-after-free reported by Hrvoje Popovski where the timeout function was already sleeping on the NET_LOCK() when ifconfig(8) removed the enry from the table. By iterating on a global list in the timeout routine we ensure that the items are still valid when we process them. This also reduce differences with ARP. ok bluhm@, visa@
2017-11-27Check access before creating a file or directory.helg
input and ok mpi@
2017-11-27When renaming a file, unlock the target vnode if the target file exists.helg
ok mpi@
2017-11-27Remove MALLOC_DEBUG left overs.Martin Pieuchot
From Klemens Nanni.
2017-11-27Enable ne(4) at pcmcia.Martin Pieuchot
Tested by & diff from Donovan Watteau.
2017-11-27OMAP4 has two watchdog timers timer 2/MPU and timer 3/IVA.Jonathan Gray
Previously the device tree only described one but now it describes both. Do not attempt to set the global variable that points to a softc or register a watchdog if this has already been done. Fixes rebooting on the OMAP4 based PandaBoard-ES with a device tree from linux 4.15-rc1.
2017-11-27Add support for SAS3.5 megaraids, which are sold as Dell PERC H740P/840 andJonathan Matthew
Lenovo ThinkSystem RAID 530/930. The main differences are in fast path IO, which we don't use, so all we have to deal with is some changes in the raid context layout and different PCI BARs. The mfii_iop structure gets rearranged a bit to accommodate these. tested on a perc h740p and a h730 (by dlg@) ok dlg@
2017-11-27regenJonathan Matthew
2017-11-27add SAS3.5 megaraidsJonathan Matthew
2017-11-27Fix comment typoPhilip Guenther
2017-11-26Add various improvements to the default configuration (better defaultUlf Brosziewski
sizes of edge areas, vertical edge areas as default, and a check for the WSMOUSE_TYPE that may detect clickpads where software buttons should be placed at the top edge).
2017-11-26Don't mention XOR as a mix-in function since addition is done since 1.180Mike Belopuhov
2017-11-26Xen interrupt task barrier is just a taskq_barrier so call itMike Belopuhov
instead of rolling its own now that it's been made available. OK dlg
2017-11-26On wqe error, show also word2 and word3. Those might help in debugging.Visa Hankala
2017-11-26Initialize Rx subsystems before enabling the processing of incomingVisa Hankala
packets. Otherwise, a skosh of traffic may be handled using hardware default settings. One of the consequences is that packets can end up into a wrong POW group, causing a panic in cnmac_intr(). Panic reported by and testing help from Janne Johansson
2017-11-25Implement network boot support in efiboot(8). This changes efiboot(8)Patrick Wildt
to recognize if it has been booted via PXE. The new TFTP file system layer will then use the matching PXE base code protocol handle to load the files. Since this uses the PXE base code protocol for abstraction instead of the raw Simple Network protocol this will at this point not work on u-boot based machines as needed on ARM. Feedback and ok tom@ Also tested by afresh1@
2017-11-24rework transmit to get rid of ifq_deq_begin, and to improve speed.David Gwynne
i had a diff that did a small change to replace ifq_deq_begin/commit/rollback with ifq_dequeue, and Eduard Nicodei tweaked it a bit with Artturi Alm to use the fifo registers properly and bump the ifq len. the latter changes improve performance significantly. "if you think that diff is correct, commit it" kettenis@
2017-11-24add timeout_barrier, which is like intr_barrier and taskq_barrier.David Gwynne
if you're trying to free something that a timeout is using, you have to wait for that timeout to finish running before doing the free. timeout_del can stop a timeout from running in the future, but it doesn't know if a timeout has finished being scheduled and is now running. previously you could know that timeouts are not running by simply masking softclock interrupts on the cpu running the kernel. however, code is now running outside the kernel lock, and timeouts can run in a thread instead of softclock. timeout_barrier solves the first problem by taking the kernel lock and then masking softclock interrupts. that is enough to ensure that any further timeout processing is waiting for those resources to run again. the second problem is solved by having timeout_barrier insert work into the thread. when that work runs, that means all previous work running in that thread has completed. fixes and ok visa@, who thinks this will be useful for his work too.
2017-11-231. Prepare a consistent treatment of edge areas. 2. Add mechanismsUlf Brosziewski
that identify and mask touches resting in the bottom area.
2017-11-23Constify protocol tables and remove an assert now that ip_deliver() isMartin Pieuchot
mp-safe. ok bluhm@, visa@
2017-11-23We want `sb_flags' to be protected by the socket lock rather than theMartin Pieuchot
KERNEL_LOCK(), so change asserts accordingly. This is now possible since sblock()/sbunlock() are always called with the socket lock held. ok bluhm@, visa@
2017-11-23Replace non mp-safe carp_iamatch6() with mp-safe carp_iamatch().Martin Pieuchot
They have the same functionnality since friehm@ cleaned up balancing code. ok florian@, visa@, patrick@, bluhm@, jmatthew@
2017-11-23No need to grab the audio lock to call audio_canstart() as it checksAlexandre Ratchov
whether the device is started before using structures shared with the interrupt handler. From Michael W. Bombardieri, tested by me.
2017-11-22Add __aeabi_ldivmod.S. Needed for clang.Mark Kettenis
ok deraadt@, patrick@
2017-11-22It does not make sense to call pcb lookup from pf during packetAlexander Bluhm
forwarding. It should never match and would cause MP locking problems. While there remove an useless ifp parameter from ip_output_ipsec_send(). from markus@; OK visa@ sashan@
2017-11-21Do not assume if_get(9) returns a non NULL ifp when using a routeMartin Pieuchot
interface index. This assumption is true for the moment iff the route lookup *and* the if_get() are done under KERNEL_LOCK(). This is not the case here. Found the hardway by Hrvoje Popovski. ok florian@, visa@, bluhm@
2017-11-21Move the addrhook disestablish from carpdetach() to carp_clone_destroy()Patrick Wildt
to make it symmetric to the addrhook establish which is being done in carp_clone_create(). This fixes the issue that carp does not recognize address changes on the carp after an interface has detached, which could cause issues like carp not recovering or even panics. Unfortunately there are more bugs lurking in carp. ok bluhm@
2017-11-20Add Allwinner A10 EMAC clock.Mark Kettenis
From Artturi Alm.
2017-11-20Add the board ID of the Unifi Security Gateway PRO-4.Visa Hankala
Not tested with the hardware.
2017-11-20Fix the product code of the Unifi Security Gateway.Visa Hankala
Prompted by Justin Hibbits
2017-11-20Remove #if'0ed declsJeremie Courreges-Anglas
Stop pretending that we will migrate the content of this file to if_etherip.h. Those declarations are needed by userland, and it's easier to keep them in netinet/ip_ether.h. ok visa@
2017-11-20Keep kernel defines under #ifdef _KERNEL.Martin Pieuchot
ok bluhm@
2017-11-20Flush flows using the radix-tree instead of a global list.Martin Pieuchot
This will allows us to get rid of the list. ok visa@
2017-11-20Sprinkle some NET_ASSERT_LOCKED(), const and co to prepare runningMartin Pieuchot
pr_input handlers without KERNEL_LOCK(). ok visa@
2017-11-20Remove duplicated code working around the fact that ifpromisc() requiredMartin Pieuchot
a DOWN interface. ok visa@
2017-11-20Do not fail if an interface is DOWN when calling ifpromisc().Martin Pieuchot
As soon as the interface will be brough UP, its device driver will recognize it has the IFF_PROMISC flag and will configure its filters accordingly. ok visa@
2017-11-19Implement support for the "next-generation" clock bindings for theMark Kettenis
Allwinner A10/A20.
2017-11-19Remove interlocks between producers and consumers of randomness dataMike Belopuhov
A lot of randomness event producers are executed in the interrupt context increasing the time spent in the interrupt handler resulting in extra costs when adding randomness data to the pool. However, in practice randomness event producers require interlocking between each other, but not with with consumers due to the opportunistic nature of event consumers. To be able to take advantage of this idea, the ring buffer indexing is now done with two free running producer and consumer counters modulo power of 2 size of the ring buffer. With input from and OK visa, tb, jasper
2017-11-19Remove lock_machdep.c from amd64, i386, mips64 and sparc64.Visa Hankala
The architectures have been using the MI mplock for a while. OK deraadt@, kettenis@
2017-11-18Extend regulator "framework" with functions to get/set voltages.Mark Kettenis
ok jsg@
2017-11-18Add support for voltage regulators.Mark Kettenis
2017-11-18Submit incoming packets to the network stack in batches like is doneVisa Hankala
in many other NIC drivers. This reduces submission overhead.
2017-11-18Extend regulator "framework" with functions to get/set voltages.Mark Kettenis
ok jsg@
2017-11-18Move the packet input work requesting inside if_cnmac.c. This removesVisa Hankala
a layer of abstraction that would complicate upcoming changes.
2017-11-18Pass the software context as an argument to the interrupt handler.Visa Hankala
This is now possible because each port has a dedicated work queue interrupt.
2017-11-18Rename octeon_eth_* to cnmac_* for consistency with the driver's name.Visa Hankala
This also makes the code a bit less noisy to read.
2017-11-18Add the board ID for the Ubiquiti Unifi Security Gateway.Visa Hankala
From Justin Hibbits, thanks!