4.4o8#튎|>#މNp&JiW*[bC/H"}SEx/^'}v76/\/pԯ?U豤,N4{n{[bRIAR1M .m*sdwQ1[4iqCm?ɨ?/Zҹ&R]ReApanic: 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 *435988 28197 0 0 0x4000000 1 syz-executor.1 67518 85052 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(ffffffff82643958,9,0) at witness_checkorder+0x10cc sys/kern/subr_witness.c:820 __mp_lock(ffffffff82643750) at __mp_lock+0xa1 pageflttrap() at pageflttrap+0x6f sys/arch/amd64/amd64/trap.c:162 kerntrap(ffff800022da4d40) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,0,600,0,fffffd806875c854,fffffd8063ed7f40) at alltraps_kern_meltdown+0x7b frag6_input(ffff800022da50a8,ffff800022da50b4,2c,18) at frag6_input+0x7d2 sys/netinet6/frag6.c:321 ip_deliver(ffff800022da50a8,ffff800022da50b4,2c,18) at ip_deliver+0x353 sys/netinet/ip_input.c:665 ip6_input_if(ffff800022da50a8,ffff800022da50b4,29,0,ffff80000066d000) at ip6_input_if+0x17d4 ip6_ours sys/netinet6/ip6_input.c:518 [inline] ip6_input_if(ffff800022da50a8,ffff800022da50b4,29,0,ffff80000066d000) at ip6_input_if+0x17d4 sys/netinet6/ip6_input.c:340 ipv6_input(ffff80000066d000,fffffd807f02c100) at ipv6_input+0x48 sys/netinet6/ip6_input.c:171 if_input_local(ffff80000066d000,fffffd807f02c100,18) at if_input_local+0x121 sys/net/if.c:783 ip6_output(fffffd807d128e00,ffff800000a41800,fffffd806f6bb5e8,0,0,fffffd806f6bb578) at ip6_output+0xd59 rip6_output(fffffd807d128e00,fffffd80669e4018,ffff800022da5418,0) at rip6_output+0x4c0 sys/netinet6/raw_ip6.c:481 end trace frame: 0xffff800022da54b0, 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(ffffffff82643958,9,0) at witness_checkorder+0x10cc sys/kern/subr_witness.c:820 __mp_lock(ffffffff82643750) at __mp_lock+0xa1 pageflttrap() at pageflttrap+0x6f sys/arch/amd64/amd64/trap.c:162 kerntrap(ffff800022da4d40) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,0,600,0,fffffd806875c854,fffffd8063ed7f40) at alltraps_kern_meltdown+0x7b frag6_input(ffff800022da50a8,ffff800022da50b4,2c,18) at frag6_input+0x7d2 sys/netinet6/frag6.c:321 ip_deliver(ffff800022da50a8,ffff800022da50b4,2c,18) at ip_deliver+0x353 sys/netinet/ip_input.c:665 ip6_input_if(ffff800022da50a8,ffff800022da50b4,29,0,ffff80000066d000) at ip6_input_if+0x17d4 ip6_ours sys/netinet6/ip6_input.c:518 [inline] ip6_input_if(ffff800022da50a8,ffff800022da50b4,29,0,ffff80000066d000) at ip6_input_if+0x17d4 sys/netinet6/ip6_input.c:340 ipv6_input(ffff80000066d000,fffffd807f02c100) at ipv6_input+0x48 sys/netinet6/ip6_input.c:171 if_input_local(ffff80000066d000,fffffd807f02c100,18) at if_input_local+0x121 sys/net/if.c:783 ip6_output(fffffd807d128e00,ffff800000a41800,fffffd806f6bb5e8,0,0,fffffd806f6bb578) at ip6_output+0xd59 rip6_output(fffffd807d128e00,fffffd80669e4018,ffff800022da5418,0) at rip6_output+0x4c0 sys/netinet6/raw_ip6.c:481 rip6_usrreq(fffffd80669e4018,9,fffffd807d128e00,0,0,ffff800020acec78) at rip6_usrreq+0x5cd sys/netinet6/raw_ip6.c:670 sosend(fffffd80669e4018,0,ffff800022da5648,0,0,0) at sosend+0x668 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020acec78,3,ffff800022da5648,0,ffff800022da5750) at dofilewritev+0x1ac sys/kern/sys_generic.c:364 sys_write(ffff800020acec78,ffff800022da56e8,ffff800022da5750) at sys_write+0x83 sys/kern/sys_generic.c:284 syscall(ffff800022da57c0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022da57c0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,c,0,3,d5a1e006010) at Xsyscall+0x128 end of kernel end trace frame: 0xd5c31ca8e70, count: -20 ddb{1}> show registers rdi 0xffffffff81be9be7 db_enter+0x17 rsi 0x2f73 __ALIGN_SIZE+0x1f73 rbp 0xffff800022da4aa0 rbx 0xffff800022da4b50 rdx 0x2f74 __ALIGN_SIZE+0x1f74 rcx 0xffff800020b7c000 rax 0xffff800020b7c000 r8 0xffffffff8106c893 kprintf+0x173 r9 0x1 r10 0x25 r11 0xa6ca76785b82c8af r12 0x3000000008 r13 0xffff800022da4ab0 r14 0x100 r15 0x1 rip 0xffffffff81be9be8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022da4a90 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=435988 stat=onproc flags process=0 proc=4000000 pri=57, usrpri=57, nice=20 forw=0xffffffffffffffff, list=0xffff800020aceef0,0xffffffff8265c848 process=0xffff800020addc00 user=0xffff800022da0000, vmspace=0xfffffd807f00c8a0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 28197 513808 56407 0 2 0 syz-executor.1 *28197 435988 56407 0 7 0x4000000 syz-executor.1 31515 388583 2493 0 2 0 syz-executor.0 31515 522552 2493 0 3 0x4000080 kqread syz-executor.0 2493 81391 55443 0 3 0x82 nanosleep syz-executor.0 15339 223705 0 0 3 0x14200 bored sosplice 56407 461233 55443 0 2 0x482 syz-executor.1 55443 346990 53767 0 3 0x82 kqread syz-fuzzer 55443 119181 53767 0 3 0x4000082 thrsleep syz-fuzzer 55443 506413 53767 0 3 0x4000082 thrsleep syz-fuzzer 55443 41561 53767 0 3 0x4000082 thrsleep syz-fuzzer 55443 5050 53767 0 3 0x4000082 thrsleep syz-fuzzer 55443 330357 53767 0 3 0x4000082 thrsleep syz-fuzzer 55443 231884 53767 0 3 0x4000082 thrsleep syz-fuzzer 55443 90098 53767 0 3 0x4000082 thrsleep syz-fuzzer 55443 33954 53767 0 3 0x4000082 thrsleep syz-fuzzer 55443 516841 53767 0 3 0x4000082 thrsleep syz-fuzzer 53767 127242 13353 0 3 0x10008a pause ksh 13353 98063 62435 0 3 0x92 select sshd 13300 170835 1 0 3 0x100083 ttyin getty 62435 210080 1 0 3 0x80 select sshd 94382 352005 33955 74 3 0x100092 bpf pflogd 33955 176915 1 0 3 0x80 netio pflogd 9415 333262 59302 73 3 0x100090 kqread syslogd 59302 408404 1 0 3 0x100082 netio syslogd 27334 493614 1 77 3 0x100090 poll dhclient 27710 244845 1 0 3 0x80 poll dhclient 8654 184983 0 0 2 0x14200 zerothread 33681 187125 0 0 3 0x14200 aiodoned aiodoned 50077 172783 0 0 3 0x14200 syncer update 29134 472723 0 0 3 0x14200 cleaner cleaner 6134 347171 0 0 3 0x14200 reaper reaper 15843 254721 0 0 3 0x14200 pgdaemon pagedaemon 87567 510479 0 0 3 0x14200 bored crynlk 97247 20346 0 0 3 0x14200 bored crypto 83557 230450 0 0 3 0x40014200 acpi0 acpi0 47869 471071 0 0 3 0x40014200 idle1 65130 248494 0 0 3 0x14200 bored softnet 93640 268204 0 0 3 0x14200 bored systqmp 48144 63857 0 0 3 0x14200 bored systq 85052 67518 0 0 7 0x40014200 softclock 32933 133227 0 0 3 0x40014200 idle0 42109 342696 0 0 3 0x14200 bored smr 1 73853 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 (0xffffffff82519d70) #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 28197 (syz-executor.1) thread 0xffff800020acec78 (435988) exclusive rwlock netlock r = 0 (0xffffffff824bd118) #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 (0xffffffff82519d70) #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 9495 6405K 6911K 78643K 11251 0 0 pcb 14 8K 8K 78643K 41 0 0 rtable 108 4K 4K 78643K 311 0 0 ifaddr 50 12K 12K 78643K 91 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1483 0 0 iov 0 0K 16K 78643K 35 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1221 77K 77K 78643K 1463 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 4 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 37 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 276 0 0 sigio 0 0K 0K 78643K 9 0 0 proc 53 50K 83K 78643K 465 0 0 subproc 32 2K 2K 78643K 51 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 18 0 0 in_multi 33 2K 2K 78643K 57 0 0 ether_multi 1 0K 0K 78643K 5 0 0 mrt 0 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 241 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 96 21K 21K 78643K 1816 0 0 UVM aobj 10 2K 2K 78643K 10 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 2 0K 1K 78643K 20 0 0 NDP 9 0K 0K 78643K 25 0 0 temp 130 3549K 3615K 78643K 7785 0 0 kqueue 0 0K 0K 78643K 2 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 8 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 27 0 25 1 0 1 1 0 8 0 rtentry 112 56 0 12 2 0 2 2 0 8 0 unpcb 120 83 0 73 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 8381 0 8381 2 2 0 2 0 8 0 tcpcb 544 63 0 58 1 0 1 1 0 8 0 inpcb 280 168 0 160 2 1 1 2 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 9 0 3 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 0 1 1 0 8 1 ppxss 1128 5 0 5 2 1 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 21 0 5 1 0 1 1 0 8 0 pfstkey 112 21 0 5 1 0 1 1 0 8 0 pfstate 328 21 0 5 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 236 0 44 12 0 12 12 0 8 0 art_table 32 237 0 44 2 0 2 2 0 8 0 art_node 16 55 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 8 1 0 1 1 0 8 0 semapl 112 35 0 25 1 0 1 1 0 8 0 shmpl 112 8 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1828 0 402 47 0 47 47 0 8 0 ffsino 272 1828 0 402 96 0 96 96 0 8 0 nchpl 144 2384 0 749 62 0 62 62 0 8 0 uvmvnodes 72 2049 0 0 38 0 38 38 0 8 0 vnodes 200 2049 0 0 108 0 108 108 0 8 0 namei 1024 6801 0 6801 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 6470 0 6470 9 8 1 7 0 8 1 plimitpl 152 39 0 31 1 0 1 1 0 8 0 sigapl 432 473 0 457 3 1 2 3 0 8 0 futexpl 56 3067 0 3067 1 0 1 1 0 8 1 knotepl 112 122 0 103 1 0 1 1 0 8 0 kqueuepl 104 42 0 38 1 0 1 1 0 8 0 pipepl 112 294 0 273 1 0 1 1 0 8 0 fdescpl 488 474 0 457 3 0 3 3 0 8 0 filepl 152 2474 0 2367 6 1 5 5 0 8 0 lockfpl 104 102 0 102 2 1 1 1 0 8 1 lockfspl 48 33 0 33 2 1 1 1 0 8 1 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 21 0 10 1 0 1 1 0 8 0 ucredpl 96 265 0 256 1 0 1 1 0 8 0 zombiepl 144 457 0 457 2 1 1 1 0 8 1 processpl 896 490 0 457 4 0 4 4 0 8 0 procpl 632 1010 0 966 5 0 5 5 0 8 0 srpgc 64 2 0 2 1 0 1 1 0 8 1 sosppl 128 3 0 3 1 1 0 1 0 8 0 sockpl 384 284 0 264 4 1 3 3 0 8 0 mcl64k 65536 9 0 0 2 0 2 2 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 209 0 0 26 0 26 26 0 8 0 mtagpl 80 7 0 0 1 0 1 1 0 8 0 mbufpl 256 241 0 0 15 0 15 15 0 8 0 bufpl 256 6231 0 1166 317 0 317 317 0 8 0 anonpl 16 51707 0 41390 54 2 52 52 0 124 0 amapchunkpl 152 2452 0 2340 9 3 6 7 0 158 1 amappl16 192 1805 0 1106 36 0 36 36 0 8 1 amappl14 176 157 0 152 1 0 1 1 0 8 0 amappl13 168 7 0 7 1 1 0 1 0 8 0 amappl12 160 27 0 23 1 0 1 1 0 8 0 amappl11 152 64 0 48 1 0 1 1 0 8 0 amappl10 144 208 0 200 1 0 1 1 0 8 0 amappl9 136 614 0 611 1 0 1 1 0 8 0 amappl8 128 169 0 149 1 0 1 1 0 8 0 amappl7 120 165 0 158 1 0 1 1 0 8 0 amappl6 112 63 0 55 1 0 1 1 0 8 0 amappl5 104 135 0 121 1 0 1 1 0 8 0 amappl4 96 740 0 709 2 1 1 2 0 8 0 amappl3 88 290 0 280 1 0 1 1 0 8 0 amappl2 80 2773 0 2692 3 1 2 3 0 8 0 amappl1 72 20202 0 19750 25 15 10 20 0 8 0 amappl 80 1283 0 1243 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 9 0 0 1 0 1 1 0 8 0 uaddrrnd 24 474 0 457 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 474 0 457 1 0 1 1 0 8 0 vmmpekpl 168 7747 0 7714 2 0 2 2 0 8 0 vmmpepl 168 64302 0 62372 138 34 104 104 0 357 20 vmsppl 368 473 0 457 2 0 2 2 0 8 0 pdppl 4096 955 0 914 7 1 6 6 0 8 0 pvpl 32 177670 0 164113 149 16 133 133 0 265 5 pmappl 232 473 0 457 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 491 0 5 14 0 14 14 0 8 0