panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd807f02b700+24 0xf25aea7514ac2279!=0xf25aeaf57bd08b79 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *372672 46140 0 0 0 0K syz-executor.0 519031 13387 0 0x2 0x4000000 1 syz-fuzzer db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff8264eb50) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff8264eb50) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892 pool_get() at pool_get+0x91 sys/kern/subr_pool.c:572 m_clget(0,2,800) at m_clget+0x1c9 m_gethdr sys/kern/uipc_mbuf.c:283 [inline] m_clget(0,2,800) at m_clget+0x1c9 sys/kern/uipc_mbuf.c:400 vio_populate_rx_mbufs(ffff800000173000) at vio_populate_rx_mbufs+0xf9 vio_add_rx_mbuf sys/dev/pv/if_vio.c:908 [inline] vio_populate_rx_mbufs(ffff800000173000) at vio_populate_rx_mbufs+0xf9 sys/dev/pv/if_vio.c:951 vio_rx_intr(ffff800000173050) at vio_rx_intr+0x69 intr_handler(ffff800021b6d590,ffff80000024db00) at intr_handler+0x8f sys/arch/amd64/amd64/intr.c:529 Xintr_ioapic_edge19_untramp(0,ffffffff81b89686,570,0,0,ffff800020ab0018) at Xintr_ioapic_edge19_untramp+0x19f __sanitizer_cov_trace_const_cmp4(0,0) at __sanitizer_cov_trace_const_cmp4+0x50 trace_cmp sys/dev/kcov.c:139 [inline] __sanitizer_cov_trace_const_cmp4(0,0) at __sanitizer_cov_trace_const_cmp4+0x50 sys/dev/kcov.c:198 sys_clock_gettime(ffff800020ab0018,ffff800021b6d6e0,ffff800021b6d730) at sys_clock_gettime+0x86 sys/kern/kern_time.c:171 syscall(ffff800021b6d7b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b6d7b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,57,16,57,0,1e79aadb000) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd07e0, 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 pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd807f02b700+24 0xf25aea7514ac2279!=0xf25aeaf57bd08b79 ddb{0}> 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 pool_cache_get(ffffffff8264eb50) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff8264eb50) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892 pool_get() at pool_get+0x91 sys/kern/subr_pool.c:572 m_clget(0,2,800) at m_clget+0x1c9 m_gethdr sys/kern/uipc_mbuf.c:283 [inline] m_clget(0,2,800) at m_clget+0x1c9 sys/kern/uipc_mbuf.c:400 vio_populate_rx_mbufs(ffff800000173000) at vio_populate_rx_mbufs+0xf9 vio_add_rx_mbuf sys/dev/pv/if_vio.c:908 [inline] vio_populate_rx_mbufs(ffff800000173000) at vio_populate_rx_mbufs+0xf9 sys/dev/pv/if_vio.c:951 vio_rx_intr(ffff800000173050) at vio_rx_intr+0x69 intr_handler(ffff800021b6d590,ffff80000024db00) at intr_handler+0x8f sys/arch/amd64/amd64/intr.c:529 Xintr_ioapic_edge19_untramp(0,ffffffff81b89686,570,0,0,ffff800020ab0018) at Xintr_ioapic_edge19_untramp+0x19f __sanitizer_cov_trace_const_cmp4(0,0) at __sanitizer_cov_trace_const_cmp4+0x50 trace_cmp sys/dev/kcov.c:139 [inline] __sanitizer_cov_trace_const_cmp4(0,0) at __sanitizer_cov_trace_const_cmp4+0x50 sys/dev/kcov.c:198 sys_clock_gettime(ffff800020ab0018,ffff800021b6d6e0,ffff800021b6d730) at sys_clock_gettime+0x86 sys/kern/kern_time.c:171 syscall(ffff800021b6d7b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b6d7b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,57,16,57,0,1e79aadb000) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd07e0, count: -13 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800021b6d210 rbx 0xffff800021b6d2c0 rdx 0xffffffff82516ff0 cpu_info_full_primary+0x1ff0 rcx 0xffffffff82516ff0 cpu_info_full_primary+0x1ff0 rax 0xffffffff82516ff0 cpu_info_full_primary+0x1ff0 r8 0xffffffff8142715f kprintf+0x16f r9 0x1 r10 0x25 r11 0x36f44d441c7f6117 r12 0x3000000008 r13 0xffff800021b6d220 r14 0x100 r15 0x1 rip 0xffffffff81126748 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021b6d200 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=372672 stat=onproc flags process=0 proc=0 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0780,0xffff800020ab1170 process=0xffff800020adc000 user=0xffff800021b68000, vmspace=0xfffffd807f00b450 estcpu=32, cpticks=10, pctcpu=0.0 user=0, sys=0, intr=1 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND *46140 372672 17920 0 7 0 syz-executor.0 46140 208624 17920 0 3 0x4000080 ttyin syz-executor.0 46140 241502 17920 0 3 0x4000080 msgwait syz-executor.0 17920 10235 13387 0 3 0x82 nanosleep syz-executor.0 73175 272015 13387 0 3 0x82 piperd syz-executor.1 44342 262489 0 0 3 0x14200 bored sosplice 13387 155021 99070 0 3 0x82 thrsleep syz-fuzzer 13387 42281 99070 0 3 0x4000082 nanosleep syz-fuzzer 13387 203027 99070 0 3 0x4000082 thrsleep syz-fuzzer 13387 473520 99070 0 3 0x4000082 thrsleep syz-fuzzer 13387 295099 99070 0 3 0x4000082 thrsleep syz-fuzzer 13387 485385 99070 0 3 0x4000082 thrsleep syz-fuzzer 13387 57963 99070 0 3 0x4000082 thrsleep syz-fuzzer 13387 250747 99070 0 3 0x4000082 thrsleep syz-fuzzer 13387 519031 99070 0 7 0x4000002 syz-fuzzer 13387 43345 99070 0 3 0x4000082 kqread syz-fuzzer 99070 420432 26048 0 3 0x10008a pause ksh 26048 508769 98696 0 3 0x92 select sshd 70925 137301 1 0 3 0x100083 ttyin getty 98696 83529 1 0 3 0x80 select sshd 76935 362300 75833 74 3 0x100092 bpf pflogd 75833 392406 1 0 3 0x80 netio pflogd 89746 138792 19103 73 3 0x100090 kqread syslogd 19103 327083 1 0 3 0x100082 netio syslogd 1506 470559 1 77 3 0x100090 poll dhclient 76862 209805 1 0 3 0x80 poll dhclient 53196 321286 0 0 2 0x14200 zerothread 13266 294347 0 0 3 0x14200 aiodoned aiodoned 75941 92471 0 0 3 0x14200 syncer update 68543 148108 0 0 3 0x14200 cleaner cleaner 20700 236663 0 0 3 0x14200 reaper reaper 7534 69927 0 0 3 0x14200 pgdaemon pagedaemon 35666 229 0 0 3 0x14200 bored crynlk 96725 34996 0 0 3 0x14200 bored crypto 45042 215395 0 0 3 0x40014200 acpi0 acpi0 83217 427304 0 0 3 0x40014200 idle1 30149 192116 0 0 2 0x14200 softnet 69198 16146 0 0 3 0x14200 bored systqmp 91808 417805 0 0 3 0x14200 bored systq 68608 21978 0 0 3 0x40014200 bored softclock 69190 133286 0 0 3 0x40014200 idle0 15536 20833 0 0 3 0x14200 bored smr 1 224709 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 46140 (syz-executor.0) thread 0xffff800020ab0018 (372672) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff826603d0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 intr_handler+0x5e sys/arch/amd64/amd64/intr.c:525 #2 Xintr_ioapic_edge19_untramp+0x19f #3 __sanitizer_cov_trace_const_cmp4+0x50 trace_cmp sys/dev/kcov.c:139 [inline] #3 __sanitizer_cov_trace_const_cmp4+0x50 sys/dev/kcov.c:198 #4 sys_clock_gettime+0x86 sys/kern/kern_time.c:171 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #6 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9493 6405K 6778K 78643K 10972 0 0 pcb 13 8K 8K 78643K 51 0 0 rtable 102 3K 4K 78643K 314 0 0 ifaddr 52 12K 12K 78643K 80 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1487 0 0 iov 0 0K 24K 78643K 27 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 77K 78643K 1373 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 5 0 0 VM map 6 3K 3K 78643K 10 0 0 sem 12 0K 1K 78643K 39 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 209 0 0 sigio 0 0K 0K 78643K 4 0 0 proc 60 63K 95K 78643K 527 0 0 subproc 32 2K 2K 78643K 68 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 8 0 0 in_multi 35 2K 2K 78643K 63 0 0 ether_multi 1 0K 0K 78643K 4 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 48 212K 212K 78643K 48 0 0 exec 0 0K 1K 78643K 249 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 106 54K 56K 78643K 1638 0 0 UVM aobj 23 2K 2K 78643K 23 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 32 0 0 NDP 11 0K 0K 78643K 22 0 0 temp 120 3547K 3612K 78643K 5334 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 8 0 3 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 172 0 170 1 0 1 1 0 8 0 rtentry 112 65 0 24 2 0 2 2 0 8 0 unpcb 120 113 0 103 1 0 1 1 0 8 0 syncache 264 7 0 7 3 2 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 544 69 0 64 1 0 1 1 0 8 0 inpcb 280 413 0 405 2 0 2 2 0 8 1 nd6 48 10 0 6 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1128 3 0 3 1 1 0 1 0 8 0 pffrag 232 2 0 2 1 1 0 1 0 482 0 pffrnode 88 2 0 2 1 1 0 1 0 8 0 pffrent 40 90 0 90 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 29 0 2 1 0 1 1 0 8 0 pfstkey 112 29 0 2 1 0 1 1 0 8 0 pfstate 328 29 0 2 3 0 3 3 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 317 0 106 15 0 15 15 0 8 1 art_table 32 318 0 106 2 0 2 2 0 8 0 art_node 16 64 0 27 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 6 1 1 0 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 37 0 27 1 0 1 1 0 8 0 shmpl 112 21 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1655 0 253 46 0 46 46 0 8 0 ffsino 272 1655 0 253 95 1 94 95 0 8 0 nchpl 144 2140 0 1691 61 34 27 61 0 8 7 uvmvnodes 72 1820 0 0 34 0 34 34 0 8 0 vnodes 208 1820 0 0 96 0 96 96 0 8 0 namei 1024 6003 0 6003 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 552 8 0 4 1 0 1 1 0 8 0 scxspl 192 5907 0 5907 8 3 5 7 0 8 5 plimitpl 152 22 0 13 1 0 1 1 0 8 0 sigapl 432 403 0 388 3 1 2 3 0 8 0 futexpl 56 4626 0 4626 1 0 1 1 0 8 1 knotepl 112 104 0 85 1 0 1 1 0 8 0 kqueuepl 104 33 0 30 1 0 1 1 0 8 0 pipepl 112 248 0 229 1 0 1 1 0 8 0 fdescpl 488 404 0 388 3 0 3 3 0 8 0 filepl 152 2754 0 2650 7 1 6 6 0 8 2 lockfpl 104 79 0 78 1 0 1 1 0 8 0 lockfspl 48 27 0 26 1 0 1 1 0 8 0 sessionpl 112 20 0 9 1 0 1 1 0 8 0 pgrppl 48 30 0 19 1 0 1 1 0 8 0 ucredpl 96 185 0 176 1 0 1 1 0 8 0 zombiepl 144 388 0 388 1 0 1 1 0 8 1 processpl 896 420 0 388 4 0 4 4 0 8 0 procpl 632 789 0 746 5 0 5 5 0 8 1 srpgc 64 4 0 4 1 0 1 1 0 8 1 sosppl 128 8 0 8 1 0 1 1 0 8 1 sockpl 384 712 0 692 4 0 4 4 0 8 1 mcl64k 65536 11 0 0 2 0 2 2 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 5 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 12 0 0 2 0 2 2 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 163 0 0 20 0 20 20 0 8 0 mtagpl 80 8 0 0 1 0 1 1 0 8 0 mbufpl 256 236 0 0 15 0 15 15 0 8 0 bufpl 256 6584 0 1315 330 0 330 330 0 8 0 anonpl 16 53617 0 38607 73 1 72 72 0 124 0 amapchunkpl 152 2392 0 2280 14 2 12 12 0 158 7 amappl16 192 1697 0 698 51 0 51 51 0 8 0 amappl15 184 145 0 145 1 0 1 1 0 8 1 amappl14 176 60 0 58 1 0 1 1 0 8 0 amappl12 160 4 0 3 2 1 1 1 0 8 0 amappl11 152 77 0 58 1 0 1 1 0 8 0 amappl10 144 15 0 10 1 0 1 1 0 8 0 amappl9 136 700 0 694 1 0 1 1 0 8 0 amappl8 128 257 0 227 2 0 2 2 0 8 0 amappl7 120 48 0 43 1 0 1 1 0 8 0 amappl6 112 85 0 69 1 0 1 1 0 8 0 amappl5 104 150 0 136 1 0 1 1 0 8 0 amappl4 96 662 0 632 1 0 1 1 0 8 0 amappl3 88 133 0 126 1 0 1 1 0 8 0 amappl2 80 2229 0 2156 3 0 3 3 0 8 0 amappl1 72 19113 0 18666 25 15 10 20 0 8 0 amappl 80 1069 0 1028 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 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 22 0 0 1 0 1 1 0 8 0 uaddrrnd 24 412 0 388 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 412 0 388 1 0 1 1 0 8 0 vmmpekpl 168 7409 0 7374 2 0 2 2 0 8 0 vmmpepl 168 58016 0 55858 142 9 133 133 0 357 34 vmsppl 368 403 0 388 2 0 2 2 0 8 0 pdppl 4096 831 0 788 6 0 6 6 0 8 0 pvpl 32 179881 0 161693 174 0 174 174 0 265 4 pmappl 232 411 0 392 2 0 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 499 0 4 15 0 15 15 0 8 0