kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons:. Wed Sep 8 08:48:32 PDT 2021 OpenBSD/amd64 (ci-openbsd-main-6.c.syzkaller.internal) (tty00) Warning: Permanently added '10.128.0.255' (ED25519) to the list of known hosts. 2021/09/08 08:55:39 parsed 1 programs 2021/09/08 08:55:42 executed programs: 0 2021/09/08 08:55:47 executed programs: 402 2021/09/08 08:55:52 executed programs: 833 2021/09/08 08:55:57 executed programs: 1221 2021/09/08 08:56:02 executed programs: 1580 2021/09/08 08:56:07 executed programs: 1931 2021/09/08 08:56:12 executed programs: 2162 2021/09/08 08:56:17 executed programs: 2561 2021/09/08 08:56:22 executed programs: 2842 2021/09/08 08:56:27 executed programs: 3096 2021/09/08 08:56:32 executed programs: 3437 2021/09/08 08:56:37 executed programs: 3888 2021/09/08 08:56:42 executed programs: 4229 2021/09/08 08:56:47 executed programs: 4555 2021/09/08 08:56:52 executed programs: 4987 2021/09/08 08:56:57 executed programs: 5279 2021/09/08 08:57:03 executed programs: 5608 2021/09/08 08:57:08 executed programs: 5875 2021/09/08 08:57:13 executed programs: 6133 2021/09/08 08:57:18 executed programs: 6413 2021/09/08 08:57:23 executed programs: 6694 2021/09/08 08:57:28 executed programs: 7127 2021/09/08 08:57:33 executed programs: 7372 login: panic: rw_enter: dklk locking against myself Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *493243 21835 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 panic(ffffffff82474a14) at panic+0x161 rw_enter(ffff8000006aa058,11) at rw_enter+0x36f vndopen(2902,3,2000,ffff800021668000) at vndopen+0x8d spec_open(ffff8000217188a8) at spec_open+0x3c8 VOP_OPEN(fffffd806f5ef228,3,fffffd807f7d7960,ffff800021668000) at VOP_OPEN+0x73 vn_open(ffff800021718b40,3,0) at vn_open+0x467 vndioctl(2902,c0384600,ffff800021718e60,1,ffff800021668000) at vndioctl+0xa07 VOP_IOCTL(fffffd806f5ef228,c0384600,ffff800021718e60,1,fffffd807f7d7960,ffff800021668000) at VOP_IOCTL+0x91 vn_ioctl(fffffd806e2b0808,c0384600,ffff800021718e60,ffff800021668000) at vn_ioctl+0xb5 sys_ioctl(ffff800021668000,ffff800021718f78,ffff800021718fd0) at sys_ioctl+0x49e syscall(ffff800021719040) at syscall+0x571 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x780628e87f0, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: rw_enter: dklk locking against myself ddb> trace db_enter() at db_enter+0x18 panic(ffffffff82474a14) at panic+0x161 rw_enter(ffff8000006aa058,11) at rw_enter+0x36f vndopen(2902,3,2000,ffff800021668000) at vndopen+0x8d spec_open(ffff8000217188a8) at spec_open+0x3c8 VOP_OPEN(fffffd806f5ef228,3,fffffd807f7d7960,ffff800021668000) at VOP_OPEN+0x73 vn_open(ffff800021718b40,3,0) at vn_open+0x467 vndioctl(2902,c0384600,ffff800021718e60,1,ffff800021668000) at vndioctl+0xa07 VOP_IOCTL(fffffd806f5ef228,c0384600,ffff800021718e60,1,fffffd807f7d7960,ffff800021668000) at VOP_IOCTL+0x91 vn_ioctl(fffffd806e2b0808,c0384600,ffff800021718e60,ffff800021668000) at vn_ioctl+0xb5 sys_ioctl(ffff800021668000,ffff800021718f78,ffff800021718fd0) at sys_ioctl+0x49e syscall(ffff800021719040) at syscall+0x571 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x780628e87f0, count: -13 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800021718670 rbx 0x4 rdx 0x8b rcx 0x2 rax 0x2d r8 0xffffffff81b21fc5 kprintf+0x145 r9 0x1 r10 0x7535f75b593825a4 r11 0xfbe983d51c94759a r12 0 r13 0xffff800021668004 r14 0 r15 0x1 rip 0xffffffff8102d098 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021718660 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=493243 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000216687e0,0xffffffff828ac128 process=0xffff80002165d3b0 user=0xffff800021714000, vmspace=0xfffffd806b0faab0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 21835 366765 21949 0 2 0 syz-executor.0 21835 477806 21949 0 2 0x4000000 syz-executor.0 *21835 493243 21949 0 7 0x4000000 syz-executor.0 77058 143084 65410 0 3 0x82 nanoslp syz-executor.1 21949 121588 65410 0 3 0x82 nanoslp syz-executor.0 65410 283097 2648 0 3 0x82 thrsleep syz-execprog 65410 177458 2648 0 3 0x4000082 thrsleep syz-execprog 65410 111553 2648 0 3 0x4000082 thrsleep syz-execprog 65410 171388 2648 0 3 0x4000082 thrsleep syz-execprog 65410 495283 2648 0 3 0x4000082 thrsleep syz-execprog 65410 265028 2648 0 3 0x4000082 kqread syz-execprog 65410 53445 2648 0 3 0x4000082 thrsleep syz-execprog 2648 129169 28542 0 3 0x10008a sigsusp ksh 28542 257715 26452 0 3 0x9a select sshd 8231 372206 1 0 3 0x100083 ttyin getty 26452 305118 1 0 3 0x88 select sshd 59420 326925 85507 73 3 0x100090 kqread syslogd 85507 255835 1 0 3 0x100082 netio syslogd 86815 479159 1 0 3 0x100080 kqread resolvd 55825 95268 81496 77 3 0x100092 kqread dhcpleased 88654 505855 81496 77 3 0x100092 kqread dhcpleased 81496 218704 1 0 3 0x80 kqread dhcpleased 84481 173603 0 0 3 0x14200 bored smr 61832 26644 0 0 2 0x14200 zerothread 38888 14544 0 0 3 0x14200 aiodoned aiodoned 10717 11585 0 0 3 0x14200 syncer update 42548 228683 0 0 3 0x14200 cleaner cleaner 74682 193812 0 0 3 0x14200 reaper reaper 19082 242325 0 0 3 0x14200 pgdaemon pagedaemon 20349 231244 0 0 3 0x14200 bored crynlk 6676 403161 0 0 3 0x14200 bored crypto 13762 236779 0 0 3 0x14200 bored viomb 95484 97 0 0 3 0x40014200 acpi0 acpi0 71246 479618 0 0 3 0x14200 bored softnet 62112 166436 0 0 3 0x14200 bored systqmp 89021 37812 0 0 3 0x14200 bored systq 38804 341636 0 0 3 0x40014200 bored softclock 40406 104354 0 0 3 0x40014200 idle0 1 52443 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10099 6346K 6373K 78643K 11189 0 pcb 13 8K 8K 78643K 13 0 rtable 106 3K 3K 78643K 174 0 ifaddr 39 10K 10K 78643K 39 0 counters 21 16K 16K 78643K 21 0 ioctlops 0 0K 2K 78643K 27 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1182 74K 74K 78643K 1187 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 0K 0K 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 5 13K 25K 78643K 7425 0 proc 55 54K 71K 78643K 278 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 19 95K 95K 78643K 19 0 exec 0 0K 2K 78643K 383 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 144 21K 22K 78643K 87426 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 5 0K 0K 78643K 9 0 temp 27 4189K 4253K 78643K 16912 0 kqueue 10 14K 14K 78643K 10 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 24 0 21 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 unpcb 120 33 0 20 1 0 1 1 0 8 0 syncache 296 5 0 5 2 2 0 1 0 8 0 tcpcb 736 8 0 5 1 0 1 1 0 8 0 arp 88 6 0 0 1 0 1 1 0 8 0 inpcb 304 33 0 27 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 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 16212 0 14806 88 0 88 88 0 8 0 ffsino 240 16212 0 14806 83 0 83 83 0 8 0 nchpl 144 31219 0 29602 60 0 60 60 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 224 5926 0 0 349 0 349 349 0 8 0 namei 1024 78355 0 78355 2 1 1 1 0 8 1 scxspl 216 78702 0 78702 22 21 1 8 0 8 1 plimitpl 152 17 0 9 1 0 1 1 0 8 0 sigapl 424 7659 0 7628 4 0 4 4 0 8 0 futexpl 56 26703 0 26703 1 0 1 1 0 8 1 knotepl 112 176 0 140 2 0 2 2 0 8 0 kqueuepl 184 6 0 0 1 0 1 1 0 8 0 pipepl 304 83 0 73 2 1 1 1 0 8 0 fdescpl 432 7644 0 7628 3 1 2 3 0 8 0 filepl 120 15897 0 15822 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 64 0 54 1 0 1 1 0 8 0 zombiepl 144 7628 0 7627 2 1 1 1 0 8 0 processpl 1008 7659 0 7627 5 0 5 5 0 8 1 procpl 672 15064 0 15024 4 0 4 4 0 8 0 sockpl 448 90 0 68 3 0 3 3 0 8 0 mcl8k 8192 9 0 9 2 2 0 1 0 8 0 mcl4k 4096 5 0 5 2 2 0 1 0 8 0 mcl2k 2048 5583 0 5545 8 3 5 8 0 8 0 mtagpl 96 3 0 3 1 1 0 1 0 8 0 mbufpl 256 9824 0 9676 11 1 10 10 0 8 0 bufpl 280 10706 0 4300 458 0 458 458 0 8 0 anonpl 24 1774282 0 1769893 35 6 29 29 0 188 1 amapchunkpl 152 205834 0 205519 15 1 14 14 0 158 0 amappl16 200 14990 0 14894 6 0 6 6 0 8 0 amappl14 184 3689 0 3687 1 0 1 1 0 8 0 amappl13 176 3734 0 3732 2 1 1 1 0 8 0 amappl12 168 13 0 11 2 1 1 1 0 8 0 amappl11 160 42 0 32 1 0 1 1 0 8 0 amappl10 152 34 0 30 1 0 1 1 0 8 0 amappl9 144 223 0 219 1 0 1 1 0 8 0 amappl8 136 313 0 293 1 0 1 1 0 8 0 amappl7 128 66 0 55 1 0 1 1 0 8 0 amappl6 120 108 0 100 1 0 1 1 0 8 0 amappl5 112 7570 0 7556 1 0 1 1 0 8 0 amappl4 104 547 0 524 1 0 1 1 0 8 0 amappl3 96 37 0 35 1 0 1 1 0 8 0 amappl2 88 4191 0 4137 3 1 2 2 0 8 0 amappl1 80 124714 0 124298 15 6 9 12 0 8 0 amappl 88 87144 0 87037 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 7644 0 7628 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7644 0 7628 1 0 1 1 0 8 0 vmmpekpl 168 42821 0 42806 1 0 1 1 0 8 0 vmmpepl 168 569807 0 568637 65 10 55 60 0 357 0 vmsppl 272 7643 0 7628 3 1 2 2 0 8 0 rwobjpl 24 131501 0 130760 7 2 5 6 0 8 0 pdppl 4096 15295 0 15256 69 28 41 45 0 8 2 pvpl 32 2867468 0 2860036 140 76 64 132 0 265 1 pmappl 192 7643 0 7628 1 0 1 1 0 8 0 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 291 0 40 8 0 8 8 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x18 panic(ffffffff82474a14) at panic+0x161 rw_enter(ffff8000006aa058,11) at rw_enter+0x36f vndopen(2902,3,2000,ffff800021668000) at vndopen+0x8d spec_open(ffff8000217188a8) at spec_open+0x3c8 VOP_OPEN(fffffd806f5ef228,3,fffffd807f7d7960,ffff800021668000) at VOP_OPEN+0x73 vn_open(ffff800021718b40,3,0) at vn_open+0x467 vndioctl(2902,c0384600,ffff800021718e60,1,ffff800021668000) at vndioctl+0xa07 VOP_IOCTL(fffffd806f5ef228,c0384600,ffff800021718e60,1,fffffd807f7d7960,ffff800021668000) at VOP_IOCTL+0x91 vn_ioctl(fffffd806e2b0808,c0384600,ffff800021718e60,ffff800021668000) at vn_ioctl+0xb5 sys_ioctl(ffff800021668000,ffff800021718f78,ffff800021718fd0) at sys_ioctl+0x49e syscall(ffff800021719040) at syscall+0x571 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x780628e87f0, count: -13 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 panic(ffffffff82474a14) at panic+0x161 rw_enter(ffff8000006aa058,11) at rw_enter+0x36f vndopen(2902,3,2000,ffff800021668000) at vndopen+0x8d spec_open(ffff8000217188a8) at spec_open+0x3c8 VOP_OPEN(fffffd806f5ef228,3,fffffd807f7d7960,ffff800021668000) at VOP_OPEN+0x73 vn_open(ffff800021718b40,3,0) at vn_open+0x467 vndioctl(2902,c0384600,ffff800021718e60,1,ffff800021668000) at vndioctl+0xa07 VOP_IOCTL(fffffd806f5ef228,c0384600,ffff800021718e60,1,fffffd807f7d7960,ffff800021668000) at VOP_IOCTL+0x91 vn_ioctl(fffffd806e2b0808,c0384600,ffff800021718e60,ffff800021668000) at vn_ioctl+0xb5 sys_ioctl(ffff800021668000,ffff800021718f78,ffff800021718fd0) at sys_ioctl+0x49e syscall(ffff800021719040) at syscall+0x571 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x780628e87f0, count: -13