summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-06-27amdgpio(4): restore pin configuration on resumeMike Larkin
Save/restore the pin configuration on suspend/resume for amdgpio(4). This fixes missing interrupts after resume for trackpads on some machines, including the ROG Zephyrus 14 and the HP DevOne (and probably others). Code based on pchgpio(4). ok deraadt, kettenis
2022-06-26Mark `pipex_enable' as atomic. We never check `pipex_enable' withinVitaliy Makkoveev
(*if_qstart)() and we don't worry it's not serialized with the rest of output path. Also we will process already enqueued pipex(4) packets regardless on `pipex_enable' state. Use the local copy of `pipex_enable' within pppx_if_output(), otherwise we loose consistency. pointed and ok by bluhm@
2022-06-26Don't reset `idle_time' timeout on closed pipex(4) sessions in packetVitaliy Makkoveev
processing path. Such sessions already reached time to live timeout, and the garbage collector waits a little to before kill them. Otherwise we could make session's life time more then PIPEX_CLOSE_TIMEOUT. ok bluhm@
2022-06-26Don't take kernel lock on pipex(4) pppoe input. This extra serializationVitaliy Makkoveev
is not required. In packet processing path we have shared netlock held, but we do read-only access on per session `flags' and `ifindex'. We always modify them from ioctl(2) path with exclusive netlock held. The rest of pipex(4) session is immutable or uses per-session locks. ok bluhm@
2022-06-26In groff commit 78e66624 on May 7 20:15:33 2021 +1000,Ingo Schwarze
G. Branden Robinson changed the -T ascii rendering of \(sd, the "second" symbol, U+2033 DOUBLE PRIME, from '' to ". Follow suit in mandoc.
2022-06-26add a few missing drivers for recent nics, input from jmatthew kettenis ↵Stuart Henderson
mbuhl deraadt
2022-06-26Fix spacing.Vitaliy Makkoveev
2022-06-26add --null to usage() forgot in previous commit. reminded by jmc@, thanks!op
2022-06-26Switch walkargs for the buffer size to size_t and change the overflowClaudio Jeker
check to the less awkward w->w_needed <= w->w_given. OK bluhm@
2022-06-26remove outdated commentFlorian Obser
2022-06-26The "ifq_set_maxlen(..., 1);" hack we use to enforce pipex(4) relatedVitaliy Makkoveev
(*if_qstart)() be always called with netlock held doesn't work anymore with PPPOE sessions. Introduce `pipex_list_mtx' mutex(9) and use it to protect global pipex(4) lists and radix trees. Protect pipex(4) `session' dereference with reference counters, because we could sleep when accessing pipex(4) from ioctl(2) path, and this is not possible with mutex(9) held. ok bluhm@
2022-06-26Add missing splx before returning when urtwn_ccmp_decap() fails.Jonathan Matthew
from Christian Ludwig
2022-06-26Break out of the switch statement rather than returning early on ioctlJonathan Matthew
errors, ensuring the IPL is correctly restored. from Christian Ludwig
2022-06-26add missing splx in error pathJonathan Matthew
from Christian Ludwig
2022-06-26'pipex_mppe' and 'pipex_session' structures have uint16_t bit fieldsVitaliy Makkoveev
which represent flags. We mix unlocked access to immutable flags with protected access to mutable ones. This could be not MP independent on some architectures, so convert these fields to u_int `flags' variables. ok bluhm@
2022-06-26Provide and use long_{get,set}()Joel Sing
Apparently at some point a LONG_it was misaligned - provide and use long_{get,set}() so that we always memcpy() rather than doing it some times but not others. While here provide long_clear() rather than abusing and reusing long_free(). ok tb@
2022-06-26Discourage nfs mounting of /var by not talking about it.Theo de Raadt
ok sthen florian
2022-06-26Allow waiting during ktable allocation in pf_ioctl.mbuhl
OK bluhm Reported-by: syzbot+50ea4f33ed5dd9264918@syzkaller.appspotmail.com Reported-by: syzbot+df65f8b7ee8c0089e885@syzkaller.appspotmail.com
2022-06-26Fix URI name constraints, allow for URI's with no host part.Bob Beck
Such uri's must be parsed and allowed, but then should fail if a name constraint is present. Adds regress testing for this same case. fixes https://github.com/libressl-portable/openbsd/issues/131 ok tb@
2022-06-26grep: add --null flagop
makes grep print an ASCII NUL byte after the file name to make the output unambiguous even in the presence of file names with funny characters. A previous iteration of this diff was improved by benno@ and tedu@ and discussed also with sthen@ and deraadt@. deraadt@ also improved the manpage changes in this version of the diff. OK deraadt@
2022-06-26drm/amd/display: Don't reinitialize DMCUB on s0ix resumeJonathan Gray
From Nicholas Kazlauskas 7fd1d002852f93f5c03b3188f585245c50b52aea in linux 5.15.y/5.15.50 79d6b9351f086e0f914a26915d96ab52286ec46c in mainline linux
2022-06-26gc trust, it's never set.Florian Obser
OK beck
2022-06-26Wait for autoconf interfaces to come up in netstart(8) instead ofFlorian Obser
rc(8). This makes tunnel interfaces work that depend on working autoconf interfaces. OK deraadt
2022-06-26Start network auto configuration daemons earlier so that tunnelFlorian Obser
interfaces can depend on dhcp or slaac. dhcpleased needs /var mounted so pull that up, we do not support /var on nfs. With & OK deraadt, earlier version OK sthen
2022-06-26sync with arm64.htmlJonathan Gray
2022-06-26Delete trailing whitespace. No code change.Mike Larkin
2022-06-26vmd: create a copy of bios at 4g boundaryDave Voutila
Newer Linux kernels call into the bios to perform a reboot and our version of SeaBIOS assumes there's a "copy" of the bios ending at 4g. When SeaBIOS reads from this area, since vmd doesn't perform mmio yet, guests terminate with an unhandled fault. Carve out some space ending at 4g and copy the bios there. Technically we could load garbage there, but give SeaBIOS what it wants for now. ok mlarkin@
2022-06-26catch up on some country name changesTheo de Raadt
2022-06-26allow HW_USERMEM64 in sysctl pledgeJonathan Gray
chromium loads vulkan when going to chrome://gpu anv, the Intel vulkan driver in Mesa uses HW_USERMEM64 ok sthen@ deraadt@
2022-06-26Pignatoro -> PignataroJonathan Gray
2022-06-26CLang -> ClangJonathan Gray
2022-06-26Remove unused VOP_POLL().Visa Hankala
OK mpi@
2022-06-26whitespaceTheo Buehler
2022-06-25Use in_addr for AF_INET.mbuhl
OK bluhm
2022-06-25Don't add unknown filetypes to the entity queue. Otherwise we bail outTheo Buehler
without good reason. Regression introduced in a recent refactoring found by job ok claudio job
2022-06-25Move leaf certificate checks to the last thing after chain validation.Bob Beck
While seemingly illogical and not what is done in Go's validator, this mimics OpenSSL's behavior so that callback overrides for the expiry of a certificate will not "sticky" override a failure to build a chain. ok jsing@
2022-06-25Since 128bit addressing is not enough add some addition 32bit ofClaudio Jeker
scope_id to struct kroute6 to make link local addresses work. OK tb@
2022-06-25Increase the auto partitioner's maximum /usr size to 30G.mbuhl
OK bluhm, otto, deraadt
2022-06-25Add some airports I've landed airplanes at.Mike Larkin
2022-06-25Use ints for boolean values.Joel Sing
Switch to using ints for boolean values and use 0 or 1 for constructed, rather than using 0 the ASN.1 tag encoded value (1 << 5). ok tb@
2022-06-25Add HFE in Ahnui, China.mbuhl
I flew from there to Xi'an in 2019.
2022-06-25Reuse ASN1_INTEGER functions for ASN1_ENUMERATED_{get,set}()Joel Sing
Instead of having a separate get/set implementation, reuse the ASN1_INTEGER code. Also prepare to provide ASN1_ENUMERATED_{get,set}_int64(). ok beck@ tb@
2022-06-25Check pointer argument after {d2i,i2d}_ASN1_{BIT_STRING,BOOLEAN,INTEGER}()Joel Sing
2022-06-25Add regress for ASN1_INTEGER_{get,set}_{u,}int64()Joel Sing
2022-06-25Rewrite ASN1_INTEGER_{get,set}() using CBS/CBBJoel Sing
In the process, prepare to provide ASN1_INTEGER_{get,set}_{u,}int64(). ok beck@ tb@
2022-06-25remove unused struct membersFlorian Obser
2022-06-25Simplify ASN1_INTEGER_cmp()Joel Sing
ok beck@ tb@
2022-06-25Add regress for ASN1_INTEGER_cmp()Joel Sing
2022-06-25If an .Xr macro contains a section argument, write an aria-label attributeIngo Schwarze
such that users of screen readers aren't forced to listen to lengthy and distracting readings like "mdoc, left parenthesis, 7, right parenthesis". Based on a patch from Anna Vyalkova <cyber at sysrq dot in>, significantly tweaked by me.
2022-06-25remove some unused code and uneeded includesJonathan Gray
ok beck@ florian@