OpenBSD cvs log

created 2019-11-23T18:35:20Z
begin 2019-11-19T00:00:00Z
end 2019-11-20T00:00:00Z
path src/sys
commits 8

date 2019-11-19T00:06:26Z
author dlg
files src/sys/net/if_tun.c log diff annotate
message take care to avoid a race when creating the same interface.

it was possible for multiple tun0 interfaces to be created concurrently,
which confused the pf_if code. when concurrent tun0 interfaces were
created, the pf_if code tried to add an addrhook for each interface,
but because they shared a name the two hooks ended up on one
interface. if the interface with two addrhooks was destroyed,
KASSERT(TAILQ_EMPTY(&ifp->if_addrhooks)) would trip. before the
KASSERT existed, we'd blindly free a tailq head, which would corrupt
the list, which would cause faults in pfi_detach_ifnet() anyway.

so now we take more care to ensure multiple tun0 interfaces cannot
exist concurrently.

inserting a tun or tap interface into the list of tun or tap
interfaces now checks to ensure that an interface with the same
unit number doesnt already exist. if an existing interface is found,
insert errors with EEXIST and the callers can unwind. the tunopen
and tapopen paths cope with losing the race.

sashan@ made a reliable test that could produce the failures
ok sashan@

date 2019-11-19T02:01:58Z
author kevlo
files src/sys/arch/amd64/conf/RAMDISK_CD log diff annotate
src/sys/arch/i386/conf/RAMDISK_CD log diff annotate
message Enable rge(4).

ok deraadt@

date 2019-11-19T03:33:43Z
author yasuoka
files src/sys/dev/pci/if_ixl.c log diff annotate
message Correct the link speed constant variables. From Shoichi Yamaguchi.

ok jmatthew

date 2019-11-19T06:32:46Z
author kevlo
files src/sys/dev/ic/re.c log diff annotate
message Don't assign ifp twice in the re_txeof().

ok deraadt@

date 2019-11-19T06:34:10Z
author kevlo
files src/sys/dev/ic/re.c log diff annotate
message Set isr to the correct value (sc->rl_intrs).

ok deraadt@

date 2019-11-19T13:47:06Z
author stsp
files src/sys/dev/pci/pcidevs log diff annotate
message Add PCI ID for an Intel AX 200 device.
ok jsg@

date 2019-11-19T13:47:25Z
author stsp
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen

date 2019-11-19T19:19:28Z
author anton
files src/sys/kern/sys_pipe.c log diff annotate
message When waiting on pipe I/O, simplify the unlock/relock logic using
rwsleep(). All made possible by the recent switch to using a rwlock as
the exclusive pipe lock.

ok visa@