OpenBSD cvs log

created 2021-12-19T23:11:24Z
begin 2021-12-13T00:00:00Z
end 2021-12-14T00:00:00Z
path src/sys
commits 6

date 2021-12-13T13:57:48Z
author visa
files src/sys/dev/usb/uslcom.c log diff annotate
message Handle multi-port controllers in uslcom(4)

A multi-port CP210x device presents each COM port as a separate USB
virtual COM port interface. When attaching uslcom(4), take the USB
interface from the attach arguments instead of using interface 0.
This lets the driver access the different ports of a quad-port CP2108.

Tested with a single-port CP2102 by jsg@

OK jsg@ deraadt@

date 2021-12-13T14:30:16Z
author bluhm
files src/sys/netinet6/nd6_nbr.c log diff annotate
message nd6_dad_ns_input() could trigger a NULL deref in nd6_dad_duplicated().
It checks dp in two of three places. One check got lost in revision
1.83. Do a dp == NULL once at the beginning.
OK jsg@
Reported-by: [email protected]

date 2021-12-13T14:54:22Z
author visa
files src/sys/kern/sys_pipe.c log diff annotate
src/sys/miscfs/fifofs/fifo_vnops.c log diff annotate
message Prevent kevent(2) use of EVFILT_EXCEPT with FIFOs and pipes

Currently, the only intended direct usage of the EVFILT_EXCEPT filter
is with NOTE_OOB to detect out-of-band data in ptys and sockets.
NOTE_OOB does not apply to FIFOs or pipes. Prevent the user from
registering the filter with these file types. The filter code is for
the kernel's internal use.

OK mpi@

date 2021-12-13T14:56:55Z
author visa
files src/sys/kern/sys_pipe.c log diff annotate
src/sys/kern/tty_pty.c log diff annotate
src/sys/kern/uipc_socket.c log diff annotate
src/sys/miscfs/fifofs/fifo_vnops.c log diff annotate
message Revise EVFILT_EXCEPT filters

Restrict the circumstances where EVFILT_EXCEPT filters trigger:
* when out-of-band data is present and NOTE_OOB is requested.
* when the channel is fully closed and consumer is poll(2).

This should clarify the logic and suppress events that kqueue-based
poll(2) does not except.

OK mpi@

date 2021-12-13T16:37:37Z
author deraadt
files src/sys/kern/kern_acct.c log diff annotate
src/sys/sys/acct.h log diff annotate
message acct(4) ac_tty shouldn't need NODEV from sys/param.h (which is kernel API),
-1 is sufficient to indicate the process had no controlling tty, removing
one more sys/param.h include in our userland
ok millert

date 2021-12-13T20:59:23Z
author chrisz
files src/sys/dev/fdt/rkclock.c log diff annotate
src/sys/dev/fdt/rkclock_clocks.h log diff annotate
message add pclk clock used by dwdog(4) on RK3399

ok kettenis@