panic: pool_do_get: mbufpl free list modified: page 0xfffffd8057132000; item addr 0xfffffd8057132200; offset 0x0=0x0 != 0x76b8355a25e8d1b8 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 85284 62992 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8247c7e9) at panic+0x164 sys/kern/subr_prf.c:218 pool_do_get(ffffffff82819ed0,2,ffff80001d6c97b8) at pool_do_get+0x42a sys/kern/subr_pool.c:738 pool_get(ffffffff82819ed0,2) at pool_get+0xb5 sys/kern/subr_pool.c:581 m_copym(fffffd80533db100,36c,1b4,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd80533db100,36c,1b4,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000ac5280) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da74198,9,fffffd8057132100,0,0,ffff80001d702010) at tcp_usrreq+0xa54 sosend(fffffd805da74198,0,ffff80001d6c9c98,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d702010,4,ffff80001d6c9c98,0,ffff80001d6c9d80) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d702010,ffff80001d6c9d30,ffff80001d6c9d80) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6c9e00) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc3710, 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 0xfffffd8057132000; item addr 0xfffffd8057132200; offset 0x0=0x0 != 0x76b8355a25e8d1b8 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8247c7e9) at panic+0x164 sys/kern/subr_prf.c:218 pool_do_get(ffffffff82819ed0,2,ffff80001d6c97b8) at pool_do_get+0x42a sys/kern/subr_pool.c:738 pool_get(ffffffff82819ed0,2) at pool_get+0xb5 sys/kern/subr_pool.c:581 m_copym(fffffd80533db100,36c,1b4,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd80533db100,36c,1b4,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000ac5280) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da74198,9,fffffd8057132100,0,0,ffff80001d702010) at tcp_usrreq+0xa54 sosend(fffffd805da74198,0,ffff80001d6c9c98,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d702010,4,ffff80001d6c9c98,0,ffff80001d6c9d80) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d702010,ffff80001d6c9d30,ffff80001d6c9d80) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6c9e00) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc3710, count: -12 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d6c9620 rbx 0xffff80001d6c96d0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffff80001d6c95e0 r9 0xffffffff81ceca3f kprintf+0x15f r10 0x1 r11 0xea52ef68291750be r12 0x3000000008 r13 0xffff80001d6c9630 r14 0x100 r15 0x1 rip 0xffffffff82063088 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d6c9610 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=85284 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d702778,0xffff80001d702510 process=0xffff80001d7043c8 user=0xffff80001d6c4000, vmspace=0xfffffd806bc0a770 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 33553 324060 50123 0 2 0 syz-executor.0 33553 383242 50123 0 2 0x4000000 syz-executor.0 50123 483230 35080 0 3 0x82 nanosleep syz-executor.0 61010 320531 1 0 3 0x100083 ttyin getty 21595 206290 0 0 3 0x14200 acct acct 4061 384013 35080 0 3 0x2 biowait syz-executor.1 55394 31707 0 0 3 0x14200 bored sosplice 35080 340123 47440 0 3 0x82 thrsleep syz-fuzzer 35080 191589 47440 0 3 0x4000082 nanosleep syz-fuzzer 35080 378155 47440 0 3 0x4000082 thrsleep syz-fuzzer 35080 147403 47440 0 3 0x4000082 thrsleep syz-fuzzer 35080 408279 47440 0 3 0x4000082 thrsleep syz-fuzzer 35080 88803 47440 0 3 0x4000082 thrsleep syz-fuzzer 35080 428495 47440 0 2 0x4000002 syz-fuzzer 35080 497404 47440 0 3 0x4000082 thrsleep syz-fuzzer 47440 404844 62992 0 3 0x10008a pause ksh *62992 85284 68769 0 7 0x12 sshd 68769 93299 1 0 3 0x80 select sshd 66892 345989 82507 73 3 0x100090 kqread syslogd 82507 11537 1 0 3 0x100082 netio syslogd 84335 500285 1 77 3 0x100090 poll dhclient 97988 362860 1 0 3 0x80 poll dhclient 55635 215772 0 0 3 0x14200 bored smr 42180 473587 0 0 2 0x14200 zerothread 17003 340920 0 0 3 0x14200 aiodoned aiodoned 49836 507445 0 0 3 0x14200 syncer update 98792 518952 0 0 3 0x14200 cleaner cleaner 63703 436818 0 0 3 0x14200 reaper reaper 88508 522640 0 0 3 0x14200 pgdaemon pagedaemon 55198 512528 0 0 3 0x14200 bored crynlk 93851 143530 0 0 3 0x14200 bored crypto 43172 341842 0 0 3 0x40014200 acpi0 acpi0 35655 398206 0 0 3 0x14200 bored softnet 74623 240760 0 0 3 0x14200 bored systqmp 50428 460260 0 0 3 0x14200 bored systq 48838 354863 0 0 3 0x40014200 bored softclock 43315 455685 0 0 3 0x40014200 idle0 1 15600 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 9513 6489K 7385K 78643K 15232 0 pcb 13 8K 8K 78643K 208 0 rtable 162 16K 18K 78643K 954 0 ifaddr 97 20K 21K 78643K 268 0 sysctl 3 1K 1K 78643K 3 0 counters 21 16K 17K 78643K 36 0 ioctlops 0 0K 4K 78643K 520 0 iov 0 0K 24K 78643K 110 0 mount 1 1K 1K 78643K 1 0 vnodes 1216 76K 77K 78643K 2405 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 17 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 1K 78643K 118 0 dirhash 6 1K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 1242 0 sigio 0 0K 0K 78643K 59 0 proc 51 38K 55K 78643K 618 0 subproc 32 2K 2K 78643K 102 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 130 0 in_multi 91 4K 4K 78643K 370 0 ether_multi 1 0K 0K 78643K 40 0 mrt 0 0K 0K 78643K 13 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 61 281K 281K 78643K 61 0 exec 0 0K 1K 78643K 333 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 169 220K 220K 78643K 3751 0 UVM aobj 38 7K 7K 78643K 41 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 180 0 NDP 14 0K 0K 78643K 59 0 temp 128 3876K 3940K 78643K 36390 0 kqueue 3 4K 14K 78643K 39 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 16 0 10 1 0 1 1 0 8 0 rtpcb 88 132 0 130 1 0 1 1 0 8 0 rtentry 112 173 0 129 2 0 2 2 0 8 0 unpcb 120 643 0 633 1 0 1 1 0 8 0 syncache 272 11 0 11 4 4 0 1 0 8 0 tcpqe 32 414 0 414 2 2 0 1 0 8 0 tcpcb 592 398 0 394 7 5 2 2 0 8 1 ipq 40 41 0 41 2 2 0 1 0 8 0 ipqe 40 248 0 248 2 2 0 1 0 8 0 inpcb 296 2107 0 2100 4 2 2 2 0 8 1 rttmr 72 7 0 7 2 2 0 1 0 8 0 nd6 48 55 0 50 1 0 1 1 0 8 0 pkpcb 40 12 0 12 2 2 0 1 0 8 0 ppxss 1136 2 0 2 2 2 0 1 0 8 0 pfstscr 40 2 0 1 1 0 1 1 0 8 0 pfosfp 40 2 0 0 1 0 1 1 0 8 0 pfosfpen 112 3 0 0 1 0 1 1 0 8 0 pfrktable 1344 151 0 126 4 1 3 3 0 8 0 pftag 88 28 0 22 1 0 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 112 4 0 2 1 0 1 1 0 8 0 pfstate 328 2 0 1 1 0 1 1 0 8 0 pfrule 1360 81 0 46 4 1 3 4 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 638 0 451 16 3 13 15 0 8 0 art_table 32 640 0 451 2 0 2 2 0 8 0 art_node 16 170 0 130 1 0 1 1 0 8 0 sysvmsgpl 40 22 0 5 1 0 1 1 0 8 0 semupl 112 8 0 8 1 1 0 1 0 8 0 semapl 112 109 0 99 1 0 1 1 0 8 0 shmpl 112 38 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 13 3 1 2 3 0 8 0 dino2pl 256 2923 0 1528 88 0 88 88 0 8 0 ffsino 240 2923 0 1528 83 0 83 83 0 8 0 nchpl 144 4798 0 3218 60 0 60 60 0 8 0 uvmvnodes 72 4027 0 0 74 0 74 74 0 8 0 vnodes 208 4027 0 0 212 0 212 212 0 8 0 namei 1024 14013 0 14013 3 2 1 1 0 8 1 vcpupl 1984 19 0 1 3 0 3 3 0 8 0 vmpool 528 32 0 14 2 0 2 2 0 8 0 pfiaddrpl 120 84 0 58 1 0 1 1 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 200 14616 0 14615 1 0 1 1 0 8 0 plimitpl 152 92 0 85 1 0 1 1 0 8 0 sigapl 424 1439 0 1409 6 2 4 6 0 8 0 futexpl 56 26515 0 26515 3 2 1 1 0 8 1 knotepl 112 152 0 132 1 0 1 1 0 8 0 kqueuepl 152 151 0 144 1 0 1 1 0 8 0 pipepl 272 286 0 275 5 4 1 2 0 8 0 fdescpl 432 1403 0 1389 2 0 2 2 0 8 0 filepl 120 8930 0 8833 5 1 4 4 0 8 1 lockfpl 104 1587 0 1586 1 0 1 1 0 8 0 lockfspl 48 755 0 754 1 0 1 1 0 8 0 sessionpl 120 22 0 12 1 0 1 1 0 8 0 pgrppl 48 32 0 22 1 0 1 1 0 8 0 ucredpl 96 529 0 522 1 0 1 1 0 8 0 zombiepl 144 1409 0 1409 2 1 1 1 0 8 1 processpl 944 1439 0 1409 7 3 4 7 0 8 0 procpl 632 2820 0 2782 6 2 4 6 0 8 0 sosppl 144 5 0 5 2 2 0 1 0 8 0 sockpl 400 2901 0 2882 11 8 3 5 0 8 0 mcl64k 65536 72 0 72 3 3 0 1 0 8 0 mcl16k 16384 9 0 9 5 5 0 1 0 8 0 mcl12k 12288 40 0 40 3 3 0 1 0 8 0 mcl9k 9216 23 0 23 5 5 0 1 0 8 0 mcl8k 8192 51 0 51 4 4 0 1 0 8 0 mcl4k 4096 122 0 121 4 3 1 1 0 8 0 mcl2k2 2112 6 0 6 3 3 0 1 0 8 0 mcl2k 2048 96700 0 96644 27 18 9 18 0 8 0 mtagpl 96 779 0 588 11 1 10 10 0 8 1 mbufpl 256 169213 0 168548 205 138 67 166 0 8 2 mbufpl: pool(0xffffffff82819ed0:mbufpl): free list modified: page 0xfffffd8057132000; item ordinal 0; addr 0xfffffd8057132200 (p 0xfffffd8054aac000); offset 0x0=0x0 pool(mbufpl): free list modified: page 0xfffffd8057132000; item ordinal 0; addr 0xfffffd8057132200 (p 0xfffffd8054aac000); offset 0x0=0x0 mbufpl: pool(0xffffffff82819ed0:mbufpl): page inconsistency: page 0xfffffd8057132000; item ordinal 1; addr 0xb796aa805356dded bufpl 280 5708 0 354 383 0 383 383 0 8 0 anonpl 16 149142 0 134954 103 20 83 96 0 107 0 amapchunkpl 152 6214 0 6022 23 14 9 15 0 158 0 amappl16 192 6273 0 5199 72 17 55 67 0 8 0 amappl15 184 9 0 8 1 0 1 1 0 8 0 amappl14 176 10 0 8 1 0 1 1 0 8 0 amappl13 168 927 0 923 1 0 1 1 0 8 0 amappl12 160 308 0 306 1 0 1 1 0 8 0 amappl11 152 60 0 48 1 0 1 1 0 8 0 amappl10 144 40 0 35 1 0 1 1 0 8 0 amappl9 136 620 0 617 1 0 1 1 0 8 0 amappl8 128 682 0 647 3 1 2 2 0 8 0 amappl7 120 129 0 116 1 0 1 1 0 8 0 amappl6 112 28 0 22 1 0 1 1 0 8 0 amappl5 104 1057 0 1045 1 0 1 1 0 8 0 amappl4 96 1381 0 1346 1 0 1 1 0 8 0 amappl3 88 462 0 451 1 0 1 1 0 8 0 amappl2 80 10151 0 10085 2 0 2 2 0 8 0 amappl1 72 40930 0 40527 22 13 9 17 0 8 0 amappl 80 3117 0 3049 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 40 0 3 1 0 1 1 0 8 0 uaddrrnd 24 1435 0 1403 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1435 0 1403 1 0 1 1 0 8 0 vmmpekpl 168 11396 0 11362 2 0 2 2 0 8 0 vmmpepl 168 178537 0 176331 214 74 140 140 0 357 37 vmsppl 272 1434 0 1403 4 1 3 3 0 8 0 pdppl 4096 2876 0 2824 8 1 7 7 0 8 0 pvpl 32 411707 0 394772 235 48 187 219 0 265 0 pmappl 200 1434 0 1403 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 481 0 198 12 1 11 12 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(ffffffff8247c7e9) at panic+0x164 sys/kern/subr_prf.c:218 pool_do_get(ffffffff82819ed0,2,ffff80001d6c97b8) at pool_do_get+0x42a sys/kern/subr_pool.c:738 pool_get(ffffffff82819ed0,2) at pool_get+0xb5 sys/kern/subr_pool.c:581 m_copym(fffffd80533db100,36c,1b4,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd80533db100,36c,1b4,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000ac5280) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da74198,9,fffffd8057132100,0,0,ffff80001d702010) at tcp_usrreq+0xa54 sosend(fffffd805da74198,0,ffff80001d6c9c98,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d702010,4,ffff80001d6c9c98,0,ffff80001d6c9d80) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d702010,ffff80001d6c9d30,ffff80001d6c9d80) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6c9e00) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc3710, 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(ffffffff8247c7e9) at panic+0x164 sys/kern/subr_prf.c:218 pool_do_get(ffffffff82819ed0,2,ffff80001d6c97b8) at pool_do_get+0x42a sys/kern/subr_pool.c:738 pool_get(ffffffff82819ed0,2) at pool_get+0xb5 sys/kern/subr_pool.c:581 m_copym(fffffd80533db100,36c,1b4,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd80533db100,36c,1b4,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000ac5280) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da74198,9,fffffd8057132100,0,0,ffff80001d702010) at tcp_usrreq+0xa54 sosend(fffffd805da74198,0,ffff80001d6c9c98,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d702010,4,ffff80001d6c9c98,0,ffff80001d6c9d80) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d702010,ffff80001d6c9d30,ffff80001d6c9d80) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6c9e00) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc3710, count: -12