OpenBSD cvs log

created 2019-07-25T11:34:47Z
begin 2019-07-09T00:00:00Z
end 2019-07-10T00:00:00Z
path src/sys
commits 17

date 2019-07-09T05:43:03Z
author kevlo
files src/sys/dev/usb/files.usb log diff annotate
message ure(4) and url(4) need ifmedia attribute.

ok deraadt@

date 2019-07-09T09:33:55Z
author patrick
files src/sys/dev/usb/uvideo.h log diff annotate
message Fix whitespace issue.

ok jan@

date 2019-07-09T09:55:09Z
author jsg
files src/sys/dev/pci/drm/drm_linux.c log diff annotate
src/sys/dev/pci/drm/include/linux/dma-fence.h log diff annotate
message add dma_fence_wait_any_timeout() required for parts of amdgpu
ok kettenis@

date 2019-07-09T09:57:57Z
author jsg
files src/sys/dev/pci/drm/drm_linux.c log diff annotate
message Use wake_up_process() instead of wakeup() in dma_fence_default_wait_cb()
as there is code which uses schedule_timeout() for dma fences.

suggested by kettenis@

date 2019-07-09T09:59:18Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_cs.c log diff annotate
message unstub amdgpu_cs_wait_any_fence()

date 2019-07-09T10:00:30Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_sa.c log diff annotate
message unstub dma_fence_wait_any_timeout() call in amdgpu_sa_bo_new()

date 2019-07-09T11:30:19Z
author yasuoka
files src/sys/net/pf.c log diff annotate
src/sys/net/pf_if.c log diff annotate
src/sys/net/pfvar.h log diff annotate
message Fix previous commit which made src-node have a reference for the kif.
Src-node should use the reference counter since it might live longer
than its table entry, rule or the associated states.

OK sashan

date 2019-07-09T11:35:06Z
author semarie
files src/sys/kern/sys_pipe.c log diff annotate
src/sys/kern/syscalls.master log diff annotate
message unlock pipe(2) and pipe2(2) syscalls

initial work from mpi@

ok visa@ mpi@

date 2019-07-09T11:36:10Z
author semarie
files src/sys/kern/init_sysent.c log diff annotate
src/sys/kern/syscalls.c log diff annotate
message resync

date 2019-07-09T12:23:25Z
author bluhm
files src/sys/kern/kern_prot.c log diff annotate
message The system calls getgroups(2) and setgroups(2) pass the number of
groups as signed int. Do not use unsigned int within the kernel
for length calculations. Now getgroups(2) fails with EINVAL if
called with negative length value.
from Moritz Buhl; OK millert@

date 2019-07-09T15:02:15Z
author semarie
files src/sys/kern/sys_pipe.c log diff annotate
src/sys/kern/syscalls.master log diff annotate
message backout the unlock of pipe(2) and pipe2(2)

assert "cpipe->pipe_buffer.cnt == 0" occured whereas it shouldn't.

Reported-by: syzbot+b559fa9d3292c3cb0343@syzkaller.appspotmail.com

date 2019-07-09T15:02:55Z
author semarie
files src/sys/kern/init_sysent.c log diff annotate
src/sys/kern/syscalls.c log diff annotate
message resync

date 2019-07-09T15:15:49Z
author mpi
files src/sys/net/bridgectl.c log diff annotate
message Add missing mtx_leave() in error path.

Reported by kn@, ok visa@

date 2019-07-09T18:59:15Z
author kn
files src/sys/kern/tty.c log diff annotate
message Use timeout_add_msec(9)

As per termios(4), "VTIME is a timer of 0.1 second granularity", so
convert it to milliseconds by reducing by hz and multiplying with 1000.

Furthermore, the specification (and our implementation) define members
of the c_cc arry to be of type unsigned char, so both the previous as
well as the now used arithmetic operations are guaranteed to not
overflow.

Since the timeout_add(9) API takes an int argument, the previous long
type would always be demoted anyway, so change it to int directly.

With this and hz gone, remove the obselete comment.

While here, use more mnemonic variable names.

Feedback and OK mpi

date 2019-07-09T23:48:06Z
author deraadt
files src/sys/arch/alpha/alpha/trap.c log diff annotate
message I wrote the pc-page-writeable and sp-not-MAP_STACK code to be shared, and
then ran into the messaging being poor. Then I fixed the messages. But
there are two sub-cases of sp-not-MAP_STACK -- one at syscall time, and
another at regular userland trap (on some architectures), and I bungled
that messaging. Correct that now, while I look for yet another better way...
discovered by millert, who ran an pre-MAP_STACK binary.

date 2019-07-09T23:48:07Z
author deraadt
files src/sys/arch/amd64/amd64/trap.c log diff annotate
src/sys/arch/arm64/arm64/trap.c log diff annotate
src/sys/arch/hppa/hppa/trap.c log diff annotate
src/sys/arch/i386/i386/trap.c log diff annotate
message I wrote the pc-page-writeable and sp-not-MAP_STACK code to be shared, and
then ran into the messaging being poor. Then I fixed the messages. But
there are two sub-cases of sp-not-MAP_STACK -- one at syscall time, and
another at regular userland trap (on some architectures), and I bungled
that messaging. Correct that now, while I look for yet another better way...
discovered by millert, who ran an pre-MAP_STACK binary.

date 2019-07-09T23:48:08Z
author deraadt
files src/sys/arch/arm/arm/fault.c log diff annotate
src/sys/arch/m88k/m88k/trap.c log diff annotate
src/sys/arch/mips64/mips64/trap.c log diff annotate
src/sys/arch/powerpc/powerpc/trap.c log diff annotate
src/sys/arch/sh/sh/trap.c log diff annotate
src/sys/arch/sparc64/sparc64/trap.c log diff annotate
message I wrote the pc-page-writeable and sp-not-MAP_STACK code to be shared, and
then ran into the messaging being poor. Then I fixed the messages. But
there are two sub-cases of sp-not-MAP_STACK -- one at syscall time, and
another at regular userland trap (on some architectures), and I bungled
that messaging. Correct that now, while I look for yet another better way...
discovered by millert, who ran an pre-MAP_STACK binary.