panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd807f00e100+24 0xe67f348e56c42b75!=0xe67f340e39af1975 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *151893 77638 0 0 0 0K syz-executor.1 169403 77638 0 0 0x4000000 1 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82407a62) at panic+0x164 sys/kern/subr_prf.c:218 pool_cache_get(ffffffff828c6318) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff828c6318) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff828c6318,2) 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(ffff80000017c000) at vio_populate_rx_mbufs+0xf9 vio_add_rx_mbuf sys/dev/pv/if_vio.c:908 [inline] vio_populate_rx_mbufs(ffff80000017c000) at vio_populate_rx_mbufs+0xf9 sys/dev/pv/if_vio.c:951 vio_rx_intr(ffff80000017c050) at vio_rx_intr+0x69 intr_handler(ffff8000230e4c70,ffff800000256b80) at intr_handler+0x8f sys/arch/amd64/amd64/intr.c:536 Xintr_ioapic_edge19_untramp() at Xintr_ioapic_edge19_untramp+0x19f end of kernel end trace frame: 0x7f7ffffcb0f0, count: 6 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 0xfffffd807f00e100+24 0xe67f348e56c42b75!=0xe67f340e39af1975 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82407a62) at panic+0x164 sys/kern/subr_prf.c:218 pool_cache_get(ffffffff828c6318) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff828c6318) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff828c6318,2) 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(ffff80000017c000) at vio_populate_rx_mbufs+0xf9 vio_add_rx_mbuf sys/dev/pv/if_vio.c:908 [inline] vio_populate_rx_mbufs(ffff80000017c000) at vio_populate_rx_mbufs+0xf9 sys/dev/pv/if_vio.c:951 vio_rx_intr(ffff80000017c050) at vio_rx_intr+0x69 intr_handler(ffff8000230e4c70,ffff800000256b80) at intr_handler+0x8f sys/arch/amd64/amd64/intr.c:536 Xintr_ioapic_edge19_untramp() at Xintr_ioapic_edge19_untramp+0x19f end of kernel end trace frame: 0x7f7ffffcb0f0, count: -9 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff8000230e48f0 rbx 0xffff8000230e49a0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffff8000230e48b0 r9 0xffffffff82193d9f kprintf+0x16f r10 0x1 r11 0x492e3691e6f54ef9 r12 0x3000000008 r13 0xffff8000230e4900 r14 0x100 r15 0x1 rip 0xffffffff820d5aa8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000230e48e0 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=151893 stat=onproc flags process=0 proc=0 pri=69, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020e8f160,0xffff800020e8f8d8 process=0xffff800020ebc008 user=0xffff8000230df000, vmspace=0xfffffd807efffa10 estcpu=36, cpticks=3, pctcpu=0.0 user=0, sys=0, intr=1 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 71860 448381 9550 0 2 0 syz-executor.0 *77638 151893 63548 0 7 0 syz-executor.1 77638 169403 63548 0 7 0x4000000 syz-executor.1 9550 465053 68481 0 3 0x82 nanosleep syz-executor.0 73182 400961 0 0 3 0x14200 bored sosplice 63548 327898 68481 0 3 0x82 nanosleep syz-executor.1 68481 219947 74183 0 3 0x82 thrsleep syz-fuzzer 68481 201938 74183 0 3 0x4000082 nanosleep syz-fuzzer 68481 157845 74183 0 3 0x4000082 kqread syz-fuzzer 68481 516090 74183 0 3 0x4000082 thrsleep syz-fuzzer 68481 140150 74183 0 3 0x4000082 thrsleep syz-fuzzer 68481 85051 74183 0 3 0x4000082 thrsleep syz-fuzzer 68481 185264 74183 0 3 0x4000082 thrsleep syz-fuzzer 68481 354209 74183 0 3 0x4000082 thrsleep syz-fuzzer 74183 14087 16732 0 3 0x10008a pause ksh 16732 99305 45176 0 3 0x92 select sshd 56899 232025 1 0 3 0x100083 ttyin getty 45176 414270 1 0 3 0x80 select sshd 12870 336600 36825 74 3 0x100092 bpf pflogd 36825 53627 1 0 3 0x80 netio pflogd 10453 270823 5751 73 3 0x100090 kqread syslogd 5751 357532 1 0 3 0x100082 netio syslogd 13467 209516 1 77 3 0x100090 poll dhclient 97400 86420 1 0 3 0x80 poll dhclient 48011 235096 0 0 3 0x14200 bored smr 83619 445480 0 0 2 0x14200 zerothread 67126 455941 0 0 3 0x14200 aiodoned aiodoned 99337 208544 0 0 3 0x14200 syncer update 77251 66007 0 0 3 0x14200 cleaner cleaner 50494 250525 0 0 3 0x14200 reaper reaper 22100 502098 0 0 3 0x14200 pgdaemon pagedaemon 81630 113997 0 0 3 0x14200 bored crynlk 63477 195438 0 0 3 0x14200 bored crypto 49467 454127 0 0 3 0x40014200 acpi0 acpi0 29708 181939 0 0 3 0x40014200 idle1 88261 83309 0 0 2 0x14200 softnet 90543 480193 0 0 3 0x14200 bored systqmp 12997 129758 0 0 3 0x14200 bored systq 16306 151354 0 0 3 0x40014200 bored softclock 48789 259503 0 0 3 0x40014200 idle0 1 88828 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 77638 (syz-executor.1) thread 0xffff800020e8e290 (151893) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828d0898) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 intr_handler+0x5e sys/arch/amd64/amd64/intr.c:532 #2 Xintr_ioapic_edge19_untramp+0x19f ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9483 6464K 6659K 78643K 10790 0 pcb 13 8K 8K 78643K 37 0 rtable 106 3K 7K 78643K 325 0 ifaddr 50 11K 12K 78643K 111 0 counters 43 33K 34K 78643K 59 0 ioctlops 0 0K 4K 78643K 1487 0 iov 0 0K 16K 78643K 14 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1295 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 5 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 36 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 186 0 proc 61 63K 83K 78643K 485 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 194 0 in_multi 42 2K 2K 78643K 64 0 ether_multi 1 0K 0K 78643K 5 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 227 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 181 36K 36K 78643K 1577 0 UVM aobj 11 2K 2K 78643K 11 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 20 0 NDP 7 0K 0K 78643K 21 0 temp 80 3866K 3933K 78643K 2713 0 kqueue 3 4K 6K 78643K 5 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 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 88 23 0 21 1 0 1 1 0 8 0 rtentry 112 56 0 12 2 0 2 2 0 8 0 unpcb 120 97 0 87 1 0 1 1 0 8 0 syncache 272 6 0 6 2 2 0 1 0 8 0 tcpqe 32 1049 0 1049 1 1 0 1 0 8 0 tcpcb 592 170 0 158 3 0 3 3 0 8 2 inpcb 296 291 0 284 2 0 2 2 0 8 1 nd6 48 9 0 3 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 pfstscr 40 1 0 1 1 0 1 1 0 8 1 pffrent 40 2 0 2 1 0 1 1 0 8 1 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfrktable 1344 18 0 18 1 1 0 1 0 8 0 pfstitem 24 14 0 1 1 0 1 1 0 8 0 pfstkey 112 15 0 2 1 0 1 1 0 8 0 pfstate 328 15 0 2 2 0 2 2 0 8 0 pfrule 1360 25 0 18 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 233 0 44 12 0 12 12 0 8 0 art_table 32 234 0 44 2 0 2 2 0 8 0 art_node 16 55 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 8 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 34 0 24 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 dino2pl 256 1603 0 200 88 0 88 88 0 8 0 ffsino 272 1603 0 200 94 0 94 94 0 8 0 nchpl 144 2058 0 465 60 0 60 60 0 8 0 uvmvnodes 72 1706 0 0 32 0 32 32 0 8 0 vnodes 208 1706 0 0 90 0 90 90 0 8 0 namei 1024 5510 0 5510 1 0 1 1 0 8 1 percpumem 16 40 0 8 1 0 1 1 0 8 0 vcpupl 1984 1 0 0 1 0 1 1 0 8 0 vmpool 560 1 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 6 0 6 1 1 0 1 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 200 6057 0 6057 8 1 7 7 0 8 7 plimitpl 152 20 0 12 1 0 1 1 0 8 0 sigapl 424 399 0 366 4 0 4 4 0 8 0 futexpl 56 1905 0 1905 1 0 1 1 0 8 1 knotepl 112 76 0 56 1 0 1 1 0 8 0 kqueuepl 152 12 0 10 1 0 1 1 0 8 0 pipepl 304 100 0 89 2 0 2 2 0 8 1 fdescpl 496 383 0 366 3 0 3 3 0 8 0 filepl 152 2016 0 1914 5 0 5 5 0 8 1 lockfpl 104 47 0 46 1 0 1 1 0 8 0 lockfspl 48 18 0 17 1 0 1 1 0 8 0 sessionpl 120 19 0 8 1 0 1 1 0 8 0 pgrppl 48 19 0 8 1 0 1 1 0 8 0 ucredpl 96 122 0 113 1 0 1 1 0 8 0 zombiepl 144 366 0 366 1 0 1 1 0 8 1 processpl 1008 399 0 366 5 0 5 5 0 8 0 procpl 632 699 0 658 4 0 4 4 0 8 0 sockpl 400 414 0 395 5 1 4 4 0 8 2 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 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 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 171 0 0 21 0 21 21 0 8 0 mtagpl 96 11 0 0 1 0 1 1 0 8 0 mbufpl 256 201 0 0 13 0 13 13 0 8 0 bufpl 280 3604 0 129 249 0 249 249 0 8 0 anonpl 16 51954 0 37204 73 1 72 72 0 124 0 amapchunkpl 152 2054 0 1748 14 0 14 14 0 158 0 amappl16 192 1484 0 710 40 0 40 40 0 8 0 amappl15 184 9 0 7 1 0 1 1 0 8 0 amappl14 176 5 0 1 1 0 1 1 0 8 0 amappl13 168 95 0 92 1 0 1 1 0 8 0 amappl12 160 85 0 79 1 0 1 1 0 8 0 amappl11 152 57 0 42 1 0 1 1 0 8 0 amappl10 144 24 0 21 1 0 1 1 0 8 0 amappl9 136 367 0 366 1 0 1 1 0 8 0 amappl8 128 397 0 345 2 0 2 2 0 8 0 amappl7 120 130 0 117 1 0 1 1 0 8 0 amappl6 112 30 0 24 1 0 1 1 0 8 0 amappl5 104 276 0 259 1 0 1 1 0 8 0 amappl4 96 498 0 471 1 0 1 1 0 8 0 amappl3 88 125 0 115 1 0 1 1 0 8 0 amappl2 80 2113 0 2043 2 0 2 2 0 8 0 amappl1 72 19991 0 19554 23 13 10 18 0 8 0 amappl 80 1012 0 927 2 0 2 2 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 18 0 17 1 0 1 1 0 8 0 aobjpl 64 10 0 0 1 0 1 1 0 8 0 uaddrrnd 24 384 0 366 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 384 0 366 1 0 1 1 0 8 0 vmmpekpl 168 6997 0 6962 2 0 2 2 0 8 0 vmmpepl 168 55726 0 53665 127 8 119 119 0 357 27 vmsppl 368 383 0 366 2 0 2 2 0 8 0 pdppl 4096 775 0 733 6 0 6 6 0 8 0 pvpl 32 177380 0 159484 174 0 174 174 0 265 6 pmappl 232 383 0 366 3 1 2 2 0 8 1 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 256 0 6 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82407a62) at panic+0x164 sys/kern/subr_prf.c:218 pool_cache_get(ffffffff828c6318) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff828c6318) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff828c6318,2) 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(ffff80000017c000) at vio_populate_rx_mbufs+0xf9 vio_add_rx_mbuf sys/dev/pv/if_vio.c:908 [inline] vio_populate_rx_mbufs(ffff80000017c000) at vio_populate_rx_mbufs+0xf9 sys/dev/pv/if_vio.c:951 vio_rx_intr(ffff80000017c050) at vio_rx_intr+0x69 intr_handler(ffff8000230e4c70,ffff800000256b80) at intr_handler+0x8f sys/arch/amd64/amd64/intr.c:536 Xintr_ioapic_edge19_untramp() at Xintr_ioapic_edge19_untramp+0x19f end of kernel end trace frame: 0x7f7ffffcb0f0, count: -9 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff828d0690) at __mp_lock+0x12e __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828d0690) at __mp_lock+0x12e sys/kern/kern_lock.c:147 vn_ioctl(fffffd80680946a0,80044b02,ffff800020e95a00,ffff800020e8f8c8) at vn_ioctl+0x40 sys/kern/vfs_vnops.c:514 sys_ioctl(ffff800020e8f8c8,ffff800020e95b10,ffff800020e95b60) at sys_ioctl+0x4a5 syscall(ffff800020e95be0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e95be0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbdc75c9f450, count: 7 ddb{1}> trace x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff828d0690) at __mp_lock+0x12e __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828d0690) at __mp_lock+0x12e sys/kern/kern_lock.c:147 vn_ioctl(fffffd80680946a0,80044b02,ffff800020e95a00,ffff800020e8f8c8) at vn_ioctl+0x40 sys/kern/vfs_vnops.c:514 sys_ioctl(ffff800020e8f8c8,ffff800020e95b10,ffff800020e95b60) at sys_ioctl+0x4a5 syscall(ffff800020e95be0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e95be0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbdc75c9f450, count: -8