OpenBSD cvs log

created 2019-05-08T03:57:50Z
begin 2017-12-14T00:00:00Z
end 2017-12-15T00:00:00Z
path src/sys
commits 20

date 2017-12-14T00:41:58Z
author dlg
files src/sys/kern/kern_synch.c log diff annotate
src/sys/sys/proc.h log diff annotate
src/sys/sys/systm.h log diff annotate
message add code to provide simple wait condition handling.

this will be used to replace the bare sleep_state handling in a
bunch of places, starting with the barriers.

date 2017-12-14T00:45:16Z
author dlg
files src/sys/kern/kern_task.c log diff annotate
src/sys/kern/kern_timeout.c log diff annotate
src/sys/net/ifq.c log diff annotate
message replace the bare sleep state handling in barriers with wait cond code

date 2017-12-14T02:40:51Z
author dlg
files src/sys/net/ifq.c log diff annotate
message i forgot to convert ifq_barrier_task to cond_signal.

date 2017-12-14T02:42:18Z
author dlg
files src/sys/kern/kern_timeout.c log diff annotate
message i forgot to convert timeout_proc_barrier to cond_signal

date 2017-12-14T03:30:43Z
author guenther
files src/sys/arch/alpha/alpha/mem.c log diff annotate
src/sys/arch/amd64/amd64/mem.c log diff annotate
src/sys/arch/arm/arm/mem.c log diff annotate
src/sys/arch/arm64/arm64/mem.c log diff annotate
src/sys/arch/hppa/hppa/mem.c log diff annotate
src/sys/arch/i386/i386/mem.c log diff annotate
src/sys/arch/m88k/m88k/mem.c log diff annotate
src/sys/arch/macppc/macppc/mem.c log diff annotate
src/sys/arch/mips64/mips64/mem.c log diff annotate
src/sys/arch/sh/sh/mem.c log diff annotate
src/sys/arch/socppc/socppc/mem.c log diff annotate
src/sys/arch/sparc64/sparc64/mem.c log diff annotate
message fcntl(F_SETFL) invokes the FIONBIO and FIOASYNC ioctls internally, so
the memory devices (/dev/null, /dev/zero, etc) need to permit them.

problem noted, tweak, and testing by jeremy@
ok deraadt@

date 2017-12-14T06:21:04Z
author deraadt
files src/sys/dev/ata/wd.c log diff annotate
message Repair flushcache/standby operations to not convert AT_WAIT operations
to AT_POLL, which some chip driver underneath cannot handle.
tested by bluhm also

date 2017-12-14T09:14:30Z
author fcambus
files src/sys/arch/i386/i386/via.c log diff annotate
message Change bcopy to memcpy in the i386 version of the VIA PadLock driver.
It was done a while ago in the amd64 version.

OK mlarkin@, deraadt@, dlg@

date 2017-12-14T09:22:16Z
author benno
files src/sys/dev/usb/usbdevs log diff annotate
message add usb id for TP-LINK TL-WN722N v2
ok deraadt@ phessler@ kettenis@

date 2017-12-14T09:25:31Z
author benno
files src/sys/dev/usb/usbdevs.h log diff annotate
src/sys/dev/usb/usbdevs_data.h log diff annotate
message sync

date 2017-12-14T09:26:11Z
author benno
files src/sys/dev/usb/if_urtwn.c log diff annotate
message let urtwn(4) find my TP-LINK TL-WN722N v2
ok deraadt@ phessler@ kettenis@

date 2017-12-14T14:21:11Z
author stsp
files src/sys/dev/pci/if_iwn.c log diff annotate
src/sys/dev/pci/if_iwnreg.h log diff annotate
src/sys/dev/pci/if_iwnvar.h log diff annotate
message Add background scanning support to iwn(4), as was done for iwm(4) recently.

Tested on following devices by various people: 6300, 6200, 6205, 2200, 5100

ok phessler@ tb@

