OpenBSD cvs log

created 2019-02-07T02:51:18Z
begin 2018-12-13T00:00:00Z
end 2018-12-20T00:00:00Z
path src/sys
commits 25

date 2018-12-13T16:35:07Z
author visa
files src/sys/arch/mips64/mips64/tlbhandler.S log diff annotate
src/sys/arch/sgi/sgi/ip32_machdep.c log diff annotate
message Use a faster, more reliable way to figure out how many TLB entries are
available on RM7000 processors.

From miod@

date 2018-12-16T03:36:02Z
author dlg
files src/sys/kern/kern_task.c log diff annotate
src/sys/net/ifq.c log diff annotate
src/sys/sys/task.h log diff annotate
message add task_pending

jsg@ wants this for drm, and i've had a version of it in diffs sine
2016, but obviously havent needed to use it just yet.

task_pending is modelled on timeout_pending, and tells you if the
task is on a list waiting to execute.

ok jsg@

date 2018-12-16T08:31:50Z
author otto
files src/sys/lib/libsa/alloc.c log diff annotate
message Make the freelist best fit code a tiny bit smarter to not use a block if
half or more would be wasted. Causes more effective re-use of blocks.
ok jsing@

date 2018-12-16T08:33:16Z
author otto
files src/sys/arch/amd64/stand/libsa/biosdev.c log diff annotate
src/sys/arch/i386/stand/libsa/biosdev.c log diff annotate
message Avoid using a too big bounce buffer by splitting up large reads. Allows
for booting using large (64k) blocksize filesystems. ok tedu@

date 2018-12-16T14:43:38Z
author visa
files src/sys/arch/octeon/dev/octcrypto.c log diff annotate
message Fix pool ipl to prevent a deadlock scenario.

While here, make the pool use the default memory alignment. The default
setting is good enough for the driver and the hardware.

date 2018-12-16T15:11:30Z
author deraadt
files src/sys/dev/pci/pcidevs log diff annotate
message few more devs

date 2018-12-16T15:11:33Z
author deraadt
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message sync

date 2018-12-17T09:11:10Z
author claudio
files src/sys/net/pf.c log diff annotate
message Use timeout_add_sec() instead of timeout_add() with a multiplication with hz
OK kn@, florian@, visa@, cheloha@

date 2018-12-17T09:11:11Z
author claudio
files src/sys/net/pf_ioctl.c log diff annotate
message Use timeout_add_sec() instead of timeout_add() with a multiplication with hz
OK kn@, florian@, visa@, cheloha@

date 2018-12-17T09:17:30Z
author claudio
files src/sys/netinet/ip_carp.c log diff annotate
message Switch from timeout_add with tvtohz to just timeout_add_tv. Now this change
will reduce the sleep time by one tick which doesn't matter in the common
case. The code never passes a true 0 timeval to timeout_add_tv so the code
will always sleep for at least 1 tick which is good enough.
OK kn@, florian@, visa@, cheloha@

date 2018-12-17T14:51:57Z
author visa
files src/sys/kern/kern_sig.c log diff annotate
src/sys/sys/signalvar.h log diff annotate
message Remove unused function gsignal().

OK deraadt@ anton@

date 2018-12-17T15:37:41Z
author kn
files src/sys/net/pf_ioctl.c log diff annotate
src/sys/net/pf_ruleset.c log diff annotate
src/sys/net/pfvar.h log diff annotate
message Rename pf_anchor_remove() to pf_remove_anchor()

For semantic consistency with pf_{create,find,remove}_{anchor,ruleset}().

Simplify logic by squashing the if/else block while here.
No functional change.

Feedback jca and mikeb, OK mikeb

date 2018-12-17T16:46:59Z
author bluhm
files src/sys/kern/uipc_socket.c log diff annotate
message When using MSG_WAITALL, soreceive() can sleep while processing the
receive buffer of a stream socket. Then a new pair of control and
data mbuf can be appended to the mbuf queue. In this case, terminate
the loop with a short read to prevent a panic. Userland should
read the control message with the next system call.
OK claudio@ deraadt@

date 2018-12-17T19:14:59Z
author anton
files src/sys/dev/wscons/wsmux.c log diff annotate
message When no child devices are attached to a wsmux device, make sure to return an
error for inappropriate ioctl commands. Prevents a panic caused by using a wsmux
device as the controlling terminal.

ok deraadt@ visa@

Reported-by: syzbot+44bab40fc5a11357d774@syzkaller.appspotmail.com

date 2018-12-17T23:08:36Z
author dlg
files src/sys/net/if_etherip.c log diff annotate
src/sys/net/if_gre.c log diff annotate
message If something like ether_ioctl returns ENETRESET, don't let it bubble out.

ENETRESET in hardware drivers means you should reprogram the hardware.
There's no hardware to reprogram, so just turn it into 0 on the way
out.

date 2018-12-17T23:42:47Z
author dlg
files src/sys/net/if_etherip.c log diff annotate
src/sys/net/if_gre.c log diff annotate
message Handle SIOCADDMULTI and SIOCDELMULTI as nops in ioctl code.

There's nothing underneath the tunnels that needs configuration,
so there's no point in keepign track of configured multicast
addresses. We will at least save a bit of memory.

date 2018-12-18T01:26:07Z
author kevlo
files src/sys/dev/pci/pcidevs log diff annotate
message Add some devices found on Intel Leaf Hill CRB.

ok deraadt@

date 2018-12-18T01:27:13Z
author kevlo
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message sync

date 2018-12-18T04:25:16Z
author tedu
files src/sys/dev/pci/pcidevs log diff annotate
message add a wifi 9560 found in a new laptop. ok deraadt

date 2018-12-18T04:25:28Z
author tedu
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message sync

date 2018-12-18T13:18:31Z
author visa
files src/sys/net/pfkeyv2.c log diff annotate
message Fix the IPL of pfkeyv2_mtx to prevent a deadlock. The system can use
the mutex with and without the kernel lock.

Prompted by WITNESS.

OK deraadt@ kettenis@

date 2018-12-18T13:44:11Z
author visa
files src/sys/arch/octeon/octeon/autoconf.c log diff annotate
message Accept DUID as a root disk specifier.

Example boot command:

bootoctlinux rootdev=e7f5137a2eb9a085 numcores=4

date 2018-12-18T14:24:02Z
author visa
files src/sys/arch/octeon/include/octeonreg.h log diff annotate
src/sys/arch/octeon/octeon/machdep.c log diff annotate
message Figure out the number of available CPUs using system fuse registers.
This makes `ncpusfound' independent of kernel boot parameters.

The kernel still needs the help of the firmware to spin up secondary
CPUs, so the `coremask' or `numcores' boot parameter is still needed
for multicore operation.

Tested on CN5020, CN6120, CN7130 and CN7360.

date 2018-12-18T21:11:09Z
author guenther
files src/sys/arch/amd64/amd64/locore0.S log diff annotate
message Detection of MELTDOWN-proof Intel CPUs was broken: cpuid.07 has
subleafs, so to get SEFF0EDX_ARCH_CAP we have to clear %ecx too.
While here, delete a redundant cpuid.01 invocation.

problem noted and testing by tedu@
ok mlarkin@ deraadt@

date 2018-12-19T05:31:28Z
author dlg
files src/sys/net/if_var.h log diff annotate
message get rid of a prototype for if_enqueue_try()

it isn't implemented, and is never called.