login: panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd806825c200+16 0x0!=0x7664e24939b94088 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 77026 37078 0 0 0 1 syz-executor.1 *225437 37078 0 0 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8240bdef) at panic+0x164 sys/kern/subr_prf.c:218 pool_cache_get(ffffffff828f7de8) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff828f7de8) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff828f7de8,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_gethdr(2,2) at m_gethdr+0x4c sys/kern/uipc_mbuf.c:283 ip_fragment(fffffd806825c800,ffff80000017c2a8,5b4) at ip_fragment+0x13a sys/netinet/ip_output.c:680 ip_output(fffffd806825c800,0,fffffd806f668e50,0,0,fffffd806f668de0) at ip_output+0xfd7 sys/netinet/ip_output.c:499 udp_output(fffffd806f668de0,fffffd806825c800,0,0) at udp_output+0x5af sys/netinet/udp_usrreq.c:1017 sosend(fffffd80689cb4e0,0,ffff8000230fe3d0,0,0,0) at sosend+0x671 sys/kern/uipc_socket.c:555 sendit(ffff800020e98290,6,ffff8000230fe4b0,0,ffff8000230fe590) at sendit+0x52b sys/kern/uipc_syscalls.c:657 sys_sendto(ffff800020e98290,ffff8000230fe548,ffff8000230fe590) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:522 syscall(ffff8000230fe610) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000230fe610) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8052b4ad8b0, 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 0xfffffd806825c200+16 0x0!=0x7664e24939b94088 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8240bdef) at panic+0x164 sys/kern/subr_prf.c:218 pool_cache_get(ffffffff828f7de8) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff828f7de8) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff828f7de8,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_gethdr(2,2) at m_gethdr+0x4c sys/kern/uipc_mbuf.c:283 ip_fragment(fffffd806825c800,ffff80000017c2a8,5b4) at ip_fragment+0x13a sys/netinet/ip_output.c:680 ip_output(fffffd806825c800,0,fffffd806f668e50,0,0,fffffd806f668de0) at ip_output+0xfd7 sys/netinet/ip_output.c:499 udp_output(fffffd806f668de0,fffffd806825c800,0,0) at udp_output+0x5af sys/netinet/udp_usrreq.c:1017 sosend(fffffd80689cb4e0,0,ffff8000230fe3d0,0,0,0) at sosend+0x671 sys/kern/uipc_socket.c:555 sendit(ffff800020e98290,6,ffff8000230fe4b0,0,ffff8000230fe590) at sendit+0x52b sys/kern/uipc_syscalls.c:657 sys_sendto(ffff800020e98290,ffff8000230fe548,ffff8000230fe590) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:522 syscall(ffff8000230fe610) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000230fe610) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8052b4ad8b0, count: -13 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff8000230fde40 rbx 0xffff8000230fdef0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffff8000230fde00 r9 0xffffffff81c9883f kprintf+0x16f r10 0x1 r11 0x229bb1a3c386d9a6 r12 0x3000000008 r13 0xffff8000230fde50 r14 0x100 r15 0x1 rip 0xffffffff81c6ddc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000230fde30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=225437 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800020e98c70,0xffffffff828ed090 process=0xffff800020e9a3f8 user=0xffff8000230f9000, vmspace=0xfffffd807efff730 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 37078 77026 18712 0 7 0 syz-executor.1 *37078 225437 18712 0 7 0x4000000 syz-executor.1 12922 293425 9960 0 3 0x82 nanosleep syz-executor.0 63191 223409 0 0 3 0x14200 bored sosplice 18712 307460 9960 0 3 0x82 nanosleep syz-executor.1 9960 293467 53732 0 3 0x82 thrsleep syz-fuzzer 9960 443801 53732 0 3 0x4000082 nanosleep syz-fuzzer 9960 196055 53732 0 3 0x4000082 thrsleep syz-fuzzer 9960 112241 53732 0 3 0x4000082 thrsleep syz-fuzzer 9960 63937 53732 0 3 0x4000082 nanosleep syz-fuzzer 9960 409477 53732 0 3 0x4000082 thrsleep syz-fuzzer 9960 350238 53732 0 3 0x4000082 kqread syz-fuzzer 9960 288010 53732 0 3 0x4000082 thrsleep syz-fuzzer 53732 142274 14465 0 3 0x10008a pause ksh 14465 188317 32367 0 3 0x92 select sshd 62158 519441 1 0 3 0x100083 ttyin getty 32367 284126 1 0 3 0x80 select sshd 99515 208357 85317 74 3 0x100092 bpf pflogd 85317 360221 1 0 3 0x80 netio pflogd 11054 201176 75228 73 3 0x100090 kqread syslogd 75228 485145 1 0 3 0x100082 netio syslogd 78669 14539 1 77 3 0x100090 poll dhclient 96052 188289 1 0 3 0x80 poll dhclient 75290 172353 0 0 3 0x14200 bored smr 97368 270694 0 0 3 0x14200 pgzero zerothread 33762 462653 0 0 3 0x14200 aiodoned aiodoned 79799 240554 0 0 3 0x14200 syncer update 31379 153747 0 0 3 0x14200 cleaner cleaner 42952 421612 0 0 3 0x14200 reaper reaper 50470 25190 0 0 3 0x14200 pgdaemon pagedaemon 44430 132439 0 0 3 0x14200 bored crynlk 52643 391093 0 0 3 0x14200 bored crypto 9817 348451 0 0 3 0x40014200 acpi0 acpi0 61025 296382 0 0 3 0x40014200 idle1 48478 511610 0 0 3 0x14200 bored softnet 75907 28974 0 0 3 0x14200 bored systqmp 75510 266811 0 0 3 0x14200 bored systq 11769 136751 0 0 3 0x40014200 bored softclock 67812 57401 0 0 3 0x40014200 idle0 1 259891 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 37078 (syz-executor.1) thread 0xffff800020e98290 (225437) exclusive rwlock netlock r = 0 (0xffffffff826f2960) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 solock+0x5a sys/kern/uipc_socket2.c:282 #2 sosend+0x559 sys/kern/uipc_socket.c:543 #3 sendit+0x52b sys/kern/uipc_syscalls.c:657 #4 sys_sendto+0x80 sys/kern/uipc_syscalls.c:522 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #6 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9547 6554K 6937K 78643K 11344 0 pcb 13 8K 8K 78643K 65 0 rtable 105 4K 8K 78643K 549 0 ifaddr 96 17K 18K 78643K 200 0 counters 45 34K 34K 78643K 63 0 ioctlops 0 0K 4K 78643K 1539 0 iov 0 0K 12K 78643K 55 0 mount 1 1K 1K 78643K 1 0 vnodes 1222 77K 77K 78643K 1494 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 11 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 185 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 597 0 sigio 0 0K 0K 78643K 14 0 proc 62 63K 95K 78643K 575 0 subproc 32 2K 2K 78643K 68 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 25 0 in_multi 67 3K 3K 78643K 167 0 ether_multi 1 0K 0K 78643K 4 0 mrt 0 0K 0K 78643K 2 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 271 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 186 28K 37K 78643K 2951 0 UVM aobj 25 7K 7K 78643K 30 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 34 0 NDP 16 0K 0K 78643K 45 0 temp 145 3870K 3976K 78643K 4542 0 kqueue 3 4K 12K 78643K 39 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 12 0 6 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 88 41 0 39 1 0 1 1 0 8 0 rtentry 112 95 0 54 2 0 2 2 0 8 0 unpcb 120 673 0 662 1 0 1 1 0 8 0 syncache 272 9 0 9 2 1 1 1 0 8 1 tcpqe 32 163 0 163 1 1 0 1 0 8 0 tcpcb 592 135 0 122 3 1 2 2 0 8 1 inpcb 296 848 0 839 4 2 2 2 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 6 0 6 1 1 0 1 0 8 0 nd6 48 27 0 22 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 1 0 1 0 8 0 ppxss 1136 3 0 3 2 1 1 1 0 8 1 pffrag 232 7 0 6 2 1 1 1 0 482 0 pffrnode 88 7 0 6 2 1 1 1 0 8 0 pffrent 40 186 0 185 2 1 1 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 pfrktable 1344 52 0 52 3 2 1 1 0 8 1 pfstitem 24 49 0 15 1 0 1 1 0 8 0 pfstkey 112 49 0 15 1 0 1 1 0 8 0 pfstate 328 49 0 15 3 0 3 3 0 8 0 pfrule 1360 28 0 24 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 343 0 155 13 1 12 12 0 8 0 art_table 32 344 0 155 2 0 2 2 0 8 0 art_node 16 94 0 57 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 7 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 180 0 170 1 0 1 1 0 8 0 shmpl 112 27 0 5 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2137 0 732 88 0 88 88 0 8 0 ffsino 272 2137 0 732 94 0 94 94 0 8 0 nchpl 144 3152 0 1555 60 0 60 60 0 8 0 uvmvnodes 72 2381 0 0 44 0 44 44 0 8 0 vnodes 208 2381 0 0 126 0 126 126 0 8 0 namei 1024 8886 0 8886 4 3 1 1 0 8 1 percpumem 16 42 0 9 1 0 1 1 0 8 0 pfiaddrpl 120 16 0 16 3 2 1 1 0 8 1 scxspl 200 9131 0 9131 12 9 3 7 0 8 3 plimitpl 152 58 0 50 1 0 1 1 0 8 0 sigapl 424 807 0 774 4 0 4 4 0 8 0 futexpl 56 7335 0 7335 4 3 1 1 0 8 1 knotepl 112 133 0 113 1 0 1 1 0 8 0 kqueuepl 152 86 0 83 1 0 1 1 0 8 0 pipepl 304 158 0 147 2 0 2 2 0 8 1 fdescpl 496 791 0 774 3 0 3 3 0 8 0 filepl 152 4687 0 4580 8 3 5 6 0 8 0 lockfpl 104 125 0 124 1 0 1 1 0 8 0 lockfspl 48 40 0 39 1 0 1 1 0 8 0 sessionpl 120 20 0 9 1 0 1 1 0 8 0 pgrppl 48 22 0 11 1 0 1 1 0 8 0 ucredpl 96 559 0 548 1 0 1 1 0 8 0 zombiepl 144 775 0 774 1 0 1 1 0 8 0 processpl 1008 807 0 774 5 0 5 5 0 8 0 procpl 632 2006 0 1965 4 0 4 4 0 8 0 sosppl 144 2 0 2 1 1 0 1 0 8 0 sockpl 400 1568 0 1546 8 4 4 5 0 8 1 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 5 0 0 1 0 1 1 0 8 0 mcl9k 9216 6 0 0 1 0 1 1 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 7 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 179 0 0 22 0 22 22 0 8 0 mtagpl 96 24 0 0 1 0 1 1 0 8 0 mbufpl 256 347 0 0 20 0 20 20 0 8 0 bufpl 280 4325 0 127 300 0 300 300 0 8 0 anonpl 16 103559 0 85354 96 8 88 88 0 124 11 amapchunkpl 152 5087 0 4798 19 3 16 17 0 158 1 amappl16 192 3439 0 2578 53 2 51 51 0 8 7 amappl15 184 35 0 34 3 2 1 1 0 8 0 amappl14 176 271 0 266 1 0 1 1 0 8 0 amappl13 168 175 0 172 1 0 1 1 0 8 0 amappl12 160 154 0 149 1 0 1 1 0 8 0 amappl11 152 61 0 46 1 0 1 1 0 8 0 amappl10 144 23 0 17 1 0 1 1 0 8 0 amappl9 136 482 0 478 1 0 1 1 0 8 0 amappl8 128 564 0 499 3 0 3 3 0 8 0 amappl7 120 132 0 119 1 0 1 1 0 8 0 amappl6 112 32 0 26 1 0 1 1 0 8 0 amappl5 104 546 0 528 1 0 1 1 0 8 0 amappl4 96 655 0 624 1 0 1 1 0 8 0 amappl3 88 538 0 527 1 0 1 1 0 8 0 amappl2 80 5271 0 5191 2 0 2 2 0 8 0 amappl1 72 32843 0 32378 23 13 10 18 0 8 0 amappl 80 2345 0 2260 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 29 0 5 1 0 1 1 0 8 0 uaddrrnd 24 791 0 774 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 791 0 774 1 0 1 1 0 8 0 vmmpekpl 168 9826 0 9789 2 0 2 2 0 8 0 vmmpepl 168 109043 0 106828 163 37 126 128 0 357 29 vmsppl 368 790 0 774 2 0 2 2 0 8 0 pdppl 4096 1589 0 1548 7 1 6 6 0 8 0 pvpl 32 305516 0 284027 230 24 206 206 0 265 31 pmappl 232 790 0 774 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 272 0 13 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(ffffffff8240bdef) at panic+0x164 sys/kern/subr_prf.c:218 pool_cache_get(ffffffff828f7de8) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff828f7de8) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff828f7de8,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_gethdr(2,2) at m_gethdr+0x4c sys/kern/uipc_mbuf.c:283 ip_fragment(fffffd806825c800,ffff80000017c2a8,5b4) at ip_fragment+0x13a sys/netinet/ip_output.c:680 ip_output(fffffd806825c800,0,fffffd806f668e50,0,0,fffffd806f668de0) at ip_output+0xfd7 sys/netinet/ip_output.c:499 udp_output(fffffd806f668de0,fffffd806825c800,0,0) at udp_output+0x5af sys/netinet/udp_usrreq.c:1017 sosend(fffffd80689cb4e0,0,ffff8000230fe3d0,0,0,0) at sosend+0x671 sys/kern/uipc_socket.c:555 sendit(ffff800020e98290,6,ffff8000230fe4b0,0,ffff8000230fe590) at sendit+0x52b sys/kern/uipc_syscalls.c:657 sys_sendto(ffff800020e98290,ffff8000230fe548,ffff8000230fe590) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:522 syscall(ffff8000230fe610) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000230fe610) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8052b4ad8b0, count: -13 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 end of kernel end trace frame: 0x7f7ffffeda60, count: 12 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 end of kernel end trace frame: 0x7f7ffffeda60, count: -3