panic: pool_do_get: mbufpl free list modified: page 0xfffffd805810c000; item addr 0xfffffd805810c500; offset 0x0=0x0 != 0xa17458aaf3e4326e Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *456693 78421 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,ffff80001d6c9408) 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(fffffd805810c400,0,2bc,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd805810c400,0,2bc,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000ac5030) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da70648,9,fffffd805810c400,0,0,ffff80001d6fc9f0) at tcp_usrreq+0xa54 sosend(fffffd805da70648,0,ffff80001d6c98e8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d6fc9f0,4,ffff80001d6c98e8,0,ffff80001d6c99d0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d6fc9f0,ffff80001d6c9980,ffff80001d6c99d0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6c9a50) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc7670, 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 0xfffffd805810c000; item addr 0xfffffd805810c500; offset 0x0=0x0 != 0xa17458aaf3e4326e 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,ffff80001d6c9408) 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(fffffd805810c400,0,2bc,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd805810c400,0,2bc,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000ac5030) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da70648,9,fffffd805810c400,0,0,ffff80001d6fc9f0) at tcp_usrreq+0xa54 sosend(fffffd805da70648,0,ffff80001d6c98e8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d6fc9f0,4,ffff80001d6c98e8,0,ffff80001d6c99d0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d6fc9f0,ffff80001d6c9980,ffff80001d6c99d0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6c9a50) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc7670, count: -12 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d6c9270 rbx 0xffff80001d6c9320 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffff80001d6c9230 r9 0xffffffff81ceca3f kprintf+0x15f r10 0x1 r11 0xac58365d0ec06fd4 r12 0x3000000008 r13 0xffff80001d6c9280 r14 0x100 r15 0x1 rip 0xffffffff82063088 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d6c9260 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (sshd) pid=456693 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d6fd8c0,0xffff80001d6fc020 process=0xffff80001d6ff288 user=0xffff80001d6c4000, 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 3350 78880 0 0 3 0x14200 bored sosplice 98110 102043 67894 0 2 0x2 syz-executor.1 71938 511076 0 0 3 0x14200 acct acct 34776 234537 67894 0 3 0x2 biowait syz-executor.0 67894 426552 76166 0 3 0x82 thrsleep syz-fuzzer 67894 66423 76166 0 2 0x4000002 syz-fuzzer 67894 232281 76166 0 2 0x4000002 syz-fuzzer 67894 225921 76166 0 3 0x4000082 thrsleep syz-fuzzer 67894 283587 76166 0 3 0x4000082 thrsleep syz-fuzzer 67894 9329 76166 0 3 0x4000082 thrsleep syz-fuzzer 67894 347014 76166 0 3 0x4000082 thrsleep syz-fuzzer 76166 275079 78421 0 3 0x10008a pause ksh *78421 456693 80460 0 7 0x12 sshd 51351 152000 1 0 3 0x100083 ttyin getty 80460 35602 1 0 3 0x80 select sshd 3382 294220 74398 73 3 0x100090 kqread syslogd 74398 353459 1 0 3 0x100082 netio syslogd 55887 98605 1 77 3 0x100090 poll dhclient 93559 352314 1 0 3 0x80 poll dhclient 37819 493761 0 0 3 0x14200 bored smr 27254 457836 0 0 3 0x14200 pgzero zerothread 52347 390988 0 0 3 0x14200 aiodoned aiodoned 63083 222819 0 0 3 0x14200 syncer update 28667 331606 0 0 3 0x14200 cleaner cleaner 57738 437643 0 0 3 0x14200 reaper reaper 53415 25699 0 0 3 0x14200 pgdaemon pagedaemon 55989 395505 0 0 3 0x14200 bored crynlk 24753 303035 0 0 3 0x14200 bored crypto 72311 239110 0 0 3 0x40014200 acpi0 acpi0 23539 496710 0 0 3 0x14200 bored softnet 22948 375968 0 0 3 0x14200 bored systqmp 67817 477380 0 0 3 0x14200 bored systq 75921 113932 0 0 3 0x40014200 bored softclock 40367 132326 0 0 3 0x40014200 idle0 1 224094 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 9493 6342K 6977K 78643K 11241 0 pcb 13 8K 8K 78643K 43 0 rtable 112 4K 8K 78643K 485 0 ifaddr 73 15K 15K 78643K 142 0 sysctl 2 0K 0K 78643K 2 0 counters 21 16K 16K 78643K 30 0 ioctlops 0 0K 4K 78643K 229 0 iov 0 0K 12K 78643K 32 0 mount 1 1K 1K 78643K 1 0 vnodes 1222 77K 77K 78643K 1437 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 7 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 67 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 4 9K 25K 78643K 401 0 proc 50 38K 63K 78643K 426 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 8 0 in_multi 52 2K 3K 78643K 81 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 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 214 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 130 56K 60K 78643K 1764 0 UVM aobj 30 4K 4K 78643K 34 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 17 0 NDP 11 0K 0K 78643K 27 0 temp 98 3860K 3924K 78643K 3341 0 kqueue 3 4K 10K 78643K 22 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 12 0 6 1 0 1 1 0 8 0 rtpcb 88 113 0 111 1 0 1 1 0 8 0 rtentry 112 73 0 28 2 0 2 2 0 8 0 unpcb 120 195 0 187 1 0 1 1 0 8 0 syncache 272 9 0 9 2 1 1 1 0 8 1 tcpqe 32 78 0 78 2 1 1 1 0 8 1 tcpcb 592 83 0 67 2 0 2 2 0 8 0 ipq 40 2 0 2 1 0 1 1 0 8 1 ipqe 40 8 0 8 1 0 1 1 0 8 1 inpcb 296 269 0 262 3 1 2 2 0 8 1 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 15 0 7 1 0 1 1 0 8 0 pfrktable 1344 35 0 33 1 0 1 1 0 8 0 pftag 88 5 0 4 1 0 1 1 0 8 0 pfqueue 264 2 0 0 1 0 1 1 0 8 0 pfrule 1360 10 0 4 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 290 0 70 15 0 15 15 0 8 1 art_table 32 291 0 70 2 0 2 2 0 8 0 art_node 16 72 0 32 1 0 1 1 0 8 0 semapl 112 63 0 53 1 0 1 1 0 8 0 shmpl 112 31 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1917 0 517 88 0 88 88 0 8 0 ffsino 240 1917 0 517 83 0 83 83 0 8 0 nchpl 144 2785 0 1209 60 0 60 60 0 8 0 uvmvnodes 72 2121 0 0 39 0 39 39 0 8 0 vnodes 208 2121 0 0 112 0 112 112 0 8 0 namei 1024 7473 0 7473 3 2 1 1 0 8 1 vcpupl 1984 3 0 0 1 0 1 1 0 8 0 vmpool 528 7 0 4 1 0 1 1 0 8 0 pfiaddrpl 120 12 0 10 1 0 1 1 0 8 0 scxspl 200 7773 0 7772 1 0 1 1 0 8 0 plimitpl 152 39 0 32 1 0 1 1 0 8 0 sigapl 424 586 0 557 4 0 4 4 0 8 0 futexpl 56 6828 0 6828 3 2 1 1 0 8 1 knotepl 112 94 0 74 1 0 1 1 0 8 0 kqueuepl 152 36 0 34 1 0 1 1 0 8 0 pipepl 272 125 0 114 1 0 1 1 0 8 0 fdescpl 432 570 0 557 2 0 2 2 0 8 0 filepl 120 3302 0 3205 4 0 4 4 0 8 0 lockfpl 104 95 0 94 1 0 1 1 0 8 0 lockfspl 48 34 0 33 1 0 1 1 0 8 0 sessionpl 120 18 0 8 1 0 1 1 0 8 0 pgrppl 48 24 0 14 1 0 1 1 0 8 0 ucredpl 96 326 0 319 1 0 1 1 0 8 0 zombiepl 144 557 0 557 2 1 1 1 0 8 1 processpl 944 586 0 557 4 0 4 4 0 8 0 procpl 632 1006 0 971 4 0 4 4 0 8 0 sosppl 144 8 0 8 1 0 1 1 0 8 1 sockpl 400 579 0 562 5 2 3 3 0 8 1 mcl64k 65536 25 0 25 3 2 1 1 0 8 1 mcl16k 16384 2 0 2 1 0 1 1 0 8 1 mcl12k 12288 10 0 10 2 1 1 1 0 8 1 mcl9k 9216 4 0 4 2 1 1 1 0 8 1 mcl8k 8192 12 0 12 3 2 1 1 0 8 1 mcl4k 4096 39 0 39 4 3 1 1 0 8 1 mcl2k2 2112 3 0 3 3 2 1 1 0 8 1 mcl2k 2048 94253 0 94216 17 10 7 13 0 8 1 mtagpl 96 45 0 22 2 1 1 1 0 8 0 mbufpl 256 152147 0 152018 37 5 32 32 0 8 20 mbufpl: pool(0xffffffff82819ed0:mbufpl): free list modified: page 0xfffffd805810c000; item ordinal 0; addr 0xfffffd805810c500 (p 0xfffffd8059869000); offset 0x0=0x0 pool(mbufpl): free list modified: page 0xfffffd805810c000; item ordinal 0; addr 0xfffffd805810c500 (p 0xfffffd8059869000); offset 0x0=0x0 mbufpl: pool(0xffffffff82819ed0:mbufpl): page inconsistency: page 0xfffffd805810c000; item ordinal 1; addr 0x57a217b230557dd3 bufpl 280 4045 0 115 281 0 281 281 0 8 0 anonpl 16 73346 0 55588 92 14 78 85 0 107 4 amapchunkpl 152 2751 0 2582 14 4 10 12 0 158 2 amappl16 192 2763 0 1792 61 11 50 58 0 8 1 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 186 0 184 2 1 1 1 0 8 0 amappl13 168 73 0 70 1 0 1 1 0 8 0 amappl12 160 72 0 69 1 0 1 1 0 8 0 amappl11 152 178 0 167 1 0 1 1 0 8 0 amappl10 144 12 0 9 1 0 1 1 0 8 0 amappl9 136 338 0 336 1 0 1 1 0 8 0 amappl8 128 321 0 293 1 0 1 1 0 8 0 amappl7 120 109 0 99 1 0 1 1 0 8 0 amappl6 112 154 0 148 1 0 1 1 0 8 0 amappl5 104 549 0 538 1 0 1 1 0 8 0 amappl4 96 439 0 411 1 0 1 1 0 8 0 amappl3 88 330 0 322 1 0 1 1 0 8 0 amappl2 80 3710 0 3654 2 0 2 2 0 8 0 amappl1 72 21636 0 21238 21 11 10 17 0 8 0 amappl 80 1260 0 1207 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 33 0 4 1 0 1 1 0 8 0 uaddrrnd 24 577 0 561 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 577 0 561 1 0 1 1 0 8 0 vmmpekpl 168 7441 0 7416 2 0 2 2 0 8 0 vmmpepl 168 76526 0 74571 135 38 97 124 0 357 6 vmsppl 272 576 0 561 2 0 2 2 0 8 0 pdppl 4096 1160 0 1125 6 1 5 6 0 8 0 pvpl 32 217436 0 196764 212 28 184 199 0 265 12 pmappl 200 576 0 561 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 277 0 30 8 0 8 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,ffff80001d6c9408) 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(fffffd805810c400,0,2bc,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd805810c400,0,2bc,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000ac5030) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da70648,9,fffffd805810c400,0,0,ffff80001d6fc9f0) at tcp_usrreq+0xa54 sosend(fffffd805da70648,0,ffff80001d6c98e8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d6fc9f0,4,ffff80001d6c98e8,0,ffff80001d6c99d0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d6fc9f0,ffff80001d6c9980,ffff80001d6c99d0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6c9a50) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc7670, 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,ffff80001d6c9408) 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(fffffd805810c400,0,2bc,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd805810c400,0,2bc,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000ac5030) at tcp_output+0x154d sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd805da70648,9,fffffd805810c400,0,0,ffff80001d6fc9f0) at tcp_usrreq+0xa54 sosend(fffffd805da70648,0,ffff80001d6c98e8,0,0,80) at sosend+0x669 sys/kern/uipc_socket.c:555 dofilewritev(ffff80001d6fc9f0,4,ffff80001d6c98e8,0,ffff80001d6c99d0) at dofilewritev+0x1ab sys/kern/sys_generic.c:365 sys_write(ffff80001d6fc9f0,ffff80001d6c9980,ffff80001d6c99d0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff80001d6c9a50) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc7670, count: -12