OpenBSD cvs log

created 2019-01-30T14:02:18Z
begin 2019-01-20T00:00:00Z
end 2019-01-21T00:00:00Z
path src/sys
commits 16

date 2019-01-20T00:19:50Z
author jsg
files src/sys/dev/acpi/acpi.c log diff annotate
message fix SMALL_KERNEL build after changes in rev 1.361
reported by naddy@ ok deraadt@

date 2019-01-20T00:53:08Z
author mlarkin
files src/sys/arch/amd64/amd64/locore.S log diff annotate
src/sys/arch/amd64/amd64/vector.S log diff annotate
src/sys/arch/amd64/include/cpufunc.h log diff annotate
message Implement rdmsr_safe

rdmsr_safe is used when reading potentially missing MSRs, to avoid
triggering #GPs in the kernel.

ok guenther

date 2019-01-20T01:07:16Z
author mlarkin
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message Use rdmsr_safe in svm_handle_msr

Avoid reading possibly missing MSRs

ok guenther@

date 2019-01-20T01:13:03Z
author cheloha
files src/sys/kern/kern_tc.c log diff annotate
message Serialize tc_windup() calls and modification of some timehands members.

If a user thread from e.g. clock_settime(2) is in the midst of changing
the boottime or calling tc_windup() when it is interrupted by hardclock(9),
the timehands could be left in a damaged state.

So protect tc_windup() calls with a mutex, timecounter_mtx. hardclock(9)
merely attempts to enter the mutex instead of spinning because it cannot
afford to wait around. In practice hardclock(9) will skip tc_windup() very
rarely, and when it does skip there aren't any negative effects because the
skip indicates that a user thread is already calling, or about to call,
tc_windup() anyway.

Based on FreeBSD r303387 and NetBSD sys/kern/kern_tc.c,v1.30

Discussed with mpi@ and visa@. Tons of nice technical detail about
lockless reads from visa@.

OK visa@

date 2019-01-20T01:32:08Z
author jmatthew
files src/sys/dev/pci/if_ixl.c log diff annotate
message Handle link state change interrupts by issuing IXL_AQ_OP_PHY_LINK_STATUS
to the admin queue. We don't need to wait for or process the reply,
because the existing admin reply queue processing already does it.

ok dlg@

date 2019-01-20T02:45:44Z
author tedu
files src/sys/dev/acpi/acpibtn.c log diff annotate
message make this look more like other pwr_action code (small_kernel)

date 2019-01-20T03:28:19Z
author krw
files src/sys/scsi/cd.c log diff annotate
src/sys/scsi/sd.c log diff annotate
src/sys/scsi/st.c log diff annotate
message When retiring a SCSI request, sometimes the buf's b_error value is
forcibly set to a value. Make sure that in all those cases the B_ERROR
flag is cleared (if b_error is being set to 0) or set (if b_error is
being set to non-zero) appropriately.

ok dlg@ jmatthew@

date 2019-01-20T04:58:45Z
author jmatthew
files src/sys/dev/pci/if_ixl.c log diff annotate
message implement ixl_rxrinfo, dynamically allocating the buffer to prepare for
multiple receive rings at some point in the future.

ok dlg@

date 2019-01-20T09:47:31Z
author anton
files src/sys/dev/kcov.c log diff annotate
message Rework conditional for clarity, no functional change.

ok bluhm@ visa@ (as part of a larger diff)

date 2019-01-20T09:57:23Z
author anton
files src/sys/arch/amd64/conf/Makefile.amd64 log diff annotate
src/sys/arch/i386/conf/Makefile.i386 log diff annotate
src/sys/dev/kcov.c log diff annotate
src/sys/sys/kcov.h log diff annotate
message Add support for a new kcov trace mode called KCOV_MODE_TRACE_CMP where
comparison instructions and switch statements are being traced. This mode will
be used during fuzzing to generate even more coverage. The same mode is also
supported by FreeBSD and Linux.

Thanks to jmc@ for improving the manual bits.

ok bluhm@ visa@

date 2019-01-20T16:09:41Z
author anton
files src/sys/isofs/cd9660/cd9660_node.h log diff annotate
message remove unused i_lockf member from struct iso_node; ok tedu@ visa@

date 2019-01-20T20:28:37Z
author krw
files src/sys/scsi/cd.c log diff annotate
src/sys/scsi/ch.c log diff annotate
src/sys/scsi/sd.c log diff annotate
message No leading space(s) before labels.

Prodded by guenther@

date 2019-01-20T22:52:23Z
author phessler
files src/sys/net/bfd.c log diff annotate
message use the faster interface, since the precision is not necessary

date 2019-01-20T23:07:51Z
author guenther
files src/sys/arch/amd64/amd64/cpu.c log diff annotate
message Adjust punctuation in comment to align columns consistently

date 2019-01-20T23:43:13Z
author claudio
files src/sys/netinet/if_ether.c log diff annotate
message Refresh arp entries that are about to expire. Once their life time is less
then 1/8 of net.inet.ip.arptimeout the system will send out a arp request
about every 30 seconds until either the entry is updated or expired.
Not refreshing arp entries will result in packet drop every time a entry
expires which is not ideal for important gateway entries.
Came up with this after a discussion with deraadt@. OK benno@ deraadt@

date 2019-01-20T23:44:58Z
author jmatthew
files src/sys/dev/pci/if_ixl.c log diff annotate
message Replace the default mac filter with one that ignores vlans, and enable
promisc vlan mode so we can see vlan tagged traffic.

ok dlg@