kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons:. Mon Mar 30 16:37:14 PDT 2020 OpenBSD/amd64 (ci-openbsd-setuid-8.c.syzkaller.internal) (tty00) Warning: Permanently added '10.128.0.218' (ECDSA) to the list of known hosts. 2020/03/30 16:37:25 fuzzer started 2020/03/30 16:37:29 dialing manager at 10.128.15.235:14194 2020/03/30 16:37:29 syscalls: 338 2020/03/30 16:37:29 code coverage: enabled 2020/03/30 16:37:29 comparison tracing: enabled 2020/03/30 16:37:29 extra coverage: support is not implemented in syzkaller 2020/03/30 16:37:29 setuid sandbox: enabled 2020/03/30 16:37:29 namespace sandbox: support is not implemented in syzkaller 2020/03/30 16:37:29 Android sandbox: support is not implemented in syzkaller 2020/03/30 16:37:29 fault injection: support is not implemented in syzkaller 2020/03/30 16:37:29 leak checking: support is not implemented in syzkaller 2020/03/30 16:37:29 net packet injection: enabled 2020/03/30 16:37:29 net device setup: support is not implemented in syzkaller 2020/03/30 16:37:29 concurrency sanitizer: support is not implemented in syzkaller 2020/03/30 16:37:29 devlink PCI setup: support is not implemented in syzkaller 16:37:31 executing program 0: r0 = getgid() ioctl$WSMUXIO_REMOVE_DEVICE(0xffffffffffffffff, 0x80085762, &(0x7f0000000000)={0x1, 0x1}) semctl$GETALL(0xffffffffffffffff, 0x0, 0x6, &(0x7f0000000040)=""/177) r1 = openat$vmm(0xffffffffffffff9c, &(0x7f0000000100)='/dev/vmm\x00', 0x10, 0x0) fsync(r1) r2 = semget$private(0x0, 0x3, 0x10) r3 = geteuid() r4 = getgid() getsockopt$sock_cred(0xffffffffffffff9c, 0xffff, 0x1022, &(0x7f0000000140)={0x0, 0x0, 0x0}, &(0x7f0000000180)=0xc) semctl$IPC_SET(r2, 0x0, 0x1, &(0x7f00000001c0)={{0x8, r3, r4, r6, r0, 0x7a, 0x6}, 0x5, 0x1, 0x5}) r8 = shmget$private(0x0, 0x4000, 0x3, &(0x7f0000ff9000/0x4000)=nil) r9 = getegid() r10 = getpgrp() shmctl$IPC_SET(r8, 0x1, &(0x7f0000000240)={{0x3, r6, r9, r6, r7, 0x148, 0x200}, 0x6, 0x20, r5, r10, 0x7, 0x3, 0x8}) getsockopt$SO_PEERCRED(0xffffffffffffff9c, 0xffff, 0x1022, &(0x7f00000002c0)={0x0, 0x0, 0x0}, 0xc) r12 = getpgrp() r13 = getppid() shmctl$IPC_SET(r8, 0x1, &(0x7f0000000300)={{0x7, r6, r7, r6, r11, 0x12, 0x4d9}, 0x7fff, 0x9, r12, r13, 0x5fe, 0x3, 0x8000}) r14 = openat$bpf(0xffffffffffffff9c, &(0x7f0000000380)='/dev/bpf\x00', 0x20, 0x0) ioctl$BIOCFLUSH(r14, 0x20004268) 16:37:32 executing program 1: openat$wskbd(0xffffffffffffff9c, &(0x7f0000000000)='/dev/wskbd0\x00', 0x10000, 0x0) r0 = openat$diskmap(0xffffffffffffff9c, &(0x7f0000000040)='/dev/diskmap\x00', 0x400, 0x0) flock(r0, 0x5) ioctl$TIOCCLRVERAUTH(0xffffffffffffffff, 0x2000741d) r1 = openat$null(0xffffffffffffff9c, &(0x7f0000000080)='/dev/null\x00', 0x2, 0x0) ioctl$WSDISPLAYIO_GETSCREEN(r1, 0xc0245755, &(0x7f00000000c0)={0x28f4, './file0\x00', './file0\x00'}) r2 = openat$bpf(0xffffffffffffff9c, &(0x7f0000000100)='/dev/bpf\x00', 0x20000, 0x0) close(r2) open(&(0x7f0000000140)='./file0\x00', 0x40, 0x20) ioctl$WSMOUSEIO_SRES(r1, 0x80045721, &(0x7f0000000180)=0x1) pipe(&(0x7f00000001c0)={0xffffffffffffffff, 0xffffffffffffffff}) getsockopt$sock_cred(r4, 0xffff, 0x1022, &(0x7f0000000200), &(0x7f0000000240)=0xc) ioctl$TIOCGWINSZ(0xffffffffffffffff, 0x40087468, &(0x7f0000000280)) r5 = dup2(0xffffffffffffffff, 0xffffffffffffffff) ioctl$TIOCGFLAGS(r5, 0x4004745d, &(0x7f00000002c0)) r6 = getgid() fchownat(r3, &(0x7f0000000300)='./file0/file0\x00', 0x0, r6, 0x4) socketpair$unix(0x1, 0x5, 0x0, &(0x7f0000000340)={0xffffffffffffffff, 0xffffffffffffffff}) setsockopt(r7, 0x2, 0x401, &(0x7f0000000380)="d1b3d9cf9bc5753fca8c8af58d955bc238512fbcc1e863aedadf8c68d79a90476a1438477438696695646ab28befe7865e7a1f14f25899e2f109419a9cf1e0d5", 0x40) readv(0xffffffffffffffff, &(0x7f0000001800)=[{&(0x7f00000003c0)=""/162, 0xa2}, {&(0x7f0000000480)=""/189, 0xbd}, {&(0x7f0000000540)=""/219, 0xdb}, {&(0x7f0000000640)=""/4096, 0x1000}, {&(0x7f0000001640)=""/175, 0xaf}, {&(0x7f0000001700)=""/213, 0xd5}], 0x6) 16:37:32 executing program 0: socketpair$unix(0x1, 0x2, 0x0, &(0x7f0000000140)={0xffffffffffffffff, 0xffffffffffffffff}) r2 = syz_open_pts() close(r2) r3 = syz_open_pts() dup2(r2, r3) ioctl$TIOCSETA(r2, 0x80047466, &(0x7f00000004c0)={0x5, 0x0, 0x0, 0x0, "61aa0db11ce9bae3c6514e6ae973739ea78b7ec0"}) r4 = kqueue() kevent(r4, &(0x7f0000000140)=[{{r2}, 0xffffffffffffffff, 0x1d}], 0x9, 0x0, 0xffff, 0x0) sendmsg$unix(r1, &(0x7f0000000400)={&(0x7f0000000000)=@abs, 0x8, 0x0, 0x0, &(0x7f00000003c0)=ANY=[@ANYBLOB="28000000ffff00000100000000000000", @ANYRES32=r1, @ANYRES32=r1, @ANYRES32=r1, @ANYRES32=r0, @ANYRES32=0x0, @ANYRES32=r2], 0x28}, 0x0) 16:37:32 executing program 1: r0 = socket(0x2, 0x2, 0x0) connect$unix(0xffffffffffffffff, &(0x7f0000000000)=ANY=[@ANYBLOB="62020207e0000001"], 0x1) r1 = semget(0x2, 0x0, 0x11) semop(r1, &(0x7f00000000c0)=[{0x2, 0x3f, 0x1000}, {0x0, 0x9, 0x800}, {0x1e1f674b0c0f313f, 0x6, 0x1000}, {0x3, 0x0, 0x1800}, {0x4, 0x2, 0x1000}, {0x1, 0x8001, 0x800}, {0x1, 0x4000, 0x1000}, {0x3, 0x3, 0x800}, {0x4, 0x9, 0x1000}, {0x4, 0x8, 0x1000}], 0xa) connect$unix(0xffffffffffffffff, &(0x7f0000000000)=ANY=[@ANYBLOB="8b0229"], 0x1) r2 = socket(0x2, 0x400000000002, 0x0) setsockopt(r2, 0x0, 0x7, &(0x7f0000000040)="b1f5d915", 0x4) r3 = dup2(r2, r0) setsockopt$sock_int(r3, 0xffff, 0x800, &(0x7f0000000080)=0x4, 0x4) mprotect(&(0x7f0000000000/0x800000)=nil, 0x800000, 0x5) bind(r0, &(0x7f0000000000)=@un=@abs={0x0, 0xd}, 0x10) r4 = socket(0x2, 0x8002, 0x0) r5 = socket(0x2, 0x2, 0x0) r6 = fcntl$dupfd(r5, 0x0, r5) ioctl$TIOCFLUSH(r6, 0x80606942, &(0x7f0000000300)) ioctl$VT_SETMODE(r6, 0x80087602, &(0x7f0000000100)={0x1, 0x1, 0x4, 0x16, 0xcaf7}) connect$unix(r4, &(0x7f0000000000)=ANY=[@ANYBLOB="08000000bb0000002000"], 0x10) write(r4, 0x0, 0x0) login: panic: kernel diagnostic assertion "p == curproc" failed: file "/syzkaller/managers/setuid/kernel/sys/kern/vfs_vops.c", line 169 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 100395 92262 0 0x14000 0x200 0 reaper *491197 3653 0 0x14000 0x200 1K systq db_enter() at db_enter+0x18 panic(ffffffff821efc13) at panic+0x15c __assert(ffffffff82249f12,ffffffff822695b4,a9,ffffffff8222b23a) at __assert+0x2b VOP_CLOSE(fffffd806ef428f8,3,fffffd807f7bfba0,0) at VOP_CLOSE+0x12f vn_closefile(fffffd8065721c98,0) at vn_closefile+0xd7 fdrop(fffffd8065721c98,0) at fdrop+0xc2 closef(fffffd8065721c98,0) at closef+0x11c unp_gc(0) at unp_gc+0x172 taskq_thread(ffffffff8251f4f0) at taskq_thread+0x9c end trace frame: 0x0, count: 6 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic kernel diagnostic assertion "p == curproc" failed: file "/syzkaller/managers/setuid/kernel/sys/kern/vfs_vops.c", line 169 ddb{1}> trace db_enter() at db_enter+0x18 panic(ffffffff821efc13) at panic+0x15c __assert(ffffffff82249f12,ffffffff822695b4,a9,ffffffff8222b23a) at __assert+0x2b VOP_CLOSE(fffffd806ef428f8,3,fffffd807f7bfba0,0) at VOP_CLOSE+0x12f vn_closefile(fffffd8065721c98,0) at vn_closefile+0xd7 fdrop(fffffd8065721c98,0) at fdrop+0xc2 closef(fffffd8065721c98,0) at closef+0x11c unp_gc(0) at unp_gc+0x172 taskq_thread(ffffffff8251f4f0) at taskq_thread+0x9c end trace frame: 0x0, count: -9 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020a2d4c0 rbx 0xffff800020a2d570 rdx 0xffff800020a19110 rcx 0 rax 0 r8 0xffffffff810939af kprintf+0x16f r9 0x1 r10 0x25 r11 0x3848d31f680887f6 r12 0x3000000008 r13 0xffff800020a2d4d0 r14 0x100 r15 0x1 rip 0xffffffff81146c58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020a2d4b0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (systq) pid=491197 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a195f0,0xffff800020a18eb0 process=0xffff800020a1ab88 user=0xffff800020a28000, vmspace=0xffffffff8266bc88 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 95119 268205 68066 32767 3 0x90 nanosleep syz-executor.1 68066 246745 67178 0 3 0x82 wait syz-executor.1 47355 304435 25349 32767 3 0x90 nanosleep syz-executor.0 25349 228968 67178 0 3 0x82 wait syz-executor.0 67178 92113 21680 0 3 0x82 thrsleep syz-fuzzer 67178 17414 21680 0 3 0x4000082 thrsleep syz-fuzzer 67178 137027 21680 0 3 0x4000082 thrsleep syz-fuzzer 67178 432849 21680 0 3 0x4000082 thrsleep syz-fuzzer 67178 396579 21680 0 3 0x4000082 thrsleep syz-fuzzer 67178 317406 21680 0 3 0x4000082 thrsleep syz-fuzzer 67178 363662 21680 0 3 0x4000082 thrsleep syz-fuzzer 67178 26430 21680 0 3 0x4000082 thrsleep syz-fuzzer 67178 200859 21680 0 3 0x4000082 kqread syz-fuzzer 67178 364269 21680 0 3 0x4000082 thrsleep syz-fuzzer 21680 465352 73685 0 3 0x10008a pause ksh 73685 377644 16559 0 3 0x92 select sshd 38141 261182 1 0 3 0x100083 ttyin getty 16559 126302 1 0 3 0x80 select sshd 41302 449346 82594 73 3 0x100090 kqread syslogd 82594 456952 1 0 3 0x100082 netio syslogd 66279 234301 1 77 3 0x100090 poll dhclient 77264 518311 1 0 3 0x80 poll dhclient 2666 292654 0 0 3 0x14200 bored smr 38984 71445 0 0 3 0x14200 pgzero zerothread 19560 426583 0 0 3 0x14200 aiodoned aiodoned 69936 142585 0 0 3 0x14200 syncer update 79255 415968 0 0 3 0x14200 cleaner cleaner 92262 100395 0 0 7 0x14200 reaper 11291 354093 0 0 3 0x14200 pgdaemon pagedaemon 13502 494860 0 0 3 0x14200 bored crynlk 21704 1512 0 0 3 0x14200 bored crypto 12816 28232 0 0 3 0x40014200 acpi0 acpi0 82095 268625 0 0 3 0x40014200 idle1 64266 471719 0 0 3 0x14200 bored softnet 4011 288236 0 0 3 0x14200 bored systqmp * 3653 491197 0 0 7 0x14200 systq 94609 336630 0 0 3 0x40014200 bored softclock 48299 36540 0 0 3 0x40014200 idle0 1 77565 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 3653 (systq) thread 0xffff800020a19110 (491197) exclusive rrwlock inode r = 0 (0xfffffd806ef433d8) #0 witness_lock+0x4c5 #1 rw_enter+0x453 #2 rrw_enter+0x88 #3 VOP_LOCK+0x4b #4 vn_lock+0x81 #5 vn_closefile+0xc6 #6 fdrop+0xc2 #7 closef+0x11c #8 unp_gc+0x172 #9 taskq_thread+0x9c #10 proc_trampoline+0x1c shared rwlock systq r = 0 (0xffffffff8251f550) #0 witness_lock+0x4c5 #1 taskq_thread+0x8f #2 proc_trampoline+0x1c exclusive kernel_lock &kernel_lock r = 1 (0xffffffff8263a520) #0 witness_lock+0x4c5 #1 __mp_acquire_count+0x51 #2 mi_switch+0x392 #3 sleep_finish+0x113 #4 sleep_finish_all+0x32 #5 msleep+0x20e #6 taskq_next_work+0xbe #7 taskq_thread+0xe5 #8 proc_trampoline+0x1c ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9466 6331K 6331K 78643K 10557 0 pcb 13 8K 8K 78643K 13 0 rtable 105 3K 3K 78643K 189 0 ifaddr 39 10K 10K 78643K 39 0 counters 43 33K 33K 78643K 43 0 ioctlops 0 0K 2K 78643K 15 0 mount 1 1K 1K 78643K 1 0 vnodes 1216 76K 76K 78643K 1221 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 4 0K 0K 78643K 4 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 6 17K 33K 78643K 40 0 proc 48 50K 83K 78643K 359 0 subproc 34 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 33 2K 2K 78643K 33 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 37 175K 175K 78643K 37 0 exec 0 0K 1K 78643K 181 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 91 21K 21K 78643K 898 0 UVM aobj 4 2K 2K 78643K 4 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 9 0K 0K 78643K 9 0 temp 62 3035K 3099K 78643K 1813 0 kqueue 3 4K 4K 78643K 3 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 6 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 19 0 17 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 unpcb 120 31 0 23 1 0 1 1 0 8 0 syncache 264 4 0 4 1 0 1 1 0 8 1 tcpqe 32 56 0 56 1 0 1 1 0 8 1 tcpcb 544 10 0 6 1 0 1 1 0 8 0 inpcb 280 40 0 33 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 188 0 0 12 0 12 12 0 8 0 art_table 32 189 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 semapl 112 2 0 0 1 0 1 1 0 8 0 shmpl 112 2 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1420 0 21 46 0 46 46 0 8 0 ffsino 272 1420 0 21 94 0 94 94 0 8 0 nchpl 144 1651 0 42 60 0 60 60 0 8 0 uvmvnodes 72 1463 0 0 27 0 27 27 0 8 0 vnodes 208 1463 0 0 77 0 77 77 0 8 0 namei 1024 3943 0 3943 1 0 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 192 4729 0 4729 2 1 1 2 0 8 1 plimitpl 152 16 0 7 1 0 1 1 0 8 0 sigapl 424 227 0 197 4 0 4 4 0 8 0 futexpl 56 101 0 101 1 0 1 1 0 8 1 knotepl 112 53 0 34 1 0 1 1 0 8 0 kqueuepl 144 4 0 2 1 0 1 1 0 8 0 pipelkpl 48 67 0 57 1 0 1 1 0 8 0 pipepl 120 134 0 115 1 0 1 1 0 8 0 fdescpl 496 212 0 197 3 0 3 3 0 8 1 filepl 152 1032 0 934 5 0 5 5 0 8 0 lockfpl 104 5 0 4 1 0 1 1 0 8 0 lockfspl 48 3 0 2 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 17 0 7 1 0 1 1 0 8 0 ucredpl 96 58 0 49 1 0 1 1 0 8 0 zombiepl 144 197 0 195 1 0 1 1 0 8 0 processpl 984 227 0 195 5 0 5 5 0 8 0 procpl 624 244 0 201 4 0 4 4 0 8 0 sockpl 400 90 0 73 3 0 3 3 0 8 1 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 165 0 0 20 0 20 20 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 177 0 0 11 0 11 11 0 8 0 bufpl 280 3978 0 165 273 0 273 273 0 8 0 anonpl 16 27964 0 20967 30 1 29 29 0 124 0 amapchunkpl 152 999 0 889 7 0 7 7 0 158 2 amappl16 192 471 0 130 18 0 18 18 0 8 0 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 8 0 5 2 1 1 1 0 8 0 amappl13 168 23 0 22 1 0 1 1 0 8 0 amappl12 160 10 0 8 1 0 1 1 0 8 0 amappl11 152 67 0 55 1 0 1 1 0 8 0 amappl10 144 21 0 13 1 0 1 1 0 8 0 amappl9 136 389 0 385 1 0 1 1 0 8 0 amappl8 128 260 0 247 1 0 1 1 0 8 0 amappl7 120 110 0 97 1 0 1 1 0 8 0 amappl6 112 17 0 14 1 0 1 1 0 8 0 amappl5 104 126 0 116 1 0 1 1 0 8 0 amappl4 96 441 0 411 1 0 1 1 0 8 0 amappl3 88 108 0 99 1 0 1 1 0 8 0 amappl2 80 872 0 809 3 0 3 3 0 8 1 amappl1 72 13374 0 12943 24 6 18 20 0 8 8 amappl 80 459 0 419 1 0 1 1 0 84 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 64 3 0 0 1 0 1 1 0 8 0 uaddrrnd 24 212 0 196 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 212 0 196 1 0 1 1 0 8 0 vmmpekpl 168 5545 0 5519 2 0 2 2 0 8 0 vmmpepl 168 31652 0 30145 80 4 76 76 0 357 9 vmsppl 368 211 0 195 2 0 2 2 0 8 0 pdppl 4096 432 0 390 6 0 6 6 0 8 0 pvpl 32 113075 0 103000 115 0 115 115 0 265 32 pmappl 232 211 0 195 2 0 2 2 0 8 1 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 161 0 2 5 0 5 5 0 8 0