kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. starting local daemons:. Mon Mar 21 22:38:50 PDT 2022 OpenBSD/amd64 (ci-openbsd-multicore-7.c.syzkaller.internal) (tty00) Warning: Permanently added '10.128.1.11' (ED25519) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program login: panic: acquiring blockable sleep lock with spinlock or critical section held (kernel_lock) &kernel_lock Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 422887 99427 0 0 0 1 syz-executor4188808858 * 24115 99427 0 0 0x4000000 0 syz-executor4188808858 db_enter() at db_enter+0x18 panic(ffffffff825a0385) at panic+0x177 witness_checkorder(ffffffff82b7e900,9,0) at witness_checkorder+0x116d __mp_lock(ffffffff82b7e6f8) at __mp_lock+0xa1 selwakeup(fffffd806cc0e328) at selwakeup+0x16 sorwakeup(fffffd806cc0e210) at sorwakeup+0xc9 rip_input(ffff800021239fb8,ffff800021239fc4,0,2) at rip_input+0x3b0 ip_deliver(ffff800021239fb8,ffff800021239fc4,0,2) at ip_deliver+0x322 ip_ours(ffff800021239fb8,ffff800021239fc4,fffffd807795c640,0) at ip_ours+0x3ba ip_input_if(ffff800021239fb8,ffff800021239fc4,4,0,ffff80000019f2a8) at ip_input_if+0x2a1 ipv4_input(ffff80000019f2a8,fffffd807f00da00) at ipv4_input+0x48 if_input_local(ffff80000019f2a8,fffffd807f00da00,2) at if_input_local+0x10e ether_resolve(ffff80000019f2a8,fffffd806e35e600,fffffd806f67aa48,fffffd806f3772a0,ffff80002123a108) at ether_resolve+0x4ac ether_output(ffff80000019f2a8,fffffd806e35e600,fffffd806f67aa48,fffffd806f3772a0) at ether_output+0x47 end trace frame: 0xffff80002123a280, count: 0 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: acquiring blockable sleep lock with spinlock or critical section held (kernel_lock) &kernel_lock ddb{0}> trace db_enter() at db_enter+0x18 panic(ffffffff825a0385) at panic+0x177 witness_checkorder(ffffffff82b7e900,9,0) at witness_checkorder+0x116d __mp_lock(ffffffff82b7e6f8) at __mp_lock+0xa1 selwakeup(fffffd806cc0e328) at selwakeup+0x16 sorwakeup(fffffd806cc0e210) at sorwakeup+0xc9 rip_input(ffff800021239fb8,ffff800021239fc4,0,2) at rip_input+0x3b0 ip_deliver(ffff800021239fb8,ffff800021239fc4,0,2) at ip_deliver+0x322 ip_ours(ffff800021239fb8,ffff800021239fc4,fffffd807795c640,0) at ip_ours+0x3ba ip_input_if(ffff800021239fb8,ffff800021239fc4,4,0,ffff80000019f2a8) at ip_input_if+0x2a1 ipv4_input(ffff80000019f2a8,fffffd807f00da00) at ipv4_input+0x48 if_input_local(ffff80000019f2a8,fffffd807f00da00,2) at if_input_local+0x10e ether_resolve(ffff80000019f2a8,fffffd806e35e600,fffffd806f67aa48,fffffd806f3772a0,ffff80002123a108) at ether_resolve+0x4ac ether_output(ffff80000019f2a8,fffffd806e35e600,fffffd806f67aa48,fffffd806f3772a0) at ether_output+0x47 ip_output(fffffd806e35e600,0,fffffd806f67aa38,20,0,fffffd806f67a9c0,589f7510932b2cbf) at ip_output+0x106b rip_output(fffffd806e35e600,fffffd806cc0e3f0,ffff80002123a320,1) at rip_output+0x2cb rip_usrreq(fffffd806cc0e3f0,9,fffffd806e35e600,0,0,ffff800021197260) at rip_usrreq+0x49c sosend(fffffd806cc0e3f0,0,ffff80002123a490,0,0,0) at sosend+0x632 sendit(ffff800021197260,6,ffff80002123a590,0,ffff80002123a680) at sendit+0x65d sys_sendto(ffff800021197260,ffff80002123a628,ffff80002123a680) at sys_sendto+0x80 syscall(ffff80002123a6f0) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9b247ca4ef0, count: -22 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800021239b40 rbx 0xffffffff82949bff cpu_info_full_primary+0x2bff rdx 0x3fd rcx 0 rax 0x68 r8 0x101010101010101 r9 0x8080808080808080 r10 0x9b4417209b77e921 r11 0x1071ce883c86662a r12 0xffffffff82949a00 cpu_info_full_primary+0x2a00 r13 0 r14 0 r15 0x1 rip 0xffffffff81828e88 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021239b30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor4188808858) pid=24115 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=52, nice=20 forw=0xffffffffffffffff, list=0xffff800021196fc0,0xffff8000211977b0 process=0xffff8000211a31f0 user=0xffff800021235000, vmspace=0xfffffd807effe5c0 estcpu=2, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 44801 483772 27995 0 2 0 syz-executor4188808858 44801 427262 27995 0 3 0x4000080 fsleep syz-executor4188808858 93333 177442 7038 0 2 0 syz-executor4188808858 93333 2386 7038 0 3 0x4000080 fsleep syz-executor4188808858 48939 98424 19726 0 2 0 syz-executor4188808858 48939 56598 19726 0 3 0x4000080 fsleep syz-executor4188808858 70003 482890 31783 0 2 0 syz-executor4188808858 70003 511226 31783 0 3 0x4000080 fsleep syz-executor4188808858 70003 394073 31783 0 2 0x4000000 syz-executor4188808858 19548 204410 95870 0 2 0 syz-executor4188808858 19548 323978 95870 0 3 0x4000080 fsleep syz-executor4188808858 17059 26644 22542 0 2 0 syz-executor4188808858 17059 200511 22542 0 3 0x4000080 fsleep syz-executor4188808858 17059 271757 22542 0 2 0x4000000 syz-executor4188808858 19726 217692 83252 0 3 0x80 nanoslp syz-executor4188808858 31783 489629 83252 0 3 0x80 nanoslp syz-executor4188808858 7038 12685 83252 0 3 0x80 nanoslp syz-executor4188808858 99427 422887 10742 0 7 0 syz-executor4188808858 *99427 24115 10742 0 7 0x4000000 syz-executor4188808858 99427 58907 10742 0 3 0x4000080 fsleep syz-executor4188808858 22542 230775 83252 0 3 0x80 nanoslp syz-executor4188808858 95870 283833 83252 0 3 0x80 nanoslp syz-executor4188808858 10742 226062 83252 0 3 0x80 nanoslp syz-executor4188808858 53572 416580 89732 0 2 0 syz-executor4188808858 53572 6851 89732 0 2 0x4000000 syz-executor4188808858 27995 49840 83252 0 3 0x80 nanoslp syz-executor4188808858 89732 475871 83252 0 3 0x80 nanoslp syz-executor4188808858 83252 328402 22281 0 3 0x82 nanoslp syz-executor4188808858 22281 282281 7189 0 3 0x10008a sigsusp ksh 7189 344827 79815 0 3 0x9a kqread sshd 31762 515426 1 0 3 0x100083 ttyin getty 79815 325706 1 0 3 0x88 kqread sshd 84250 279428 12651 74 3 0x1100092 bpf pflogd 12651 418441 1 0 3 0x80 netio pflogd 89527 440476 6690 73 3 0x1100090 kqread syslogd 6690 369251 1 0 3 0x100082 netio syslogd 99131 45228 1 0 3 0x100080 kqread resolvd 26686 173919 65314 77 3 0x100092 kqread dhcpleased 4163 6272 65314 77 3 0x100092 kqread dhcpleased 65314 175822 1 0 3 0x80 kqread dhcpleased 42863 441702 0 0 3 0x14200 bored smr 10108 41536 0 0 2 0x14200 zerothread 53876 84958 0 0 3 0x14200 aiodoned aiodoned 78162 44508 0 0 3 0x14200 syncer update 3732 521911 0 0 3 0x14200 cleaner cleaner 46811 289203 0 0 3 0x14200 reaper reaper 71207 196307 0 0 3 0x14200 pgdaemon pagedaemon 22090 216926 0 0 3 0x14200 bored viomb 22071 212293 0 0 3 0x40014200 acpi0 acpi0 93461 21389 0 0 3 0x40014200 idle1 89163 98932 0 0 3 0x14200 bored softnet 31923 412206 0 0 3 0x14200 bored systqmp 33138 442876 0 0 3 0x14200 bored systq 42527 241425 0 0 3 0x40014200 bored softclock 17850 478727 0 0 3 0x40014200 idle0 1 407587 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex &table->inpt_mtx r = 0 (0xffffffff82b4af68) #0 witness_lock+0x44d #1 mtx_enter_try+0x100 #2 mtx_enter+0x4b #3 rip_input+0x135 #4 ip_deliver+0x322 #5 ip_ours+0x3ba #6 ip_input_if+0x2a1 #7 ipv4_input+0x48 #8 if_input_local+0x10e #9 ether_resolve+0x4ac #10 ether_output+0x47 #11 ip_output+0x106b #12 rip_output+0x2cb #13 rip_usrreq+0x49c #14 sosend+0x632 #15 sendit+0x65d #16 sys_sendto+0x80 #17 syscall+0x489 #18 Xsyscall+0x128 Process 99427 (syz-executor4188808858) thread 0xffff800021197260 (24115) exclusive rwlock netlock r = 0 (0xffffffff82980490) #0 witness_lock+0x44d #1 solock+0x86 #2 sosend+0x517 #3 sendit+0x65d #4 sys_sendto+0x80 #5 syscall+0x489 #6 Xsyscall+0x128 exclusive mutex &table->inpt_mtx r = 0 (0xffffffff82b4af68) #0 witness_lock+0x44d #1 mtx_enter_try+0x100 #2 mtx_enter+0x4b #3 rip_input+0x135 #4 ip_deliver+0x322 #5 ip_ours+0x3ba #6 ip_input_if+0x2a1 #7 ipv4_input+0x48 #8 if_input_local+0x10e #9 ether_resolve+0x4ac #10 ether_output+0x47 #11 ip_output+0x106b #12 rip_output+0x2cb #13 rip_usrreq+0x49c #14 sosend+0x632 #15 sendit+0x65d #16 sys_sendto+0x80 #17 syscall+0x489 #18 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10149 6454K 6455K 78643K 11239 0 pcb 13 8K 8K 78643K 19 0 rtable 62 2K 2K 78643K 112 0 ifaddr 29 8K 8K 78643K 32 0 counters 40 33K 33K 78643K 40 0 ioctlops 0 0K 4K 78643K 1479 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1167 73K 73K 78643K 1180 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 12548 0 file desc 1 0K 0K 78643K 1 0 proc 67 87K 87K 78643K 282 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 11 0K 0K 78643K 11 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 25 122K 122K 78643K 25 0 exec 0 0K 2K 78643K 432 0 tdb 3 0K 0K 78643K 3 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 191 7K 7K 78643K 2289 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 4 0K 0K 78643K 4 0 temp 24 4694K 4757K 78643K 3328 0 kqueue 11 16K 18K 78643K 24 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 17 0 14 1 0 1 1 0 8 0 rtentry 112 23 0 1 1 0 1 1 0 8 0 unpcb 136 51 0 23 2 0 2 2 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 2 0 0 1 0 1 1 0 8 0 inpcb 312 38 0 26 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 2 1 0 1 1 0 8 0 pfstkey 112 11 0 2 1 0 1 1 0 8 0 pfstate 320 11 0 2 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 97 0 0 7 0 7 7 0 8 0 art_table 32 98 0 0 1 0 1 1 0 8 0 art_node 16 22 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1424 0 39 87 0 87 87 0 8 0 ffsino 272 1424 0 39 93 0 93 93 0 8 0 nchpl 144 1599 0 49 58 0 58 58 0 8 0 uvmvnodes 80 1434 0 0 30 0 30 30 0 8 0 vnodes 224 1434 0 0 85 0 85 85 0 8 0 namei 1024 4422 0 4422 2 1 1 1 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 216 4042 0 4042 11 10 1 8 0 8 1 plimitpl 152 16 0 9 1 0 1 1 0 8 0 sigapl 424 336 0 291 5 0 5 5 0 8 0 futexpl 64 19 0 12 1 0 1 1 0 8 0 knotepl 120 50 0 0 2 0 2 2 0 8 0 kqueuepl 216 20 0 13 1 0 1 1 0 8 0 pipepl 336 86 0 83 2 1 1 1 0 8 0 fdescpl 496 322 0 291 4 0 4 4 0 8 0 filepl 152 1167 0 1090 4 0 4 4 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 18 0 9 1 0 1 1 0 8 0 pgrppl 48 18 0 9 1 0 1 1 0 8 0 ucredpl 96 69 0 57 1 0 1 1 0 8 0 zombiepl 144 291 0 291 2 1 1 1 0 8 1 processpl 1064 336 0 291 3 0 3 3 0 8 0 procpl 672 347 0 291 5 0 5 5 0 8 0 sockpl 480 106 0 63 7 1 6 6 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 64 0 0 8 1 7 8 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 118 0 0 7 0 7 7 0 8 0 bufpl 288 2022 0 91 138 0 138 138 0 8 0 anonpl 24 43521 0 39114 30 3 27 27 0 186 0 amapchunkpl 152 4201 0 3844 15 1 14 14 0 158 0 amappl16 200 37 0 29 3 1 2 2 0 8 1 amappl15 192 69 0 65 1 0 1 1 0 8 0 amappl13 176 34 0 33 2 1 1 1 0 8 0 amappl12 168 10 0 10 2 1 1 1 0 8 1 amappl11 160 49 0 34 1 0 1 1 0 8 0 amappl10 152 2 0 0 1 0 1 1 0 8 0 amappl9 144 464 0 462 1 0 1 1 0 8 0 amappl8 136 387 0 367 1 0 1 1 0 8 0 amappl7 128 65 0 62 1 0 1 1 0 8 0 amappl6 120 115 0 102 1 0 1 1 0 8 0 amappl5 112 178 0 166 1 0 1 1 0 8 0 amappl4 104 645 0 625 1 0 1 1 0 8 0 amappl3 96 121 0 112 1 0 1 1 0 8 0 amappl2 88 369 0 331 1 0 1 1 0 8 0 amappl1 80 8880 0 8392 12 2 10 10 0 8 0 amappl 88 2001 0 1835 4 0 4 4 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 72 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 322 0 291 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 322 0 291 1 0 1 1 0 8 0 vmmpekpl 168 6241 0 6224 1 0 1 1 0 8 0 vmmpepl 168 27146 0 25699 67 4 63 63 0 357 0 vmsppl 368 321 0 291 3 0 3 3 0 8 0 rwobjpl 56 9686 0 7543 31 0 31 31 0 8 0 pdppl 4096 651 0 582 89 20 69 69 0 8 0 pvpl 32 137379 0 130656 61 5 56 56 0 265 1 pmappl 248 321 0 291 2 0 2 2 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 449 0 25 13 0 13 13 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 panic(ffffffff825a0385) at panic+0x177 witness_checkorder(ffffffff82b7e900,9,0) at witness_checkorder+0x116d __mp_lock(ffffffff82b7e6f8) at __mp_lock+0xa1 selwakeup(fffffd806cc0e328) at selwakeup+0x16 sorwakeup(fffffd806cc0e210) at sorwakeup+0xc9 rip_input(ffff800021239fb8,ffff800021239fc4,0,2) at rip_input+0x3b0 ip_deliver(ffff800021239fb8,ffff800021239fc4,0,2) at ip_deliver+0x322 ip_ours(ffff800021239fb8,ffff800021239fc4,fffffd807795c640,0) at ip_ours+0x3ba ip_input_if(ffff800021239fb8,ffff800021239fc4,4,0,ffff80000019f2a8) at ip_input_if+0x2a1 ipv4_input(ffff80000019f2a8,fffffd807f00da00) at ipv4_input+0x48 if_input_local(ffff80000019f2a8,fffffd807f00da00,2) at if_input_local+0x10e ether_resolve(ffff80000019f2a8,fffffd806e35e600,fffffd806f67aa48,fffffd806f3772a0,ffff80002123a108) at ether_resolve+0x4ac ether_output(ffff80000019f2a8,fffffd806e35e600,fffffd806f67aa48,fffffd806f3772a0) at ether_output+0x47 ip_output(fffffd806e35e600,0,fffffd806f67aa38,20,0,fffffd806f67a9c0,589f7510932b2cbf) at ip_output+0x106b rip_output(fffffd806e35e600,fffffd806cc0e3f0,ffff80002123a320,1) at rip_output+0x2cb rip_usrreq(fffffd806cc0e3f0,9,fffffd806e35e600,0,0,ffff800021197260) at rip_usrreq+0x49c sosend(fffffd806cc0e3f0,0,ffff80002123a490,0,0,0) at sosend+0x632 sendit(ffff800021197260,6,ffff80002123a590,0,ffff80002123a680) at sendit+0x65d sys_sendto(ffff800021197260,ffff80002123a628,ffff80002123a680) at sys_sendto+0x80 syscall(ffff80002123a6f0) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9b247ca4ef0, count: -22 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020ce8ff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 syscall(ffff8000211f8c20) at syscall+0x89 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc0510, count: 10 ddb{1}> trace x86_ipi_db(ffff800020ce8ff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 syscall(ffff8000211f8c20) at syscall+0x89 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc0510, count: -5 ddb{1}>