panic: pool_do_get: mbufpl free list modified: page 0xfffffd8067ef6000; item addr 0xfffffd8067ef6b00; offset 0x0=0x0 != 0x31722629966edbef Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *224820 11247 0 0x12 0 0 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8247a1ba) at panic+0x164 sys/kern/subr_prf.c:218 pool_do_get(ffffffff82865cd8,2,ffff80001d723348) at pool_do_get+0x42a sys/kern/subr_pool.c:738 pool_get(ffffffff82865cd8,2) at pool_get+0xb5 sys/kern/subr_pool.c:581 m_copym(fffffd8067ef6100,3cc,20c,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd8067ef6100,3cc,20c,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000ac2220) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da70648,9,fffffd8067ef6a00,0,0,ffff80001d71c760) at tcp_usrreq+0xa54 sosend(fffffd805da70648,0,ffff80001d723828,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c760,4,ffff80001d723828,0,ffff80001d723910) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c760,ffff80001d7238c0,ffff80001d723910) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723990) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffea880, 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 0xfffffd8067ef6000; item addr 0xfffffd8067ef6b00; offset 0x0=0x0 != 0x31722629966edbef ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8247a1ba) at panic+0x164 sys/kern/subr_prf.c:218 pool_do_get(ffffffff82865cd8,2,ffff80001d723348) at pool_do_get+0x42a sys/kern/subr_pool.c:738 pool_get(ffffffff82865cd8,2) at pool_get+0xb5 sys/kern/subr_pool.c:581 m_copym(fffffd8067ef6100,3cc,20c,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd8067ef6100,3cc,20c,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000ac2220) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da70648,9,fffffd8067ef6a00,0,0,ffff80001d71c760) at tcp_usrreq+0xa54 sosend(fffffd805da70648,0,ffff80001d723828,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c760,4,ffff80001d723828,0,ffff80001d723910) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c760,ffff80001d7238c0,ffff80001d723910) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723990) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffea880, count: -12 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d7231b0 rbx 0xffff80001d723260 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffff80001d723170 r9 0xffffffff817fa6cf kprintf+0x15f r10 0x1 r11 0x9c2f1c985432f970 r12 0x3000000008 r13 0xffff80001d7231c0 r14 0x100 r15 0x1 rip 0xffffffff81e60e68 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d7231a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=224820 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d71d390,0xffff80001d71c290 process=0xffff80001d700018 user=0xffff80001d71e000, vmspace=0xfffffd806bc0a990 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 19650 305197 34052 0 3 0x82 piperd syz-executor.0 75785 250620 0 0 3 0x14280 nfsidl nfsio 13120 226520 0 0 3 0x14280 nfsidl nfsio 59164 360353 0 0 3 0x14280 nfsidl nfsio 78456 29587 0 0 3 0x14280 nfsidl nfsio 90371 463459 0 0 3 0x14280 nfsidl nfsio 74527 246616 0 0 3 0x14280 nfsidl nfsio 15635 40522 0 0 3 0x14280 nfsidl nfsio 87677 26182 0 0 3 0x14280 nfsidl nfsio 76862 161970 0 0 3 0x14280 nfsidl nfsio 75303 414908 0 0 3 0x14280 nfsidl nfsio 31032 145167 0 0 3 0x14280 nfsidl nfsio 52693 508800 0 0 3 0x14280 nfsidl nfsio 53399 162134 0 0 3 0x14280 nfsidl nfsio 39799 376573 0 0 3 0x14280 nfsidl nfsio 52972 371635 0 0 3 0x14280 nfsidl nfsio 91132 2319 0 0 3 0x14280 nfsidl nfsio 94191 158055 0 0 3 0x14280 nfsidl nfsio 8037 365781 0 0 3 0x14280 nfsidl nfsio 83444 351834 0 0 3 0x14280 nfsidl nfsio 16015 139664 0 0 3 0x14280 nfsidl nfsio 12882 146447 0 0 3 0x14200 acct acct 60608 222044 0 0 3 0x14200 bored sosplice 17141 100714 34052 0 3 0x82 piperd syz-executor.1 34052 15778 69410 0 3 0x82 thrsleep syz-fuzzer 34052 88094 69410 0 3 0x4000082 nanosleep syz-fuzzer 34052 63221 69410 0 3 0x4000082 thrsleep syz-fuzzer 34052 282838 69410 0 3 0x4000082 thrsleep syz-fuzzer 34052 93963 69410 0 3 0x4000082 thrsleep syz-fuzzer 34052 287219 69410 0 3 0x4000082 thrsleep syz-fuzzer 34052 157623 69410 0 2 0x4000002 syz-fuzzer 69410 42439 11247 0 3 0x10008a pause ksh *11247 224820 49743 0 7 0x12 sshd 34181 228125 1 0 3 0x100083 ttyin getty 49743 424835 1 0 3 0x80 select sshd 77495 102987 62894 73 3 0x100090 kqread syslogd 62894 363615 1 0 3 0x100082 netio syslogd 5280 344606 1 77 3 0x100090 poll dhclient 12453 9687 1 0 3 0x80 poll dhclient 38323 169355 0 0 3 0x14200 bored smr 52152 20487 0 0 2 0x14200 zerothread 54724 396449 0 0 3 0x14200 aiodoned aiodoned 48865 384985 0 0 3 0x14200 syncer update 96243 371518 0 0 3 0x14200 cleaner cleaner 77387 284706 0 0 3 0x14200 reaper reaper 8809 252798 0 0 3 0x14200 pgdaemon pagedaemon 22300 263163 0 0 3 0x14200 bored crynlk 67478 262545 0 0 3 0x14200 bored crypto 20898 420295 0 0 3 0x40014200 acpi0 acpi0 12826 152084 0 0 3 0x14200 bored softnet 613 219495 0 0 3 0x14200 bored systqmp 5568 456616 0 0 3 0x14200 bored systq 86080 111054 0 0 3 0x40014200 bored softclock 44927 98261 0 0 3 0x40014200 idle0 1 291031 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 9502 6352K 6741K 78643K 12017 0 pcb 13 8K 8K 78643K 149 0 rtable 120 12K 13K 78643K 713 0 ifaddr 83 17K 17K 78643K 212 0 sysctl 2 0K 0K 78643K 2 0 counters 21 16K 16K 78643K 34 0 ioctlops 0 0K 4K 78643K 180 0 iov 0 0K 16K 78643K 79 0 mount 1 1K 1K 78643K 1 0 vnodes 1223 77K 77K 78643K 1774 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 21 0 VM map 2 0K 0K 78643K 2 0 sem 12 1K 1K 78643K 20 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 4 9K 25K 78643K 919 0 sigio 0 0K 0K 78643K 2 0 proc 50 38K 55K 78643K 491 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 77 0 in_multi 66 3K 3K 78643K 175 0 ether_multi 1 0K 0K 78643K 22 0 mrt 1 0K 0K 78643K 2 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 85 387K 387K 78643K 85 0 exec 0 0K 1K 78643K 258 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 137 55K 73K 78643K 3029 0 UVM aobj 47 7K 7K 78643K 54 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 122 0 NDP 12 0K 0K 78643K 37 0 temp 138 3876K 3940K 78643K 18600 0 kqueue 3 4K 10K 78643K 31 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 11 0 7 1 0 1 1 0 8 0 rtpcb 80 43 0 41 1 0 1 1 0 8 0 rtentry 112 83 0 54 2 1 1 2 0 8 0 unpcb 120 796 0 788 1 0 1 1 0 8 0 syncache 264 10 0 10 5 5 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 122 0 122 1 1 0 1 0 8 0 tcpcb 544 237 0 233 3 2 1 2 0 8 0 ipq 40 2 0 2 2 2 0 1 0 8 0 ipqe 40 4 0 4 2 2 0 1 0 8 0 inpcb 296 1276 0 1269 27 25 2 2 0 8 1 nd6 48 16 0 12 2 1 1 1 0 8 0 pkpcb 40 4 0 4 1 1 0 1 0 8 0 ppxss 1136 1 0 1 1 1 0 1 0 8 0 pfrktable 1344 143 0 124 8 6 2 2 0 8 0 pftag 88 27 0 22 2 1 1 1 0 8 0 pfqueue 264 2 0 0 1 0 1 1 0 8 0 pfstkey 112 2 0 2 1 1 0 1 0 8 0 pfstate 328 1 0 1 1 1 0 1 0 8 0 pfrule 1360 45 0 22 5 3 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 395 0 216 21 9 12 13 0 8 0 art_table 32 396 0 216 3 1 2 2 0 8 0 art_node 16 82 0 58 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 5 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 14 0 4 1 0 1 1 0 8 0 shmpl 112 51 0 7 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2616 0 1220 88 0 88 88 0 8 0 ffsino 240 2616 0 1220 83 0 83 83 0 8 0 nchpl 144 4001 0 2421 60 0 60 60 0 8 0 uvmvnodes 72 3024 0 0 55 0 55 55 0 8 0 vnodes 208 3024 0 0 160 0 160 160 0 8 0 namei 1024 12942 0 12942 32 31 1 1 0 8 1 vcpupl 1984 4 0 2 1 0 1 1 0 8 0 vmpool 528 4 0 2 1 0 1 1 0 8 0 pfiaddrpl 120 51 0 30 2 1 1 1 0 8 0 scxspl 192 12049 0 12049 12 11 1 1 0 8 1 plimitpl 152 53 0 46 1 0 1 1 0 8 0 sigapl 424 1141 0 1092 6 0 6 6 0 8 0 futexpl 56 16719 0 16719 32 31 1 1 0 8 1 knotepl 112 116 0 96 1 0 1 1 0 8 0 kqueuepl 144 82 0 77 1 0 1 1 0 8 0 pipepl 272 163 0 152 3 2 1 2 0 8 0 fdescpl 432 1085 0 1072 2 0 2 2 0 8 0 filepl 120 7874 0 7777 7 3 4 5 0 8 1 lockfpl 104 145 0 144 1 0 1 1 0 8 0 lockfspl 48 57 0 56 1 0 1 1 0 8 0 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 25 0 15 1 0 1 1 0 8 0 ucredpl 96 2055 0 2048 1 0 1 1 0 8 0 zombiepl 144 1092 0 1092 3 2 1 1 0 8 1 processpl 928 1141 0 1092 7 0 7 7 0 8 0 procpl 624 2222 0 2167 8 3 5 5 0 8 0 sosppl 128 2 0 2 1 0 1 1 0 8 1 sockpl 400 2125 0 2108 23 20 3 4 0 8 1 mcl64k 65536 36 0 36 14 14 0 1 0 8 0 mcl16k 16384 7 0 7 6 6 0 1 0 8 0 mcl12k 12288 21 0 21 16 16 0 1 0 8 0 mcl9k 9216 7 0 7 5 5 0 1 0 8 0 mcl8k 8192 27 0 27 15 14 1 1 0 8 1 mcl4k 4096 78 0 78 31 30 1 1 0 8 1 mcl2k2 2112 2 0 2 2 2 0 1 0 8 0 mcl2k 2048 94138 0 94081 24 16 8 15 0 8 0 mtagpl 96 72 0 57 3 2 1 1 0 8 0 mbufpl 256 154162 0 154026 30 19 11 16 0 8 0 mbufpl: pool(0xffffffff82865cd8:mbufpl): free list modified: page 0xfffffd8067ef6000; item ordinal 0; addr 0xfffffd8067ef6b00 (p 0xfffffd80671d0000); offset 0x0=0x0 pool(mbufpl): free list modified: page 0xfffffd8067ef6000; item ordinal 0; addr 0xfffffd8067ef6b00 (p 0xfffffd80671d0000); offset 0x0=0x0 mbufpl: pool(0xffffffff82865cd8:mbufpl): page inconsistency: page 0xfffffd8067ef6000; item ordinal 1; addr 0x98a37dc0ed60645f bufpl 280 5079 0 125 354 0 354 354 0 8 0 anonpl 16 109215 0 91847 78 4 74 76 0 107 0 amapchunkpl 152 4839 0 4663 24 14 10 15 0 158 0 amappl16 192 4002 0 3033 53 4 49 50 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 621 0 617 1 0 1 1 0 8 0 amappl13 168 99 0 95 1 0 1 1 0 8 0 amappl12 160 80 0 76 1 0 1 1 0 8 0 amappl11 152 668 0 658 1 0 1 1 0 8 0 amappl10 144 22 0 18 1 0 1 1 0 8 0 amappl9 136 537 0 535 1 0 1 1 0 8 0 amappl8 128 341 0 308 2 0 2 2 0 8 0 amappl7 120 116 0 103 1 0 1 1 0 8 0 amappl6 112 393 0 387 1 0 1 1 0 8 0 amappl5 104 402 0 390 1 0 1 1 0 8 0 amappl4 96 1045 0 1014 1 0 1 1 0 8 0 amappl3 88 406 0 395 1 0 1 1 0 8 0 amappl2 80 7530 0 7473 2 0 2 2 0 8 0 amappl1 72 33677 0 33280 23 14 9 17 0 8 0 amappl 80 2486 0 2434 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 53 0 7 1 0 1 1 0 8 0 uaddrrnd 24 1089 0 1074 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1089 0 1074 1 0 1 1 0 8 0 vmmpekpl 168 10774 0 10742 2 0 2 2 0 8 0 vmmpepl 168 137340 0 135380 246 150 96 154 0 357 0 vmsppl 272 1088 0 1074 3 1 2 2 0 8 0 pdppl 4096 2184 0 2150 7 2 5 6 0 8 0 pvpl 32 317973 0 297576 209 38 171 182 0 265 0 pmappl 200 1088 0 1074 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 402 0 174 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(ffffffff8247a1ba) at panic+0x164 sys/kern/subr_prf.c:218 pool_do_get(ffffffff82865cd8,2,ffff80001d723348) at pool_do_get+0x42a sys/kern/subr_pool.c:738 pool_get(ffffffff82865cd8,2) at pool_get+0xb5 sys/kern/subr_pool.c:581 m_copym(fffffd8067ef6100,3cc,20c,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd8067ef6100,3cc,20c,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000ac2220) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da70648,9,fffffd8067ef6a00,0,0,ffff80001d71c760) at tcp_usrreq+0xa54 sosend(fffffd805da70648,0,ffff80001d723828,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c760,4,ffff80001d723828,0,ffff80001d723910) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c760,ffff80001d7238c0,ffff80001d723910) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723990) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffea880, 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(ffffffff8247a1ba) at panic+0x164 sys/kern/subr_prf.c:218 pool_do_get(ffffffff82865cd8,2,ffff80001d723348) at pool_do_get+0x42a sys/kern/subr_pool.c:738 pool_get(ffffffff82865cd8,2) at pool_get+0xb5 sys/kern/subr_pool.c:581 m_copym(fffffd8067ef6100,3cc,20c,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd8067ef6100,3cc,20c,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000ac2220) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da70648,9,fffffd8067ef6a00,0,0,ffff80001d71c760) at tcp_usrreq+0xa54 sosend(fffffd805da70648,0,ffff80001d723828,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d71c760,4,ffff80001d723828,0,ffff80001d723910) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d71c760,ffff80001d7238c0,ffff80001d723910) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d723990) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffea880, count: -12