summaryrefslogtreecommitdiffstats
path: root/sys (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* When killing a process, the signal is handled by any thread thatbluhm2019-05-138-41/+59
| | | | | | | | | | does not block the signal. If all threads block the signal, we delivered it to the main thread. This does not conform to POSIX. If any thread unblocks the signal, it should be delivered immediately to this thread. Mark such signals pending at the process instead of a single thread. Then any thread can handle it later. OK kettenis@ guenther@
* Do not check for IFF_RUNNING inside bstp_initialization().mpi2019-05-131-3/+2
| | | | | | | This allows to set such flag after completing the initialization of a bridge and still have bstp_tick() be scheduled from the begining. Fix a regression reported by and ok markus@
* Deal with the case where bridge_getbif() can return NULL.mpi2019-05-131-3/+4
| | | | | | | | Since `bif' are removed from the interface list before calling smr_barrier() and the hash queue is cleaned up afterward, it is possible to find an ifidx with bridge_rtlookup() that won't match to any `bif'. Fix a panic reported by Hrvoje Popovski, ok visa@
* dup2(n,n) would rlimit check before handling the n==n shortcut,deraadt2019-05-131-6/+6
| | | | | and incorrectly return EBADF when n>curlim. ok millert guenther tedu
* add idr_is_empty()jsg2019-05-131-1/+6
|
* vmm: add host side pvclockpd2019-05-135-44/+115
| | | | | | | | | Emulate kvm pvclock in vmm(4). Compatible with pvclock(4) in OpenBSD. Linux does not attach to this (yet). Fixes by reyk@ and tested extensively by reyk@, tb@ and phessler@ ok mlarkin@ phessler@ reyk@
* regen (missed this when I did the colemak update)abieber2019-05-131-2/+5
|
* Add the needed ICC_PMR_EL1 register bit defines for the previouspatrick2019-05-131-2/+6
| | | | | | | commit to unbreak the build. from kettenis@ ok drahn@
* Delete cpu_idle_{enter,leave}_fcn() as unused. Add RETGUARD checks toguenther2019-05-123-13/+8
| | | | | | cpu_idle_cycle() ok mpi@ kettenis@
* s/availible/available/guenther2019-05-121-2/+2
|
* vmm: add a x86 page table walkerpd2019-05-122-2/+158
| | | | | | | | | | Add a first cut of x86 page table walker to vmd(8) and vmm(4). This function is not used right now but is a building block for future features like HPET, OUTSB and INSB emulation, nested virtualisation support, etc. With help from Mike Larkin ok mlarkin@
* remove unused STUB definitionjsg2019-05-121-6/+0
|
* Switch the list of span interfaces and interfaces to SMR.mpi2019-05-123-86/+123
| | | | | | | | | | | | This removes the KERNEL_LOCK() around the list iteration in bridge_enqueue(). Since the NET_LOCK() isn't protecting any data structure, release it early in all the code paths coming from the Network Stack to prevent possible deadlock situations with smr_barrier(). bridge_input() is still KERNEL_LOCK()ed as well as bridge_filterrule(). ok visa@
* no need to store the wmesg passed to rwsleep() as a static variable anymoreanton2019-05-121-3/+2
|
* Fix 'ifconfig nwflags; These flags ended up overlapping with other flagsstsp2019-05-126-27/+35
| | | | | | | | | | | | in ieee80211com's ic_flags because we haven't been paying attention to them (they're not in the same place in the code and hence easy to miss). Move them to a dedicated variable to avoid this problem in the future. Add a new 'stayauth' nwflag which can be set to let net80211 ignore deauth frames. This can be useful when deauth frames are being persistently spoofed by an attacker. Idea from beck@ ok beck@ phessler@
* pushing NET_LOCK() further down from if_clone_{create,destroy}()sashan2019-05-124-33/+23
| | | | OK mpi@
* Between the broken GIC-500 on the RK3399 and differences in the secure modekettenis2019-05-121-44/+52
| | | | | | | | | | | | | configuration done by TF-A between boards we have to shift the priorities that we use for both the architected ICC_PMR_EL1 register and the memory mapped priority registers on the GIC in different ways. Make this explicit in the code and try to handle all the cases we care about. This includes QEMU and RK3399 boards that still use the TF-A version provided by Rockchip. Seems to make the rockpro64 run stable with a GENERIC kernel. ok drahn@, patrick@
* Unused switch_port variable.akoshibe2019-05-121-4/+1
|
* Add ZLIB_CONSTjca2019-05-122-6/+13
| | | | Introduced in zlib-1.2.5.2, used by a few ports. ok deraadt@
* Make sure the extended PM register descriptions actually exist beforekettenis2019-05-121-9/+9
| | | | | | | using them. Fixes machines with ancient ACPI 1.0 (such as recent hypervisors). ok deraadt@
* Document which fields are protected by the SCHED_LOCK().mpi2019-05-121-11/+15
| | | | ok tedu@, guenther@, ians@
* Add support for mapping ACPI PM registers using the "extended" gasiokettenis2019-05-121-30/+71
| | | | | | representation from the FADT. Mostly fixes the Lanner NCA-1510. ok lteo@, mlarkin@, deraadt@
* Correct a check in if_isconnected().mpi2019-05-111-2/+2
| | | | | | Fix a regression introduced by the bridge(4) refactoring. Found by and ok bluhm@
* Show driver name on net80211 scan debug lines.stsp2019-05-111-2/+2
| | | | ok mpi@
* whitespace removalmlarkin2019-05-111-3/+3
|
* whitespace removalmlarkin2019-05-111-3/+3
|
* whitespace removalmlarkin2019-05-111-3/+3
|
* Kill an unused done: label and the associated superfluous "return;"krw2019-05-111-3/+1
| | | | | statement at the end of a void function. All inside #if 0, so no effect on generated code.
* move the noise about W^X mapping failure inside the sysctl kern.wxabortderaadt2019-05-111-8/+8
| | | | | | | | knob, since we found a proram which tests RWX mapping then changes execution behaviour to non-W^X. (that program is chrome, as v8 is heading towards W^X compliance with mprotect RW/RX swaps, and also has jitless components in developent.) ok sthen kettenis robert
* wxneeded binaries on wxallowed filesystems were refused execution. We havederaadt2019-05-111-14/+1
| | | | | | | | encountered a wxneeded binary that attempts correct operation when started on a nowxallowed filesystem (it tries mprotect with RWX, notices ENOTSUP and acts in a different way). So permit execution (but of course don't allow W^X violating mappings) ok sthen kettenis robert
* Further cleanup of efi32/64.mlarkin2019-05-1114-438/+14
| | | | | | Removes some code and files not needed by efi32 and efi64. ok guenther
* A trunk(4) usually stays up when the link state of one of its membersflorian2019-05-111-1/+3
| | | | | | | | | changes. While we do get RTM_IFINFO messages for the (physical) member interfaces there is no indication that something changed from the trunk(4) interface. It is helpful to get this information in userland from the trunk so that userland daemons do not need to track interface membership by themselves. OK phessler
* make rw-lock adaptivesashan2019-05-111-1/+29
| | | | OK visa@, OK mpi@
* unbreak the build without IPSEC.benno2019-05-111-1/+5
| | | | ok claudio@ deraadt@
* implement dma_fence_arrayjsg2019-05-112-15/+123
|
* we have never built without %b supportderaadt2019-05-112-7/+2
|
* Make rt_mpls_set() be more strict in what it accepts. Also ensure thatclaudio2019-05-112-10/+16
| | | | | | | | | | the RTF_MPLS can't be toggled without rt_mpls_set() being called. While RTF_MPLS is part of RTF_FMASK it should be excluded from the flags and mask when they are applied to the route since toggling it requires a call to rt_mpls_set(). OK bluhm@ Reported-by: syzbot+86344a9e31c27aa6f15b@syzkaller.appspotmail.com
* Fix incorrect error message.lteo2019-05-111-2/+2
| | | | ok kettenis@
* Implement interrupt controller functionality in the Rockchippatrick2019-05-111-1/+236
| | | | | | | GPIO driver. This allows us to use the fusbtc(4) interrupt on the RockPro64. ok kettenis@
* Add fusbtc(4) to support the Fairchild FUSB302 USB Type-C controller.patrick2019-05-114-3/+699
| | | | | | | | | | | | | | | | A Type-C controller has multiple tasks. Even though the orientation of the plug doesn't matter for the user, it matters for the hardware. To be able to know how to route the SuperSpeed pins you need to know which way the plug is connected. Also you need to know if you're a sink/source or device/host. To get the first connection, you toggle between the modes until you find a connection. In case you see that a sink is connected, you can turn on USB Vbus to power the sink. This driver explicitly does not implement USB's Type-C state machine, but if we get more and more of these controllers it might be worth doing. Also there's no support for Power Delivery messages yet. ok kettenis@
* move irq_work bits into irq_work headerjsg2019-05-112-21/+50
|
* Regenabieber2019-05-111-2/+26
|
* Add the colemak keyboard layout.abieber2019-05-112-3/+29
| | | | OK deraadt@
* Restore previous behavior of limiting deadlock detection to posix-styleanton2019-05-111-7/+8
| | | | | | | | locks. ok jturner@ visa@ Reported-by: syzbot+f9f13034fd656af6c48f@syzkaller.appspotmail.com
* socppc makes an extended visit to the bigbucket.deraadt2019-05-11103-12423/+4
| | | | ok kettenis
* Refactor efiboot into 32 and 64 bit copies.mlarkin2019-05-1128-0/+4378
| | | | | | | | Make 2 separate efiboots, one for 32 bit and one for 64 bit to allow us to remove lots of #ifdef code. Needed to ease the development effort for random-VA linked kernels ok tedu, deraadt
* Refactor efiboot into 32 and 64 bit copies.mlarkin2019-05-1128-0/+4382
| | | | | | | | Make 2 separate efiboots, one for 32 bit and one for 64 bit to allow us to remove lots of #ifdef code. Needed to ease the development effort for random-VA linked kernels ok tedu, deraadt
* Disentangle #ifdef EFIBOOT.mlarkin2019-05-1013-188/+1169
| | | | | | | | Separate out files used by both BIOS and EFI boot modes. These files had many #ifdef EFIBOOT code paths that make it difficult to move forward with changes needed to support random base VA linked kernels. ok deraadt@
* vmm: handle some unhandled exits for SVMpd2019-05-101-2/+15
| | | | | | | | There were some exits for instructions that were unhandled and caused the guest to terminate if it tried to execute them. We now inject a #ud for those. Also intercept and #ud RDTSCP and INVLPGA instructions. ok mlarkin@
* Add bsd.upgrade support to sparc64 bootloader.claudio2019-05-102-2/+18
| | | | OK kettenis@ deraadt@