panic: pool_do_get: mbufpl free list modified: page 0xfffffd80580e8000; item addr 0xfffffd80580e8500; offset 0x0=0x0 != 0x3f3b76895343b545 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *273123 99582 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,ffff80001d6c9898) 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_gethdr(2,2) at m_gethdr+0x4c sys/kern/uipc_mbuf.c:283 tcp_output(ffff800000ac5720) at tcp_output+0x147a tcp_usrreq(fffffd805da654b8,9,fffffd80580e8400,0,0,ffff80001d6fc778) at tcp_usrreq+0xa54 sosend(fffffd805da654b8,0,ffff80001d6c9d18,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d6fc778,4,ffff80001d6c9d18,0,ffff80001d6c9e00) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d6fc778,ffff80001d6c9db0,ffff80001d6c9e00) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6c9e80) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe3df0, 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 0xfffffd80580e8000; item addr 0xfffffd80580e8500; offset 0x0=0x0 != 0x3f3b76895343b545 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,ffff80001d6c9898) 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_gethdr(2,2) at m_gethdr+0x4c sys/kern/uipc_mbuf.c:283 tcp_output(ffff800000ac5720) at tcp_output+0x147a tcp_usrreq(fffffd805da654b8,9,fffffd80580e8400,0,0,ffff80001d6fc778) at tcp_usrreq+0xa54 sosend(fffffd805da654b8,0,ffff80001d6c9d18,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d6fc778,4,ffff80001d6c9d18,0,ffff80001d6c9e00) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d6fc778,ffff80001d6c9db0,ffff80001d6c9e00) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6c9e80) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe3df0, count: -12 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d6c9700 rbx 0xffff80001d6c97b0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffff80001d6c96c0 r9 0xffffffff81ceca3f kprintf+0x15f r10 0x1 r11 0x8a8ce6d435e2061 r12 0x3000000008 r13 0xffff80001d6c9710 r14 0x100 r15 0x1 rip 0xffffffff82063088 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d6c96f0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=273123 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d6fd158,0xffff80001d6fcc78 process=0xffff80001d6feed8 user=0xffff80001d6c4000, vmspace=0xfffffd806bc0abb0 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 90051 367647 0 0 3 0x14200 acct acct 50063 309676 3672 0 3 0x2 biowait syz-executor.0 16490 515375 0 0 3 0x14280 nfsidl nfsio 53535 401106 0 0 3 0x14280 nfsidl nfsio 8296 40175 0 0 3 0x14280 nfsidl nfsio 58633 69909 0 0 3 0x14280 nfsidl nfsio 13994 163381 0 0 3 0x14280 nfsidl nfsio 33353 238828 0 0 3 0x14280 nfsidl nfsio 1547 247822 0 0 3 0x14280 nfsidl nfsio 47071 357746 0 0 3 0x14280 nfsidl nfsio 50186 403035 0 0 3 0x14280 nfsidl nfsio 66968 322583 0 0 3 0x14280 nfsidl nfsio 68604 470860 0 0 3 0x14280 nfsidl nfsio 39047 339715 0 0 3 0x14280 nfsidl nfsio 66643 462282 0 0 3 0x14280 nfsidl nfsio 45318 216676 0 0 3 0x14280 nfsidl nfsio 59427 42363 0 0 3 0x14280 nfsidl nfsio 21844 504037 0 0 3 0x14280 nfsidl nfsio 26516 389078 0 0 3 0x14280 nfsidl nfsio 82424 312685 0 0 3 0x14280 nfsidl nfsio 85561 176747 0 0 3 0x14280 nfsidl nfsio 53371 165975 0 0 3 0x14280 nfsidl nfsio 80354 91404 0 0 3 0x14200 bored sosplice 90677 508298 3672 0 3 0x82 piperd syz-executor.1 3672 244943 24478 0 3 0x82 thrsleep syz-fuzzer 3672 516580 24478 0 3 0x4000082 nanosleep syz-fuzzer 3672 308808 24478 0 2 0x4000002 syz-fuzzer 3672 112572 24478 0 3 0x4000082 thrsleep syz-fuzzer 3672 420979 24478 0 3 0x4000082 thrsleep syz-fuzzer 3672 359251 24478 0 3 0x4000082 thrsleep syz-fuzzer 3672 257289 24478 0 3 0x4000082 thrsleep syz-fuzzer 24478 278928 99582 0 3 0x10008a pause ksh *99582 273123 32368 0 7 0x12 sshd 60496 315132 1 0 3 0x100083 ttyin getty 32368 301107 1 0 3 0x80 select sshd 63419 56867 52211 73 3 0x100090 kqread syslogd 52211 470796 1 0 3 0x100082 netio syslogd 36469 41439 1 77 3 0x100090 poll dhclient 69857 463608 1 0 3 0x80 poll dhclient 21867 178455 0 0 3 0x14200 bored smr 44997 48363 0 0 2 0x14200 zerothread 18211 95731 0 0 3 0x14200 aiodoned aiodoned 12019 456284 0 0 3 0x14200 syncer update 57169 521427 0 0 3 0x14200 cleaner cleaner 83484 380454 0 0 3 0x14200 reaper reaper 49376 480824 0 0 3 0x14200 pgdaemon pagedaemon 85565 137034 0 0 3 0x14200 bored crynlk 63484 428574 0 0 3 0x14200 bored crypto 86452 154894 0 0 3 0x40014200 acpi0 acpi0 8227 193960 0 0 3 0x14200 bored softnet 72023 513449 0 0 3 0x14200 bored systqmp 924 181793 0 0 3 0x14200 bored systq 25795 140447 0 0 3 0x40014200 bored softclock 41230 499016 0 0 3 0x40014200 idle0 1 326167 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 9521 6367K 7306K 78643K 14875 0 pcb 13 8K 8K 78643K 300 0 rtable 67 1K 3K 78643K 415 0 ifaddr 89 16K 16K 78643K 168 0 sysctl 2 0K 0K 78643K 2 0 counters 21 16K 16K 78643K 27 0 ioctlops 0 0K 4K 78643K 141 0 iov 0 0K 16K 78643K 82 0 mount 1 1K 1K 78643K 1 0 vnodes 1227 77K 77K 78643K 2948 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 9 0 VM map 2 0K 0K 78643K 2 0 sem 11 1K 1K 78643K 17 0 dirhash 9 1K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 4 9K 25K 78643K 959 0 sigio 0 0K 0K 78643K 14 0 proc 53 39K 55K 78643K 451 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 54 0 in_multi 69 3K 3K 78643K 186 0 ether_multi 1 0K 0K 78643K 19 0 mrt 0 0K 0K 78643K 3 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 256 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 75K 91K 78643K 3079 0 UVM aobj 32 4K 4K 78643K 40 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 76 0 NDP 15 0K 0K 78643K 32 0 temp 154 3875K 3939K 78643K 11854 0 kqueue 3 4K 12K 78643K 27 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 10 0 3 1 0 1 1 0 8 0 rtpcb 88 65 0 63 1 0 1 1 0 8 0 rtentry 112 102 0 77 2 0 2 2 0 8 0 unpcb 120 864 0 856 1 0 1 1 0 8 0 syncache 272 11 0 11 5 5 0 1 0 8 0 tcpqe 32 446 0 446 2 2 0 2 0 8 0 tcpcb 592 245 0 241 3 2 1 2 0 8 0 ipq 40 7 0 6 4 3 1 1 0 8 0 ipqe 40 14 0 13 4 3 1 1 0 8 0 inpcb 296 940 0 933 12 11 1 2 0 8 0 rttmr 72 3 0 3 2 2 0 1 0 8 0 nd6 48 21 0 19 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 pfrule 1360 2 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 451 0 357 13 5 8 13 0 8 0 art_table 32 452 0 357 2 0 2 2 0 8 0 art_node 16 87 0 65 1 0 1 1 0 8 0 sysvmsgpl 40 50 0 38 2 1 1 1 0 8 0 semupl 112 7 0 7 1 1 0 1 0 8 0 semapl 112 13 0 4 1 0 1 1 0 8 0 shmpl 112 37 0 8 1 0 1 1 0 8 0 dirhash 1024 17 0 10 3 1 2 3 0 8 0 dino2pl 256 2585 0 1187 88 0 88 88 0 8 0 ffsino 240 2585 0 1187 83 0 83 83 0 8 0 nchpl 144 4158 0 2574 60 0 60 60 0 8 0 uvmvnodes 72 4280 0 0 78 0 78 78 0 8 0 vnodes 208 4280 0 0 226 0 226 226 0 8 0 namei 1024 12698 0 12698 8 7 1 1 0 8 1 vcpupl 1984 6 0 0 1 0 1 1 0 8 0 vmpool 528 12 0 6 2 1 1 1 0 8 0 scxspl 200 12262 0 12261 7 6 1 1 0 8 0 plimitpl 152 73 0 66 1 0 1 1 0 8 0 sigapl 424 1168 0 1119 6 0 6 6 0 8 0 futexpl 56 20019 0 20019 7 6 1 1 0 8 1 knotepl 112 106 0 86 1 0 1 1 0 8 0 kqueuepl 152 100 0 98 1 0 1 1 0 8 0 pipepl 272 187 0 176 4 3 1 2 0 8 0 fdescpl 432 1128 0 1115 2 0 2 2 0 8 0 filepl 120 7402 0 7305 6 2 4 4 0 8 1 lockfpl 104 217 0 216 1 0 1 1 0 8 0 lockfspl 48 80 0 79 1 0 1 1 0 8 0 sessionpl 120 18 0 8 1 0 1 1 0 8 0 pgrppl 48 22 0 12 1 0 1 1 0 8 0 ucredpl 96 591 0 584 1 0 1 1 0 8 0 zombiepl 144 1119 0 1119 4 3 1 1 0 8 1 processpl 944 1168 0 1119 7 0 7 7 0 8 0 procpl 632 2290 0 2235 7 2 5 6 0 8 0 sosppl 144 8 0 8 4 4 0 1 0 8 0 sockpl 400 1876 0 1859 25 22 3 5 0 8 1 mcl64k 65536 284 0 284 42 41 1 33 0 8 1 mcl16k 16384 6 0 6 4 4 0 1 0 8 0 mcl12k 12288 27 0 27 13 12 1 1 0 8 1 mcl9k 9216 9 0 9 7 7 0 1 0 8 0 mcl8k 8192 24 0 24 11 10 1 1 0 8 1 mcl4k 4096 77 0 77 14 13 1 1 0 8 1 mcl2k2 2112 5 0 5 4 4 0 1 0 8 0 mcl2k 2048 96721 0 96653 38 29 9 30 0 8 0 mtagpl 96 126 0 67 3 1 2 2 0 8 0 mbufpl 256 159460 0 159201 70 48 22 41 0 8 1 mbufpl: pool(0xffffffff82819ed0:mbufpl): free list modified: page 0xfffffd80580e8000; item ordinal 0; addr 0xfffffd80580e8500 (p 0xfffffd806c3c4000); offset 0x0=0x0 mbufpl: pool(0xffffffff82819ed0:mbufpl): page inconsistency: page 0xfffffd80580e8000; item ordinal 1; addr 0x5bb5cc18a87570e1 bufpl 280 4939 0 116 345 0 345 345 0 8 0 anonpl 16 126548 0 108218 101 13 88 94 0 107 0 amapchunkpl 152 5432 0 5213 28 19 9 23 0 158 0 amappl16 192 5770 0 4631 89 26 63 70 0 8 5 amappl15 184 204 0 200 1 0 1 1 0 8 0 amappl14 176 174 0 170 1 0 1 1 0 8 0 amappl13 168 34 0 31 1 0 1 1 0 8 0 amappl12 160 18 0 16 1 0 1 1 0 8 0 amappl11 152 220 0 210 1 0 1 1 0 8 0 amappl10 144 13 0 9 1 0 1 1 0 8 0 amappl9 136 865 0 864 1 0 1 1 0 8 0 amappl8 128 380 0 320 2 0 2 2 0 8 0 amappl7 120 107 0 98 1 0 1 1 0 8 0 amappl6 112 34 0 27 1 0 1 1 0 8 0 amappl5 104 948 0 938 1 0 1 1 0 8 0 amappl4 96 624 0 592 1 0 1 1 0 8 0 amappl3 88 331 0 321 1 0 1 1 0 8 0 amappl2 80 8326 0 8260 2 0 2 2 0 8 0 amappl1 72 34380 0 33987 24 15 9 17 0 8 0 amappl 80 2534 0 2474 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 39 0 8 1 0 1 1 0 8 0 uaddrrnd 24 1140 0 1121 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1140 0 1121 1 0 1 1 0 8 0 vmmpekpl 168 10440 0 10408 2 0 2 2 0 8 0 vmmpepl 168 144135 0 141929 194 85 109 146 0 357 6 vmsppl 272 1139 0 1121 3 1 2 2 0 8 0 pdppl 4096 2286 0 2248 11 5 6 6 0 8 0 pvpl 32 346310 0 325472 231 27 204 215 0 265 5 pmappl 200 1139 0 1121 2 0 2 2 0 8 1 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 426 0 196 9 2 7 8 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,ffff80001d6c9898) 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_gethdr(2,2) at m_gethdr+0x4c sys/kern/uipc_mbuf.c:283 tcp_output(ffff800000ac5720) at tcp_output+0x147a tcp_usrreq(fffffd805da654b8,9,fffffd80580e8400,0,0,ffff80001d6fc778) at tcp_usrreq+0xa54 sosend(fffffd805da654b8,0,ffff80001d6c9d18,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d6fc778,4,ffff80001d6c9d18,0,ffff80001d6c9e00) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d6fc778,ffff80001d6c9db0,ffff80001d6c9e00) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6c9e80) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe3df0, 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,ffff80001d6c9898) 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_gethdr(2,2) at m_gethdr+0x4c sys/kern/uipc_mbuf.c:283 tcp_output(ffff800000ac5720) at tcp_output+0x147a tcp_usrreq(fffffd805da654b8,9,fffffd80580e8400,0,0,ffff80001d6fc778) at tcp_usrreq+0xa54 sosend(fffffd805da654b8,0,ffff80001d6c9d18,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d6fc778,4,ffff80001d6c9d18,0,ffff80001d6c9e00) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d6fc778,ffff80001d6c9db0,ffff80001d6c9e00) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6c9e80) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe3df0, count: -12