l:kg.TT~h@"<Y%$-K7Mq-jpanic: 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 *333844 41080 0 0 0x4000000 1 syz-executor.0 238324 75286 0 0x14000 0x40000200 0 softclock db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff8261f770,9,0) at witness_checkorder+0x10cc sys/kern/subr_witness.c:820 __mp_lock(ffffffff8261f568) at __mp_lock+0xa1 pageflttrap() at pageflttrap+0x6f sys/arch/amd64/amd64/trap.c:162 kerntrap(ffff800021b5ca80) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,0,600,0,fffffd8007e0a854,fffffd806709def8) at alltraps_kern_meltdown+0x7b frag6_input(ffff800021b5cde8,ffff800021b5cdf4,2c,18) at frag6_input+0x7d2 sys/netinet6/frag6.c:321 ip_deliver(ffff800021b5cde8,ffff800021b5cdf4,2c,18) at ip_deliver+0x353 sys/netinet/ip_input.c:665 ip6_input_if(ffff800021b5cde8,ffff800021b5cdf4,29,0,ffff80000066d000) at ip6_input_if+0x17d4 ip6_ours sys/netinet6/ip6_input.c:518 [inline] ip6_input_if(ffff800021b5cde8,ffff800021b5cdf4,29,0,ffff80000066d000) at ip6_input_if+0x17d4 sys/netinet6/ip6_input.c:340 ipv6_input(ffff80000066d000,fffffd806f1ffb00) at ipv6_input+0x48 sys/netinet6/ip6_input.c:171 if_input_local(ffff80000066d000,fffffd806f1ffb00,18) at if_input_local+0x121 sys/net/if.c:783 ip6_output(fffffd8063707d00,ffff800000a9b780,fffffd806f6ba700,0,0,fffffd806f6ba690) at ip6_output+0xd59 rip6_output(fffffd8063707d00,fffffd8066333798,ffff800021b5d158,0) at rip6_output+0x4c0 sys/netinet6/raw_ip6.c:481 end trace frame: 0xffff800021b5d1f0, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic acquiring blockable sleep lock with spinlock or critical section held (kernel_lock) &kernel_lock ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 witness_checkorder(ffffffff8261f770,9,0) at witness_checkorder+0x10cc sys/kern/subr_witness.c:820 __mp_lock(ffffffff8261f568) at __mp_lock+0xa1 pageflttrap() at pageflttrap+0x6f sys/arch/amd64/amd64/trap.c:162 kerntrap(ffff800021b5ca80) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,0,600,0,fffffd8007e0a854,fffffd806709def8) at alltraps_kern_meltdown+0x7b frag6_input(ffff800021b5cde8,ffff800021b5cdf4,2c,18) at frag6_input+0x7d2 sys/netinet6/frag6.c:321 ip_deliver(ffff800021b5cde8,ffff800021b5cdf4,2c,18) at ip_deliver+0x353 sys/netinet/ip_input.c:665 ip6_input_if(ffff800021b5cde8,ffff800021b5cdf4,29,0,ffff80000066d000) at ip6_input_if+0x17d4 ip6_ours sys/netinet6/ip6_input.c:518 [inline] ip6_input_if(ffff800021b5cde8,ffff800021b5cdf4,29,0,ffff80000066d000) at ip6_input_if+0x17d4 sys/netinet6/ip6_input.c:340 ipv6_input(ffff80000066d000,fffffd806f1ffb00) at ipv6_input+0x48 sys/netinet6/ip6_input.c:171 if_input_local(ffff80000066d000,fffffd806f1ffb00,18) at if_input_local+0x121 sys/net/if.c:783 ip6_output(fffffd8063707d00,ffff800000a9b780,fffffd806f6ba700,0,0,fffffd806f6ba690) at ip6_output+0xd59 rip6_output(fffffd8063707d00,fffffd8066333798,ffff800021b5d158,0) at rip6_output+0x4c0 sys/netinet6/raw_ip6.c:481 rip6_usrreq(fffffd8066333798,9,fffffd8063707d00,0,0,ffff800020abfb40) at rip6_usrreq+0x5cd sys/netinet6/raw_ip6.c:670 sosend(fffffd8066333798,0,ffff800021b5d388,0,0,0) at sosend+0x668 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020abfb40,4,ffff800021b5d388,0,ffff800021b5d490) at dofilewritev+0x1ac sys/kern/sys_generic.c:364 sys_write(ffff800020abfb40,ffff800021b5d428,ffff800021b5d490) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800021b5d500) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b5d500) at syscall+0x552 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,f33e6afb010) at Xsyscall+0x128 end of kernel end trace frame: 0xf366e752770, count: -20 ddb{1}> show registers rdi 0xffffffff819f49b7 db_enter+0x17 rsi 0x34b4 __ALIGN_SIZE+0x24b4 rbp 0xffff800021b5c7e0 rbx 0xffff800021b5c890 rdx 0x34b5 __ALIGN_SIZE+0x24b5 rcx 0xffff800023d9c000 rax 0xffff800023d9c000 r8 0xffffffff81788e23 kprintf+0x173 r9 0x1 r10 0x25 r11 0xb4e89250baf3ce5a r12 0x3000000008 r13 0xffff800021b5c7f0 r14 0x100 r15 0x1 rip 0xffffffff819f49b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021b5c7d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=333844 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020abeee8,0xffffffff8264e688 process=0xffff800020add500 user=0xffff800021b58000, vmspace=0xfffffd807f00c730 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 41080 345438 95441 0 2 0 syz-executor.0 *41080 333844 95441 0 7 0x4000000 syz-executor.0 95441 291632 45829 0 2 0x482 syz-executor.0 15386 223939 45829 0 2 0x482 syz-executor.1 71101 347624 0 0 3 0x14200 bored sosplice 45829 184960 33706 0 3 0x82 thrsleep syz-fuzzer 45829 33629 33706 0 2 0x4000482 syz-fuzzer 45829 175704 33706 0 2 0x4000482 syz-fuzzer 45829 77293 33706 0 3 0x4000082 thrsleep syz-fuzzer 45829 388286 33706 0 3 0x4000082 thrsleep syz-fuzzer 45829 110851 33706 0 3 0x4000082 thrsleep syz-fuzzer 45829 482476 33706 0 3 0x4000082 thrsleep syz-fuzzer 45829 20194 33706 0 3 0x4000082 kqread syz-fuzzer 45829 498715 33706 0 3 0x4000082 thrsleep syz-fuzzer 45829 398076 33706 0 3 0x4000082 thrsleep syz-fuzzer 33706 323629 38018 0 3 0x10008a pause ksh 38018 23396 60574 0 3 0x92 select sshd 44622 125643 1 0 3 0x100083 ttyin getty 60574 100229 1 0 3 0x80 select sshd 33978 434377 70071 74 3 0x100092 bpf pflogd 70071 502429 1 0 3 0x80 netio pflogd 98654 133490 65127 73 3 0x100090 kqread syslogd 65127 459221 1 0 3 0x100082 netio syslogd 92794 108794 1 77 3 0x100090 poll dhclient 93697 514922 1 0 3 0x80 poll dhclient 19625 469480 0 0 3 0x14200 pgzero zerothread 87099 131387 0 0 3 0x14200 aiodoned aiodoned 9457 85724 0 0 3 0x14200 syncer update 79157 87262 0 0 3 0x14200 cleaner cleaner 98853 75805 0 0 3 0x14200 reaper reaper 91052 76816 0 0 3 0x14200 pgdaemon pagedaemon 94579 107958 0 0 3 0x14200 bored crynlk 23404 490464 0 0 3 0x14200 bored crypto 84900 26867 0 0 3 0x40014200 acpi0 acpi0 20285 20537 0 0 3 0x40014200 idle1 65033 135403 0 0 3 0x14200 bored softnet 84893 59759 0 0 3 0x14200 bored systqmp 96759 288797 0 0 3 0x14200 bored systq 75286 238324 0 0 7 0x40014200 softclock 24577 303076 0 0 3 0x40014200 idle0 38243 256308 0 0 3 0x14200 bored smr 1 126764 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 1: exclusive mutex /syzkaller/managers/multicore/kernel/sys/netinet6/frag6.c:57 r = 0 (0xffffffff824d5590) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 frag6_input+0x237 sys/netinet6/frag6.c:183 #4 ip_deliver+0x353 sys/netinet/ip_input.c:665 #5 ip6_input_if+0x17d4 ip6_ours sys/netinet6/ip6_input.c:518 [inline] #5 ip6_input_if+0x17d4 sys/netinet6/ip6_input.c:340 #6 ipv6_input+0x48 sys/netinet6/ip6_input.c:171 #7 if_input_local+0x121 sys/net/if.c:783 #8 ip6_output+0xd59 #9 rip6_output+0x4c0 sys/netinet6/raw_ip6.c:481 #10 rip6_usrreq+0x5cd sys/netinet6/raw_ip6.c:670 #11 sosend+0x668 sys/kern/uipc_socket.c:524 #12 dofilewritev+0x1ac sys/kern/sys_generic.c:364 #13 sys_write+0x83 sys/kern/sys_generic.c:284 #14 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] #14 syscall+0x552 sys/arch/amd64/amd64/trap.c:555 #15 Xsyscall+0x128 Process 41080 (syz-executor.0) thread 0xffff800020abfb40 (333844) exclusive rwlock netlock r = 0 (0xffffffff824d5128) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 solock+0x5a sys/kern/uipc_socket2.c:282 #2 sosend+0x52c sys/kern/uipc_socket.c:512 #3 dofilewritev+0x1ac sys/kern/sys_generic.c:364 #4 sys_write+0x83 sys/kern/sys_generic.c:284 #5 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] #5 syscall+0x552 sys/arch/amd64/amd64/trap.c:555 #6 Xsyscall+0x128 exclusive mutex /syzkaller/managers/multicore/kernel/sys/netinet6/frag6.c:57 r = 0 (0xffffffff824d5590) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 frag6_input+0x237 sys/netinet6/frag6.c:183 #4 ip_deliver+0x353 sys/netinet/ip_input.c:665 #5 ip6_input_if+0x17d4 ip6_ours sys/netinet6/ip6_input.c:518 [inline] #5 ip6_input_if+0x17d4 sys/netinet6/ip6_input.c:340 #6 ipv6_input+0x48 sys/netinet6/ip6_input.c:171 #7 if_input_local+0x121 sys/net/if.c:783 #8 ip6_output+0xd59 #9 rip6_output+0x4c0 sys/netinet6/raw_ip6.c:481 #10 rip6_usrreq+0x5cd sys/netinet6/raw_ip6.c:670 #11 sosend+0x668 sys/kern/uipc_socket.c:524 #12 dofilewritev+0x1ac sys/kern/sys_generic.c:364 #13 sys_write+0x83 sys/kern/sys_generic.c:284 #14 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] #14 syscall+0x552 sys/arch/amd64/amd64/trap.c:555 #15 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9559 6569K 7074K 78643K 14569 0 0 pcb 14 8K 8K 78643K 134 0 0 rtable 86 3K 4K 78643K 609 0 0 ifaddr 66 14K 15K 78643K 208 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1559 0 0 iov 0 0K 16K 78643K 118 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1225 77K 77K 78643K 2826 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 18 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 520 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 1567 0 0 sigio 0 0K 0K 78643K 11 0 0 proc 53 50K 83K 78643K 1103 0 0 subproc 32 2K 2K 78643K 102 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 84 0 0 in_multi 22 1K 2K 78643K 123 0 0 ether_multi 1 0K 0K 78643K 7 0 0 mrt 0 0K 0K 78643K 8 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 343 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 102 21K 30K 78643K 5707 0 0 UVM aobj 66 4K 4K 78643K 76 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 2 0K 0K 78643K 108 0 0 NDP 17 0K 0K 78643K 60 0 0 temp 189 3555K 3623K 78643K 25284 0 0 kqueue 0 0K 0K 78643K 8 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 14 0 10 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 76 0 74 1 0 1 1 0 8 0 rtentry 112 92 0 59 2 0 2 2 0 8 1 unpcb 120 400 0 390 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 8436 0 8436 1 1 0 1 0 8 0 tcpcb 544 182 0 177 1 0 1 1 0 8 0 inpcb 280 552 0 544 1 0 1 1 0 8 0 rttmr 72 2 0 2 2 2 0 1 0 8 0 ip6q 72 1 0 0 1 0 1 1 0 8 0 ip6af 48 1 0 0 1 0 1 1 0 8 0 nd6 48 18 0 15 1 0 1 1 0 8 0 pkpcb 40 12 0 12 3 3 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 26 0 26 3 2 1 1 0 8 1 pffrag 232 1 0 1 1 1 0 1 0 482 0 pffrnode 88 1 0 1 1 1 0 1 0 8 0 pffrent 40 2 0 2 1 1 0 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 27 0 16 1 0 1 1 0 8 0 pfstkey 112 27 0 16 1 0 1 1 0 8 0 pfstate 328 27 0 16 2 0 2 2 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 377 0 230 12 0 12 12 0 8 2 art_table 32 378 0 230 2 0 2 2 0 8 0 art_node 16 90 0 60 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 1 2 1 1 1 0 8 0 semapl 112 518 0 508 1 0 1 1 0 8 0 shmpl 112 74 0 10 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3929 0 2507 47 0 47 47 0 8 0 ffsino 272 3929 0 2507 96 0 96 96 0 8 0 nchpl 144 6796 0 5160 62 0 62 62 0 8 0 uvmvnodes 72 5245 0 0 96 0 96 96 0 8 0 vnodes 200 5245 0 0 277 0 277 277 0 8 0 namei 1024 20486 0 20486 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 6 0 6 3 3 0 1 0 8 0 scxspl 192 19497 0 19497 14 11 3 7 0 8 3 plimitpl 152 110 0 102 1 0 1 1 0 8 0 sigapl 432 1755 0 1740 3 1 2 3 0 8 0 futexpl 56 19352 0 19352 1 0 1 1 0 8 1 knotepl 112 302 0 283 1 0 1 1 0 8 0 kqueuepl 104 240 0 238 1 0 1 1 0 8 0 pipepl 112 912 0 893 3 2 1 2 0 8 0 fdescpl 488 1756 0 1740 3 0 3 3 0 8 0 filepl 152 9676 0 9575 7 2 5 6 0 8 1 lockfpl 104 391 0 391 2 1 1 1 0 8 1 lockfspl 48 143 0 143 2 1 1 1 0 8 1 sessionpl 112 22 0 11 1 0 1 1 0 8 0 pgrppl 48 40 0 29 1 0 1 1 0 8 0 ucredpl 96 1367 0 1358 1 0 1 1 0 8 0 zombiepl 144 1740 0 1739 2 1 1 1 0 8 0 processpl 896 1772 0 1739 4 0 4 4 0 8 0 procpl 632 4703 0 4660 8 3 5 5 0 8 1 srpgc 64 12 0 12 4 3 1 1 0 8 1 sosppl 128 9 0 9 3 3 0 1 0 8 0 sockpl 384 1049 0 1029 4 1 3 3 0 8 0 mcl64k 65536 511 0 0 64 9 55 64 0 8 1 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 6 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 9 0 0 2 0 2 2 0 8 0 mcl4k 4096 16 0 0 2 0 2 2 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 198 0 0 22 0 22 22 0 8 0 mtagpl 80 22 0 0 1 0 1 1 0 8 0 mbufpl 256 606 0 0 36 0 36 36 0 8 0 bufpl 256 9421 0 2402 439 0 439 439 0 8 0 anonpl 16 176777 0 166859 87 35 52 67 0 124 0 amapchunkpl 152 10178 0 10072 25 19 6 12 0 158 1 amappl16 192 8384 0 7696 69 33 36 47 0 8 0 amappl15 184 339 0 338 2 1 1 1 0 8 0 amappl14 176 404 0 400 1 0 1 1 0 8 0 amappl13 168 17 0 16 1 0 1 1 0 8 0 amappl12 160 28 0 21 1 0 1 1 0 8 0 amappl11 152 828 0 813 1 0 1 1 0 8 0 amappl10 144 201 0 196 1 0 1 1 0 8 0 amappl9 136 819 0 816 1 0 1 1 0 8 0 amappl8 128 373 0 346 3 1 2 2 0 8 0 amappl7 120 174 0 167 1 0 1 1 0 8 0 amappl6 112 814 0 805 1 0 1 1 0 8 0 amappl5 104 171 0 155 1 0 1 1 0 8 0 amappl4 96 1685 0 1654 2 1 1 2 0 8 0 amappl3 88 891 0 879 1 0 1 1 0 8 0 amappl2 80 12866 0 12794 3 1 2 3 0 8 0 amappl1 72 46781 0 46351 26 16 10 20 0 8 0 amappl 80 5044 0 5007 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 dma64 64 259 0 259 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 75 0 10 2 0 2 2 0 8 0 uaddrrnd 24 1756 0 1740 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1756 0 1740 1 0 1 1 0 8 0 vmmpekpl 168 16568 0 16536 2 0 2 2 0 8 0 vmmpepl 168 219156 0 217342 174 69 105 105 0 357 20 vmsppl 368 1755 0 1740 2 0 2 2 0 8 0 pdppl 4096 3519 0 3480 7 1 6 6 0 8 0 pvpl 32 495040 0 481920 208 64 144 165 0 265 13 pmappl 232 1755 0 1740 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 694 0 14 20 0 20 20 0 8 0