date 2017-12-14T14:26:50Z
author bluhm
files src/sys/netinet/ip_icmp.c log diff annotate
src/sys/netinet6/icmp6.c log diff annotate
message The pf code marks ICMP packets belonging to an TCP or UDP divert
state as diverted. This is necessary for IP input to accept the
packet as ours. But it must not be used to match the ICMP packet
to a raw socket. Clear the PF_TAG_DIVERTED mbuf pf flag for the
special ICMP and ICMP6 packets in icmp_input_if() and icmp6_input().

The m_tag_delete_chain() caused an inconsistent PF_TAG_DIVERTED
mbuf pf flag and PACKET_TAG_PF_DIVERT mbuf tag which triggered an
assert in rip_input(). Deleting all mbuf tags can have undesired
side effects and is not necessary anymore since icmp_reflect() calls
m_resethdr(). Do not touch the mbuf tags and adjust the mbuf pf
flags for the correct behavior of rip_input() and rip6_input().

reported by Chris Eidem, James Turner, vicviq, Scott Vanderbilt
OK mpi@

date 2017-12-14T14:27:10Z
author stsp
files src/sys/net80211/ieee80211_output.c log diff annotate
message Stop printing debug info about stations leaving a wifi network when
we aren't running in hostap or ibss mode.

date 2017-12-14T17:25:39Z
author guenther
files src/sys/ufs/ffs/ffs_vfsops.c log diff annotate
message If switching RW->RO, then stop deferring timestamp writes...and possibly
other pending inode attribute changes. We appear to be missing UFS_UPDATE()
calls in some paths with the result that bsd.rd remounting the newly
created /mnt to RO would lose the GID changes on device inodes there.
This only affected devices, as they're the only inodes where timestamp
writes are delayed.

ok deraadt@

date 2017-12-14T18:52:17Z
author stsp
files src/sys/net80211/ieee80211_output.c log diff annotate
message My previous commit broke the ramdisk build; fix it

date 2017-12-14T20:12:32Z
author stsp
files src/sys/dev/pci/if_iwn.c log diff annotate
message Make roaming after a background scan work while tcpbench -u is running
over iwn(4), in the same way as this was done for iwm(4).

I forgot about making iwn(4) heed the IEEE80211_F_TX_MGMT_ONLY flag which
is used to disable queueing of new data frames during an AP switch.

Found due to a problem report by naddy@
ok phessler@ tb@

date 2017-12-14T20:20:38Z
author deraadt
files src/sys/kern/vfs_subr.c log diff annotate
src/sys/sys/vnode.h log diff annotate
src/sys/ufs/ffs/ffs_vfsops.c log diff annotate
message Give vflush_vnode() a hint about vnodes we don't need to account as "busy".
Change mountpoint to RDONLY a little later. Seems to improve the
rw->ro transition a bit.

date 2017-12-14T20:23:13Z
author deraadt
files src/sys/dev/softraid.c log diff annotate
message Don't bother using DETACH_FORCE for the softraid luns at reboot
time; the aggressive mountpoint destruction seems to hit insane
use-after-frees when we are already far on the way down.

date 2017-12-14T20:23:15Z
author deraadt
files src/sys/kern/vfs_subr.c log diff annotate
message Don't bother using DETACH_FORCE for the softraid luns at reboot
time; the aggressive mountpoint destruction seems to hit insane
use-after-frees when we are already far on the way down.

date 2017-12-14T23:21:04Z
author dlg
files src/sys/kern/kern_sched.c log diff annotate
src/sys/sys/sched.h log diff annotate
message make sched_barrier use cond_wait/cond_signal.

previously the code was using a percpu flag to manage the sleeps/wakeups,
which means multiple threads waiting for a barrier on a cpu could
race. moving to a cond struct on the stack fixes this.

while here, get rid of the sbar taskq and just use systqmp instead.
the barrier tasks are short, so there's no real downside.

ok mpi@