panic: pool_do_get: mbufpl free list modified: page 0xfffffd805c50d000; item addr 0xfffffd805c50d100; offset 0x0=0x0 != 0x93d4873620bd925e Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *275275 90990 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8247721f) at panic+0x164 sys/kern/subr_prf.c:218 pool_do_get(ffffffff827f9948,2,ffff80001d722998) at pool_do_get+0x42a sys/kern/subr_pool.c:738 pool_get(ffffffff827f9948,2) at pool_get+0xb5 sys/kern/subr_pool.c:581 m_copym(fffffd805c50d000,0,580,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd805c50d000,0,580,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000ac3980) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805daaa648,9,fffffd805c50d000,0,0,ffff80001d71ceb0) at tcp_usrreq+0xa54 sosend(fffffd805daaa648,0,ffff80001d722e78,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71ceb0,4,ffff80001d722e78,0,ffff80001d722f60) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71ceb0,ffff80001d722f10,ffff80001d722f60) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d722fe0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffddd40, count: 3 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic pool_do_get: mbufpl free list modified: page 0xfffffd805c50d000; item addr 0xfffffd805c50d100; offset 0x0=0x0 != 0x93d4873620bd925e ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8247721f) at panic+0x164 sys/kern/subr_prf.c:218 pool_do_get(ffffffff827f9948,2,ffff80001d722998) at pool_do_get+0x42a sys/kern/subr_pool.c:738 pool_get(ffffffff827f9948,2) at pool_get+0xb5 sys/kern/subr_pool.c:581 m_copym(fffffd805c50d000,0,580,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd805c50d000,0,580,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000ac3980) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805daaa648,9,fffffd805c50d000,0,0,ffff80001d71ceb0) at tcp_usrreq+0xa54 sosend(fffffd805daaa648,0,ffff80001d722e78,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71ceb0,4,ffff80001d722e78,0,ffff80001d722f60) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71ceb0,ffff80001d722f10,ffff80001d722f60) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d722fe0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffddd40, count: -12 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d722800 rbx 0xffff80001d7228b0 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff82040b7f kprintf+0x15f r9 0x1 r10 0x2 r11 0x14e853c89910e490 r12 0x3000000008 r13 0xffff80001d722810 r14 0x100 r15 0x1 rip 0xffffffff8130eb58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d7227f0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=275275 stat=onproc flags process=12 proc=0 pri=24, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff80001d71d600,0xffff80001d71c9e0 process=0xffff80001d706e98 user=0xffff80001d71e000, vmspace=0xfffffd806bc0a770 estcpu=1, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 71125 198400 0 0 3 0x14280 nfsidl nfsio 21606 297461 0 0 3 0x14280 nfsidl nfsio 77722 49128 0 0 3 0x14280 nfsidl nfsio 36362 197063 0 0 3 0x14280 nfsidl nfsio 24440 14906 0 0 3 0x14280 nfsidl nfsio 60758 207234 0 0 3 0x14280 nfsidl nfsio 3488 92941 0 0 3 0x14280 nfsidl nfsio 87917 269841 0 0 3 0x14280 nfsidl nfsio 80643 280683 0 0 3 0x14280 nfsidl nfsio 31862 42447 0 0 3 0x14280 nfsidl nfsio 18367 385222 0 0 3 0x14280 nfsidl nfsio 47724 333561 0 0 3 0x14280 nfsidl nfsio 62085 102226 0 0 3 0x14280 nfsidl nfsio 22781 254937 0 0 3 0x14280 nfsidl nfsio 70067 499569 0 0 3 0x14280 nfsidl nfsio 58967 265010 0 0 3 0x14280 nfsidl nfsio 92185 53438 0 0 3 0x14280 nfsidl nfsio 53850 65972 0 0 3 0x14280 nfsidl nfsio 62355 364588 0 0 3 0x14280 nfsidl nfsio 99539 203193 0 0 3 0x14280 nfsidl nfsio 31455 26468 54321 0 3 0x82 piperd syz-executor.0 28779 462113 54321 0 3 0x82 piperd syz-executor.1 54321 184467 73303 0 3 0x82 thrsleep syz-fuzzer 54321 335894 73303 0 3 0x4000082 nanosleep syz-fuzzer 54321 470589 73303 0 3 0x4000082 thrsleep syz-fuzzer 54321 218809 73303 0 3 0x4000082 thrsleep syz-fuzzer 54321 483090 73303 0 3 0x4000082 thrsleep syz-fuzzer 54321 212195 73303 0 2 0x4000002 syz-fuzzer 54321 376910 73303 0 3 0x4000082 thrsleep syz-fuzzer 73303 370787 90990 0 3 0x10008a pause ksh *90990 275275 27820 0 7 0x12 sshd 93223 6393 1 0 3 0x100083 ttyin getty 27820 452408 1 0 3 0x80 select sshd 49908 144522 75747 73 3 0x100090 kqread syslogd 75747 268911 1 0 3 0x100082 netio syslogd 78556 357558 1 77 3 0x100090 poll dhclient 84581 355720 1 0 3 0x80 poll dhclient 41747 238121 0 0 3 0x14200 bored smr 93570 30876 0 0 2 0x14200 zerothread 20080 184282 0 0 3 0x14200 aiodoned aiodoned 71150 455860 0 0 3 0x14200 syncer update 4256 444580 0 0 3 0x14200 cleaner cleaner 81076 511326 0 0 3 0x14200 reaper reaper 27415 477004 0 0 3 0x14200 pgdaemon pagedaemon 4166 165570 0 0 3 0x14200 bored crynlk 60600 338101 0 0 3 0x14200 bored crypto 14830 454940 0 0 3 0x40014200 acpi0 acpi0 27581 197486 0 0 3 0x14200 bored softnet 61792 265536 0 0 3 0x14200 bored systqmp 80712 492113 0 0 3 0x14200 bored systq 44317 385988 0 0 3 0x40014200 bored softclock 10618 495145 0 0 3 0x40014200 idle0 1 111103 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9475 6334K 7039K 78643K 10815 0 pcb 13 8K 8K 78643K 29 0 rtable 106 3K 4K 78643K 250 0 ifaddr 61 13K 13K 78643K 72 0 counters 21 16K 16K 78643K 21 0 ioctlops 0 0K 4K 78643K 31 0 iov 0 0K 12K 78643K 72 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1286 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 3 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 30 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 4 9K 25K 78643K 165 0 sigio 0 0K 0K 78643K 6 0 proc 47 38K 54K 78643K 358 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 8 0 in_multi 43 2K 2K 78643K 67 0 ether_multi 1 0K 0K 78643K 3 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 37 175K 175K 78643K 37 0 exec 0 0K 1K 78643K 185 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 120 22K 22K 78643K 1232 0 UVM aobj 6 2K 2K 78643K 6 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 1K 78643K 15 0 NDP 9 0K 0K 78643K 16 0 temp 90 3851K 3915K 78643K 2147 0 kqueue 3 4K 12K 78643K 9 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 8 0 1 1 0 1 1 0 8 0 rtpcb 80 23 0 21 1 0 1 1 0 8 0 rtentry 112 59 0 16 2 0 2 2 0 8 0 unpcb 120 89 0 81 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 109 0 109 1 1 0 1 0 8 0 tcpcb 544 50 0 46 1 0 1 1 0 8 0 inpcb 296 276 0 269 3 1 2 2 0 8 1 nd6 48 11 0 6 1 0 1 1 0 8 0 pfrktable 1344 6 0 6 1 0 1 1 0 8 1 pfrule 1360 6 0 2 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 260 0 65 15 2 13 14 0 8 0 art_table 32 261 0 65 2 0 2 2 0 8 0 art_node 16 58 0 18 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 2 1 0 1 1 0 8 0 semapl 112 20 0 10 1 0 1 1 0 8 0 shmpl 112 3 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1580 0 182 88 0 88 88 0 8 0 ffsino 240 1580 0 182 83 0 83 83 0 8 0 nchpl 144 2024 0 423 60 0 60 60 0 8 0 uvmvnodes 72 1673 0 0 31 0 31 31 0 8 0 vnodes 208 1673 0 0 89 0 89 89 0 8 0 namei 1024 5159 0 5159 2 1 1 1 0 8 1 pfiaddrpl 120 2 0 2 1 0 1 1 0 8 1 scxspl 192 5835 0 5835 1 0 1 1 0 8 1 plimitpl 152 24 0 17 1 0 1 1 0 8 0 sigapl 424 371 0 324 6 0 6 6 0 8 0 futexpl 56 2778 0 2778 2 1 1 1 0 8 1 knotepl 112 68 0 48 1 0 1 1 0 8 0 kqueuepl 144 12 0 10 1 0 1 1 0 8 0 pipepl 272 91 0 80 1 0 1 1 0 8 0 fdescpl 432 337 0 324 2 0 2 2 0 8 0 filepl 120 1886 0 1789 5 1 4 4 0 8 1 lockfpl 104 50 0 49 1 0 1 1 0 8 0 lockfspl 48 17 0 16 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 17 0 7 1 0 1 1 0 8 0 ucredpl 96 164 0 157 1 0 1 1 0 8 0 zombiepl 144 324 0 324 2 1 1 1 0 8 1 processpl 928 371 0 324 7 0 7 7 0 8 1 procpl 624 543 0 490 5 0 5 5 0 8 0 sockpl 400 388 0 371 5 2 3 4 0 8 1 mcl64k 65536 11 0 11 2 2 0 1 0 8 0 mcl12k 12288 8 0 8 2 1 1 1 0 8 1 mcl9k 9216 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 4 0 4 2 2 0 1 0 8 0 mcl4k 4096 18 0 18 3 2 1 1 0 8 1 mcl2k 2048 95772 0 95732 20 13 7 17 0 8 1 mtagpl 96 32 0 4 2 1 1 1 0 8 0 mbufpl 256 151833 0 151681 15 4 11 11 0 8 1 mbufpl: pool(0xffffffff827f9948:mbufpl): free list modified: page 0xfffffd805c50d000; item ordinal 0; addr 0xfffffd805c50d100 (p 0xfffffd805d6df000); offset 0x0=0x0 pool(mbufpl): free list modified: page 0xfffffd805c50d000; item ordinal 0; addr 0xfffffd805c50d100 (p 0xfffffd805d6df000); offset 0x0=0x0 mbufpl: pool(0xffffffff827f9948:mbufpl): page inconsistency: page 0xfffffd805c50d000; item ordinal 1; addr 0x97b3eccae0a6fc1f bufpl 280 3436 0 124 237 0 237 237 0 8 0 anonpl 16 52161 0 34238 90 11 79 88 0 107 6 amapchunkpl 152 1412 0 1231 9 0 9 9 0 158 0 amappl16 192 1797 0 860 58 10 48 58 0 8 1 amappl15 184 51 0 49 1 0 1 1 0 8 0 amappl14 176 22 0 18 1 0 1 1 0 8 0 amappl13 168 109 0 105 1 0 1 1 0 8 0 amappl12 160 95 0 91 1 0 1 1 0 8 0 amappl11 152 46 0 37 1 0 1 1 0 8 0 amappl10 144 63 0 59 1 0 1 1 0 8 0 amappl9 136 312 0 311 1 0 1 1 0 8 0 amappl8 128 300 0 266 2 0 2 2 0 8 0 amappl7 120 109 0 94 1 0 1 1 0 8 0 amappl6 112 22 0 17 1 0 1 1 0 8 0 amappl5 104 357 0 345 1 0 1 1 0 8 0 amappl4 96 418 0 390 1 0 1 1 0 8 0 amappl3 88 114 0 109 1 0 1 1 0 8 0 amappl2 80 2009 0 1948 2 0 2 2 0 8 0 amappl1 72 16605 0 16199 23 13 10 17 0 8 0 amappl 80 768 0 717 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 5 0 0 1 0 1 1 0 8 0 uaddrrnd 24 337 0 324 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 337 0 324 1 0 1 1 0 8 0 vmmpekpl 168 6220 0 6191 2 0 2 2 0 8 0 vmmpepl 168 48865 0 46927 177 80 97 153 0 357 6 vmsppl 272 336 0 324 2 1 1 2 0 8 0 pdppl 4096 680 0 648 6 1 5 6 0 8 0 pvpl 32 162140 0 141237 211 15 196 205 0 265 25 pmappl 200 336 0 324 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 257 0 32 7 0 7 7 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8247721f) at panic+0x164 sys/kern/subr_prf.c:218 pool_do_get(ffffffff827f9948,2,ffff80001d722998) at pool_do_get+0x42a sys/kern/subr_pool.c:738 pool_get(ffffffff827f9948,2) at pool_get+0xb5 sys/kern/subr_pool.c:581 m_copym(fffffd805c50d000,0,580,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd805c50d000,0,580,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000ac3980) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805daaa648,9,fffffd805c50d000,0,0,ffff80001d71ceb0) at tcp_usrreq+0xa54 sosend(fffffd805daaa648,0,ffff80001d722e78,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71ceb0,4,ffff80001d722e78,0,ffff80001d722f60) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71ceb0,ffff80001d722f10,ffff80001d722f60) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d722fe0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffddd40, count: -12 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8247721f) at panic+0x164 sys/kern/subr_prf.c:218 pool_do_get(ffffffff827f9948,2,ffff80001d722998) at pool_do_get+0x42a sys/kern/subr_pool.c:738 pool_get(ffffffff827f9948,2) at pool_get+0xb5 sys/kern/subr_pool.c:581 m_copym(fffffd805c50d000,0,580,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd805c50d000,0,580,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000ac3980) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805daaa648,9,fffffd805c50d000,0,0,ffff80001d71ceb0) at tcp_usrreq+0xa54 sosend(fffffd805daaa648,0,ffff80001d722e78,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71ceb0,4,ffff80001d722e78,0,ffff80001d722f60) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71ceb0,ffff80001d722f10,ffff80001d722f60) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d722fe0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffddd40, count: -12