kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons:. Fri Oct 1 08:41:19 PDT 2021 OpenBSD/amd64 (ci-openbsd-multicore-3.c.syzkaller.internal) (tty00) Warning: Permanently added '10.128.0.28' (ED25519) to the list of known hosts. 2021/10/01 08:41:40 parsed 1 programs 2021/10/01 08:41:43 executed programs: 0 login: panic: rw_enter: dklk locking against myself Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 400662 75968 0 0 0 1 syz-executor.0 *238053 75968 0 0 0x4000000 0K syz-executor.0 db_enter() at db_enter+0x18 panic(ffffffff8249f722) at panic+0x177 rw_enter(ffff8000006ac058,11) at rw_enter+0x482 vndopen(2902,3,2000,ffff800021256540) at vndopen+0x8d spec_open(ffff80002127c358) at spec_open+0x3c8 VOP_OPEN(fffffd806ebe3e68,3,fffffd807f7d7780,ffff800021256540) at VOP_OPEN+0x7c vn_open(ffff80002127c5f0,3,0) at vn_open+0x467 vndioctl(2902,c0384600,ffff80002127c910,1,ffff800021256540) at vndioctl+0xa10 VOP_IOCTL(fffffd806ebe3e68,c0384600,ffff80002127c910,1,fffffd807f7d7780,ffff800021256540) at VOP_IOCTL+0x9a vn_ioctl(fffffd806e586ac0,c0384600,ffff80002127c910,ffff800021256540) at vn_ioctl+0xba sys_ioctl(ffff800021256540,ffff80002127ca28,ffff80002127ca70) at sys_ioctl+0x4a2 syscall(ffff80002127caf0) at syscall+0x5a9 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9442f25cbb0, count: 2 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: rw_enter: dklk locking against myself ddb{0}> trace db_enter() at db_enter+0x18 panic(ffffffff8249f722) at panic+0x177 rw_enter(ffff8000006ac058,11) at rw_enter+0x482 vndopen(2902,3,2000,ffff800021256540) at vndopen+0x8d spec_open(ffff80002127c358) at spec_open+0x3c8 VOP_OPEN(fffffd806ebe3e68,3,fffffd807f7d7780,ffff800021256540) at VOP_OPEN+0x7c vn_open(ffff80002127c5f0,3,0) at vn_open+0x467 vndioctl(2902,c0384600,ffff80002127c910,1,ffff800021256540) at vndioctl+0xa10 VOP_IOCTL(fffffd806ebe3e68,c0384600,ffff80002127c910,1,fffffd807f7d7780,ffff800021256540) at VOP_IOCTL+0x9a vn_ioctl(fffffd806e586ac0,c0384600,ffff80002127c910,ffff800021256540) at vn_ioctl+0xba sys_ioctl(ffff800021256540,ffff80002127ca28,ffff80002127ca70) at sys_ioctl+0x4a2 syscall(ffff80002127caf0) at syscall+0x5a9 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9442f25cbb0, count: -13 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002127c0f0 rbx 0xffffffff8279cbff cpu_info_full_primary+0x2bff rdx 0x8b rcx 0x2 rax 0x2d r8 0xffffffff8124a924 kprintf+0x144 r9 0x1 r10 0x465fd61c9b0f56aa r11 0x1b7bcaf6a60392b9 r12 0xffffffff8279ca00 cpu_info_full_primary+0x2a00 r13 0 r14 0 r15 0x1 rip 0xffffffff81d111e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002127c0e0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=238053 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff8000212567e0,0xffffffff829cc190 process=0xffff8000ffff2e20 user=0xffff800021277000, vmspace=0xfffffd80085962e0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 75968 400662 69343 0 7 0 syz-executor.0 *75968 238053 69343 0 7 0x4000000 syz-executor.0 69343 495154 5740 0 3 0x82 nanoslp syz-executor.0 5740 271007 37799 0 3 0x82 thrsleep syz-execprog 5740 506896 37799 0 3 0x4000082 nanoslp syz-execprog 5740 33528 37799 0 3 0x4000082 thrsleep syz-execprog 5740 37201 37799 0 3 0x4000082 thrsleep syz-execprog 5740 45097 37799 0 3 0x4000082 thrsleep syz-execprog 5740 158393 37799 0 3 0x4000082 kqread syz-execprog 5740 512112 37799 0 3 0x4000082 thrsleep syz-execprog 37799 83889 63113 0 3 0x10008a sigsusp ksh 63113 299429 37066 0 3 0x9a select sshd 5992 297291 1 0 3 0x100083 ttyin getty 37066 331046 1 0 3 0x88 select sshd 31367 142449 28751 74 3 0x100092 bpf pflogd 28751 205308 1 0 3 0x80 netio pflogd 12780 14178 27879 73 3 0x100090 kqread syslogd 27879 418055 1 0 3 0x100082 netio syslogd 72014 398841 1 0 3 0x100080 kqread resolvd 54237 484703 22120 77 3 0x100092 kqread dhcpleased 1088 169400 22120 77 3 0x100092 kqread dhcpleased 22120 173332 1 0 3 0x80 kqread dhcpleased 78802 73266 0 0 3 0x14200 bored smr 88618 309650 0 0 2 0x14200 zerothread 49230 46717 0 0 3 0x14200 aiodoned aiodoned 20949 29987 0 0 3 0x14200 syncer update 3598 73940 0 0 3 0x14200 cleaner cleaner 9390 155784 0 0 3 0x14200 reaper reaper 58206 158676 0 0 3 0x14200 pgdaemon pagedaemon 59098 364847 0 0 3 0x14200 bored crynlk 28206 237627 0 0 3 0x14200 bored crypto 24665 419803 0 0 3 0x14200 bored viomb 44523 481894 0 0 3 0x40014200 acpi0 acpi0 32628 313210 0 0 3 0x40014200 idle1 87780 41539 0 0 3 0x14200 bored softnet 70750 42136 0 0 3 0x14200 bored systqmp 98586 406340 0 0 3 0x14200 bored systq 59796 200650 0 0 3 0x40014200 bored softclock 92301 55549 0 0 3 0x40014200 idle0 1 122126 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 75968 (syz-executor.0) thread 0xffff800021256540 (238053) exclusive rwlock dklk r = 0 (0xffff8000006ac068) #0 witness_lock+0x4b0 #1 rw_enter+0x3e2 #2 vndioctl+0x7d8 #3 VOP_IOCTL+0x9a #4 vn_ioctl+0xba #5 sys_ioctl+0x4a2 #6 syscall+0x5a9 #7 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82a0ddc8) #0 witness_lock+0x4b0 #1 vn_ioctl+0x40 #2 sys_ioctl+0x4a2 #3 syscall+0x5a9 #4 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10114 6471K 6471K 78643K 11204 0 pcb 13 8K 8K 78643K 13 0 rtable 84 2K 3K 78643K 142 0 ifaddr 37 9K 9K 78643K 38 0 counters 42 33K 33K 78643K 42 0 ioctlops 0 0K 4K 78643K 1480 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1183 74K 75K 78643K 1188 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 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 3 8K 12K 78643K 18 0 proc 67 87K 99K 78643K 306 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 22 1K 1K 78643K 22 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 19 95K 95K 78643K 19 0 exec 0 0K 2K 78643K 390 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 140 14K 15K 78643K 1938 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 7 0K 0K 78643K 7 0 temp 28 4197K 4261K 78643K 2236 0 kqueue 10 14K 14K 78643K 10 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 19 0 16 1 0 1 1 0 8 0 rtentry 112 34 0 1 1 0 1 1 0 8 0 unpcb 120 35 0 20 1 0 1 1 0 8 0 syncache 296 5 0 5 2 1 1 1 0 8 1 tcpcb 736 8 0 5 1 0 1 1 0 8 0 arp 120 4 0 0 1 0 1 1 0 8 0 inpcb 304 36 0 30 1 0 1 1 0 8 0 nd6 48 3 0 0 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 11 0 0 1 0 1 1 0 8 0 pfstkey 112 11 0 0 1 0 1 1 0 8 0 pfstate 320 11 0 0 1 0 1 1 0 8 0 pfrule 1360 21 0 15 2 0 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 144 0 0 9 0 9 9 0 8 0 art_table 32 145 0 0 2 0 2 2 0 8 0 art_node 16 33 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1436 0 29 88 0 88 88 0 8 0 ffsino 272 1436 0 29 94 0 94 94 0 8 0 nchpl 144 1660 0 46 60 0 60 60 0 8 0 uvmvnodes 72 1446 0 0 27 0 27 27 0 8 0 vnodes 224 1446 0 0 86 0 86 86 0 8 0 namei 1024 4587 0 4587 2 1 1 1 0 8 1 percpumem 16 33 0 0 1 0 1 1 0 8 0 scxspl 216 4877 0 4877 2 1 1 2 0 8 1 plimitpl 152 17 0 9 1 0 1 1 0 8 0 sigapl 424 277 0 244 4 0 4 4 0 8 0 futexpl 56 1 0 1 1 0 1 1 0 8 1 knotepl 112 48 0 0 2 0 2 2 0 8 0 kqueuepl 216 6 0 0 1 0 1 1 0 8 0 pipepl 336 83 0 76 2 1 1 1 0 8 0 fdescpl 496 261 0 244 3 0 3 3 0 8 0 filepl 152 1211 0 1139 3 0 3 3 0 8 0 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 19 0 9 1 0 1 1 0 8 0 pgrppl 48 19 0 9 1 0 1 1 0 8 0 ucredpl 96 69 0 57 1 0 1 1 0 8 0 zombiepl 144 244 0 244 2 1 1 1 0 8 1 processpl 1072 277 0 244 3 0 3 3 0 8 0 procpl 672 284 0 244 4 0 4 4 0 8 0 sockpl 480 90 0 66 5 1 4 4 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 91 0 0 12 0 12 12 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 145 0 0 10 0 10 10 0 8 0 bufpl 280 3613 0 167 247 0 247 247 0 8 0 anonpl 24 39019 0 35025 35 3 32 32 0 186 7 amapchunkpl 152 3765 0 3442 17 2 15 15 0 158 2 amappl16 200 110 0 57 5 1 4 4 0 8 0 amappl15 192 76 0 71 1 0 1 1 0 8 0 amappl14 184 2 0 1 1 0 1 1 0 8 0 amappl13 176 25 0 24 2 1 1 1 0 8 0 amappl12 168 23 0 19 2 1 1 1 0 8 0 amappl11 160 86 0 64 2 0 2 2 0 8 0 amappl10 152 9 0 5 1 0 1 1 0 8 0 amappl9 144 322 0 318 1 0 1 1 0 8 0 amappl8 136 305 0 290 1 0 1 1 0 8 0 amappl7 128 47 0 42 1 0 1 1 0 8 0 amappl6 120 53 0 47 1 0 1 1 0 8 0 amappl5 112 225 0 206 1 0 1 1 0 8 0 amappl4 104 583 0 558 1 0 1 1 0 8 0 amappl3 96 182 0 163 1 0 1 1 0 8 0 amappl2 88 351 0 312 2 0 2 2 0 8 1 amappl1 80 8154 0 7718 15 2 13 13 0 8 3 amappl 88 1653 0 1545 3 0 3 3 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 261 0 244 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 261 0 244 1 0 1 1 0 8 0 vmmpekpl 168 7023 0 7008 1 0 1 1 0 8 0 vmmpepl 168 26054 0 24897 66 2 64 64 0 357 13 vmsppl 368 260 0 244 2 0 2 2 0 8 0 rwobjpl 56 7915 0 7182 16 2 14 14 0 8 2 pdppl 4096 530 0 488 60 14 46 46 0 8 4 pvpl 32 155902 0 148888 137 2 135 135 0 265 78 pmappl 224 260 0 244 2 0 2 2 0 8 0 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 291 0 18 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 panic(ffffffff8249f722) at panic+0x177 rw_enter(ffff8000006ac058,11) at rw_enter+0x482 vndopen(2902,3,2000,ffff800021256540) at vndopen+0x8d spec_open(ffff80002127c358) at spec_open+0x3c8 VOP_OPEN(fffffd806ebe3e68,3,fffffd807f7d7780,ffff800021256540) at VOP_OPEN+0x7c vn_open(ffff80002127c5f0,3,0) at vn_open+0x467 vndioctl(2902,c0384600,ffff80002127c910,1,ffff800021256540) at vndioctl+0xa10 VOP_IOCTL(fffffd806ebe3e68,c0384600,ffff80002127c910,1,fffffd807f7d7780,ffff800021256540) at VOP_IOCTL+0x9a vn_ioctl(fffffd806e586ac0,c0384600,ffff80002127c910,ffff800021256540) at vn_ioctl+0xba sys_ioctl(ffff800021256540,ffff80002127ca28,ffff80002127ca70) at sys_ioctl+0x4a2 syscall(ffff80002127caf0) at syscall+0x5a9 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9442f25cbb0, count: -13 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d38ff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xb syscall(ffff80002126e060) at syscall+0x42d Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd4320, count: 9 ddb{1}> trace x86_ipi_db(ffff800020d38ff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xb syscall(ffff80002126e060) at syscall+0x42d Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd4320, count: -6 ddb{1}>