summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-02-17Writes to the ps_flags field of struct process should be atomic.Rob Pierce
Ok deraadt@ guenther@
2022-02-17remove unused definesJonathan Gray
2022-02-17reduce includesJonathan Gray
2022-02-17reduce includesJonathan Gray
ok deraadt@
2022-02-16rev 1.4 was wrong to put potential IO operations after _GTS.Theo de Raadt
re-creating the original (2 weeks ago) order of last-minute-disk-parking needs a different approach, hmm.
2022-02-16Support more mouse buttons when the terminal sends them, GitHub issueNicholas Marriott
3055.
2022-02-16syncTheo de Raadt
2022-02-16sync the description for mviic(4);Jason McIntyre
2022-02-16return unique errors (I chose some errno values.. ) for the variousTheo de Raadt
failure modes. Also, pack the code a little bit, easier to read.
2022-02-16Add missing FILTEROP_MPSAFE flag to fifoexcept_filtops.Visa Hankala
OK mpi@
2022-02-16Reduce code duplication in FIFO event filters.Visa Hankala
OK mpi@
2022-02-16Reduce code duplication in socket event filters.Visa Hankala
OK mpi@
2022-02-16Add mpfiic(4), a driver for the PolarFire SoC MSS I2C controller.Visa Hankala
OK kettenis@
2022-02-16According to RFC 2132, 2. BOOTP Extension/DHCP Option Field FormatFlorian Obser
ASCII data should not include trailing NUL but we MUST delete trailing NULs on receiving. Jan Vlach ( janus AT volny.cz) reported that Microsoft DHCP server sends the domain name option with a trailing NUL which the installer put into /etc/myname as a trailing ^@ which smtpd does not like. Fix some whitespace while here. Input & OK millert
2022-02-16nat-to round-robin without a pool should fallback to POOL_NONEAlexandr Nedvedicky
bug reported by giovanni@ OK giovanni@
2022-02-16unifdef PROC_PCJonathan Gray
ok guenther@ rob@
2022-02-16hyphenate "8-byte";Jason McIntyre
2022-02-16if the lids indicate we are not supposed to wakeup, return EAGAIN ratherTheo de Raadt
than scheduling an acpi thread
2022-02-16document endpoint modeDavid Gwynne
2022-02-16If the lid is closed, suspend_finish() now returns EAGAIN, so go to the topTheo de Raadt
and restart the suspend all over again. This was previously done by issuing a task to the acpi thread, but this is simpler. (I want to try to duplicate these tests earlier in the resume path...)
2022-02-16change MD gosleep() and sleep_finish() to return int, the MI code will beTheo de Raadt
able to react to this suitably.
2022-02-16Currently, wskbd_set_mixervolume() only adjusts the volume of the firstAnton Lindqvist
attached audio device, i.e. audio0. This approach does not work well while using additional audio devices equipped with physical volume keys since those would only affect the volume of audio0. Instead, correlate audio and ucc devices attached over USB in order to adjust the volume of the correct audio device. This is done by passing a cookie from the common point of attachment which is later used to correlate the audio and wskbd device. The same approach could be adopted for audio and wskbd devices attaching on a different bus. Keep in mind that it's of importance to make use of and increment the same global cookie identifier to avoid collisions. Makes the volume keys on my Logitech G435 Headset do the right thing. ok ratchov@
2022-02-16Make room for a cookie argument passed to audio_attach_mi(). CurrentlyAnton Lindqvist
unused but intended to be used to correlate audio and wskbd devices. ok ratchov@
2022-02-16check pf rule "set prio" values consistently.David Gwynne
consistently means we do the check in pf_rule_copyin() so both DIOCADDRULE and DIOCCHANGERULE have the prio values checked. this in turn prevents invalid prio values getting set on a rule via DIOCCHANGERULE. this was caught by a kassert in the ifq priq code firing. Reported-by: syzbot+a8f8e24a44b441e71d93@syzkaller.appspotmail.com ok sashan@
2022-02-16Add libclang_rt.ubsan_minimal to comp setGreg Steuck
ok jca@
2022-02-16Plug ubsan_minimal into gnu/lib/libclang_rt buildGreg Steuck
ok jca@
2022-02-16Add ifdefs to build ubsan_minimal on OpenBSDGreg Steuck
ok jca@
2022-02-16prevent (re)opening of tun/tap interfaces that are being destroyed.David Gwynne
if an open tun (or tap) device is destroyed via the clone destroy ioctl (eg, like what ifconfig destroy does), there is a window while the open device is being revoked on the vfs side that a third thread can come and open it again. this in turn triggers a kassert in the ifconfig destroy path where it expects the device to be closed. fix this by having tun_dev_open check for the TUN_DEAD flag that the destroy function sets. this still relies on the kernel lock for serialisation. Reported-by: syzbot+5df2ad232f5f8b671442@syzkaller.appspotmail.com ok visa@
2022-02-16take a quick run at updating the manpage for the rewritten driver.David Gwynne
2022-02-16fill in support for rx prio handling.David Gwynne
2022-02-16rewrite vxlan to better fit the current kernel infrastructure.David Gwynne
the big change is removing the integration with and reliance on bridge(4) for learning vxlan endpoints. we have the etherbridge layer now (which is used by veb, nvgre, bpe, etc) so vxlan can operate independently of bridge(4) (or any other driver) while still dynamically learning about other endpoints. vxlan now uses the udp socket upcall mechanism to receive packets. this means it actually creates and binds udp sockets to use rather adding code in the udp layer for stealing packets from the udp layer. i think it's also important to note that this adds loop prevention to the code. this stops a vxlan interface being used to transmit a packet that was encapsulated in itself. i want to clear this out of my tree where it's been sitting for nearly a year. noone seems too concerned with the change either way. ok claudio@
2022-02-15Reintroduce ps state flag 'c' indicating chrooted process (via PS_BITS).Rob Pierce
Ok deraat@
2020-08-10Import compiler-rt 10.0.1 release.Patrick Wildt
ok kettenis@
2022-02-15Since acpitoshiba brightness button processing no longer plays gamesTheo de Raadt
with AML parsing outside the acpi thread, the locking-release dance around wsdisplay_{suspend,resume} can be removed ok kettenis
2022-02-15Defer the actual setting of the display brightness to the acpi thread.Mark Kettenis
ok deraadt@
2022-02-15when the MI suspend code encounters problems, we need a way toTheo de Raadt
reset the MD state before bailing out. New MD function sleep_abort() does that.
2022-02-15Add an option (default off) to control the passthrough escape sequence.Nicholas Marriott
Like set-clipboard and allow-rename it is safer to forbid this by default.
2022-02-15Do not create a buffer from an OSC 52 response if we have not sent aNicholas Marriott
query.
2022-02-15com at acpi like com at isa needs com_active() for suspend/resume support.Claudio Jeker
Fixes my com0 issues after zzz and ZZZ. OK kettenis@ miod@
2022-02-15unifdef __OpenBSD__Jonathan Gray
2022-02-15Backout previous "Unwire with map lock held" (commitid: SsVz7dLGFgR21kFe)Klemens Nanni
The (known) lock order reversals which now occur more reliably and much earlier on WITNESS boots with this diff knock out syzcaller reports since syzcaller stops at the first "crash report": https://syzkaller.appspot.com/bug?id=81b39e970cd2eb21b97d1b31746c693e300fd2dd
2022-02-15unifdef OpenBSDJonathan Gray
ok miod@
2022-02-15consistently use __linux__Jonathan Gray
2022-02-15Use knote_modify_fn() and knote_process_fn() in bpf.Visa Hankala
OK dlg@
2022-02-15unifdef CDIOCCLOSE __OpenBSD__Jonathan Gray
2022-02-15make use of pkg_* infra simplificationsMarc Espie
okay afresh1@
2022-02-15simplify code based on afresh1@'s remark: indeed I always need toMarc Espie
have a state once I'm past the initial locking
2022-02-15document the unbound/host-bound options to PubkeyAuthentication;Damien Miller
spotted by HARUYAMA Seigo
2022-02-15only tweak ifp if_flags while holding NET_LOCK.David Gwynne
tun_dev_open and tun_dev_close were being optmistic.
2022-02-15make tun_link_state take the ifnet pointer instead of tun_softc.David Gwynne
it only works on struct ifnet data, so passing ifp makes it clearer what's actually being manipulated. also fix tun_dev_open so tun_link_state is called before if_put instead of immediately after.