login: panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd806d662600+16 0x0!=0x413546d36dd8bfe2 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 312190 63298 0 0x2 0x4000000 0 syz-execprog * 56957 27508 0 0x12 0 1 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821f6206) at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff82677bf0) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff82677bf0) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff82677bf0,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_copym(fffffd806d662500,0,54,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd806d662500,0,54,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000a0a660) at tcp_output+0x15ba sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd806eb4baf8,9,fffffd806d662500,0,0,ffff800020ed1d50) at tcp_usrreq+0xa55 sosend(fffffd806eb4baf8,0,ffff800020e8d0f8,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:549 dofilewritev(ffff800020ed1d50,4,ffff800020e8d0f8,0,ffff800020e8d1e0) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff800020ed1d50,ffff800020e8d190,ffff800020e8d1e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800020e8d260) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e8d260) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbbb60, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd806d662600+16 0x0!=0x413546d36dd8bfe2 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821f6206) at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff82677bf0) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff82677bf0) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff82677bf0,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_copym(fffffd806d662500,0,54,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd806d662500,0,54,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000a0a660) at tcp_output+0x15ba sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd806eb4baf8,9,fffffd806d662500,0,0,ffff800020ed1d50) at tcp_usrreq+0xa55 sosend(fffffd806eb4baf8,0,ffff800020e8d0f8,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:549 dofilewritev(ffff800020ed1d50,4,ffff800020e8d0f8,0,ffff800020e8d1e0) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff800020ed1d50,ffff800020e8d190,ffff800020e8d1e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800020e8d260) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e8d260) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbbb60, count: -12 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e8ca90 rbx 0xffff800020e8cb40 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81f8ff4f kprintf+0x16f r9 0x1 r10 0x7e563b72d7feaced r11 0x62b9cefc25bedb8f r12 0x3000000008 r13 0xffff800020e8caa0 r14 0x100 r15 0x1 rip 0xffffffff815491a8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e8ca80 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (sshd) pid=56957 stat=onproc flags process=12 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020ed0280,0xffff800020ed0020 process=0xffff800020ec8f78 user=0xffff800020e88000, vmspace=0xfffffd806e95d008 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 5252 61294 63298 0 2 0x2 syz-executor.0 63298 278480 58328 0 3 0x82 thrsleep syz-execprog 63298 312190 58328 0 7 0x4000002 syz-execprog 63298 92855 58328 0 3 0x4000082 nanosleep syz-execprog 63298 508131 58328 0 3 0x4000082 thrsleep syz-execprog 63298 214085 58328 0 3 0x4000082 thrsleep syz-execprog 63298 366580 58328 0 3 0x4000082 thrsleep syz-execprog 63298 413720 58328 0 3 0x4000082 thrsleep syz-execprog 63298 293770 58328 0 3 0x4000082 kqread syz-execprog 63298 323809 58328 0 3 0x4000082 thrsleep syz-execprog 58328 477854 27508 0 3 0x10008a pause ksh *27508 56957 92311 0 7 0x12 sshd 12377 358514 1 0 3 0x100083 ttyin getty 92311 94799 1 0 3 0x80 select sshd 65542 446723 33654 74 3 0x100092 bpf pflogd 33654 47147 1 0 3 0x80 netio pflogd 65046 401768 90237 73 3 0x100090 kqread syslogd 90237 151368 1 0 3 0x100082 netio syslogd 18634 12302 1 77 3 0x100090 poll dhclient 8924 31394 1 0 3 0x80 poll dhclient 53542 175598 0 0 3 0x14200 bored smr 32135 435390 0 0 3 0x14200 pgzero zerothread 50686 388440 0 0 3 0x14200 aiodoned aiodoned 99936 329642 0 0 3 0x14200 syncer update 12182 462390 0 0 3 0x14200 cleaner cleaner 67440 80946 0 0 3 0x14200 reaper reaper 27080 311752 0 0 3 0x14200 pgdaemon pagedaemon 42285 141788 0 0 3 0x14200 bored crynlk 68195 10937 0 0 3 0x14200 bored crypto 33269 383701 0 0 3 0x40014200 acpi0 acpi0 50316 130458 0 0 3 0x40014200 idle1 55443 315305 0 0 3 0x14200 bored softnet 21058 203352 0 0 3 0x14200 bored systqmp 33728 482536 0 0 3 0x14200 bored systq 14981 374434 0 0 3 0x40014200 bored softclock 20585 216491 0 0 3 0x40014200 idle0 1 265513 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 27508 (sshd) thread 0xffff800020ed1d50 (56957) exclusive rwlock netlock r = 0 (0xffffffff8252ae18) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 solock+0x5a sys/kern/uipc_socket2.c:282 #2 sosend+0x559 sys/kern/uipc_socket.c:537 #3 dofilewritev+0x1b6 sys/kern/sys_generic.c:365 #4 sys_write+0x83 sys/kern/sys_generic.c:285 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #6 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9466 6395K 6395K 78643K 10557 0 pcb 13 8K 8K 78643K 13 0 rtable 83 2K 2K 78643K 163 0 ifaddr 37 9K 9K 78643K 529 0 counters 41 33K 33K 78643K 41 0 ioctlops 0 0K 4K 78643K 1468 0 mount 1 1K 1K 78643K 1 0 vnodes 1183 74K 75K 78643K 1188 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 2 4K 12K 78643K 508 0 proc 59 63K 83K 78643K 398 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 22 1K 1K 78643K 22 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 19 95K 95K 78643K 19 0 exec 0 0K 1K 78643K 197 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 82 12K 12K 78643K 1453 0 UVM aobj 2 2K 2K 78643K 2 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 5 0K 0K 78643K 7 0 temp 29 3033K 3097K 78643K 2862 0 kqueue 3 4K 4K 78643K 3 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 4 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 17 0 15 1 0 1 1 0 8 0 rtentry 112 34 0 1 1 0 1 1 0 8 0 unpcb 120 29 0 19 1 0 1 1 0 8 0 syncache 264 5 0 5 2 2 0 1 0 8 0 tcpcb 544 8 0 5 1 0 1 1 0 8 0 inpcb 280 524 0 518 1 0 1 1 0 8 0 nd6 48 3 0 0 1 0 1 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 10 0 2 1 0 1 1 0 8 0 pfstkey 112 10 0 2 1 0 1 1 0 8 0 pfstate 328 10 0 2 1 0 1 1 0 8 0 pfrule 1360 21 0 15 2 0 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 145 0 0 10 0 10 10 0 8 0 art_table 32 146 0 0 2 0 2 2 0 8 0 art_node 16 33 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1914 0 512 88 0 88 88 0 8 0 ffsino 272 1914 0 512 94 0 94 94 0 8 0 nchpl 144 2620 0 1019 60 0 60 60 0 8 0 uvmvnodes 72 1924 0 0 35 0 35 35 0 8 0 vnodes 208 1924 0 0 102 0 102 102 0 8 0 namei 1024 6179 0 6179 2 1 1 1 0 8 1 percpumem 16 31 0 0 1 0 1 1 0 8 0 scxspl 192 6805 0 6805 10 9 1 7 0 8 1 plimitpl 152 15 0 8 1 0 1 1 0 8 0 sigapl 424 731 0 702 4 0 4 4 0 8 0 knotepl 112 47 0 36 1 0 1 1 0 8 0 kqueuepl 144 2 0 0 1 0 1 1 0 8 0 pipelkpl 48 77 0 70 2 1 1 1 0 8 0 pipepl 120 154 0 141 2 1 1 1 0 8 0 fdescpl 496 716 0 702 3 0 3 3 0 8 0 filepl 152 2104 0 2045 3 0 3 3 0 8 0 lockfpl 104 5 0 4 1 0 1 1 0 8 0 lockfspl 48 3 0 2 1 0 1 1 0 8 0 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 19 0 9 1 0 1 1 0 8 0 ucredpl 96 62 0 53 1 0 1 1 0 8 0 zombiepl 144 702 0 702 2 1 1 1 0 8 1 processpl 984 731 0 702 5 1 4 5 0 8 0 procpl 624 739 0 702 4 1 3 4 0 8 0 sockpl 400 570 0 552 2 0 2 2 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 68 0 0 9 0 9 9 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 105 0 0 6 0 6 6 0 8 0 mbufpl: pool(0xffffffff82677bf0:mbufpl): free list modified: page 0xfffffd806d8f6000; item ordinal 3; addr 0xfffffd806d8f6200 (p 0xfffffd806dfaa000); offset 0x0=0x0 mbufpl: pool(0xffffffff82677bf0:mbufpl): page inconsistency: page 0xfffffd806d8f6000; item ordinal 4; addr 0x1d20f5f2503ae74c bufpl 280 3372 0 145 231 0 231 231 0 8 0 anonpl 16 35614 0 33166 13 2 11 12 0 124 0 amapchunkpl 152 1337 0 1251 5 1 4 5 0 158 0 amappl16 192 1679 0 1591 5 0 5 5 0 8 0 amappl15 184 3 0 1 1 0 1 1 0 8 0 amappl14 176 522 0 517 1 0 1 1 0 8 0 amappl13 168 512 0 510 2 1 1 1 0 8 0 amappl11 152 53 0 38 1 0 1 1 0 8 0 amappl10 144 17 0 13 1 0 1 1 0 8 0 amappl9 136 655 0 653 1 0 1 1 0 8 0 amappl8 128 271 0 263 1 0 1 1 0 8 0 amappl7 120 115 0 102 1 0 1 1 0 8 0 amappl6 112 26 0 20 2 1 1 1 0 8 0 amappl5 104 613 0 599 1 0 1 1 0 8 0 amappl4 96 490 0 461 1 0 1 1 0 8 0 amappl3 88 109 0 103 1 0 1 1 0 8 0 amappl2 80 1909 0 1846 3 1 2 2 0 8 0 amappl1 72 25016 0 24563 23 7 16 18 0 8 6 amappl 80 966 0 936 1 0 1 1 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 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 716 0 702 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 716 0 702 1 0 1 1 0 8 0 vmmpekpl 168 16262 0 16239 2 0 2 2 0 8 0 vmmpepl 168 85620 0 84567 82 12 70 72 0 357 22 vmsppl 368 715 0 702 2 0 2 2 0 8 0 pdppl 4096 1440 0 1404 6 0 6 6 0 8 0 pvpl 32 248384 0 243165 109 7 102 104 0 265 58 pmappl 232 715 0 702 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 233 0 4 7 0 7 7 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff824e5ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff8266f628) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8266f628) at __mp_lock+0x127 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f syscall(ffff800020f19540) at syscall+0x3d7 mi_syscall sys/sys/syscall_mi.h:87 [inline] syscall(ffff800020f19540) at syscall+0x3d7 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc000045f38, count: 7 ddb{0}> trace x86_ipi_db(ffffffff824e5ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff8266f628) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8266f628) at __mp_lock+0x127 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f syscall(ffff800020f19540) at syscall+0x3d7 mi_syscall sys/sys/syscall_mi.h:87 [inline] syscall(ffff800020f19540) at syscall+0x3d7 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc000045f38, count: -8 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821f6206) at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff82677bf0) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff82677bf0) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff82677bf0,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_copym(fffffd806d662500,0,54,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd806d662500,0,54,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000a0a660) at tcp_output+0x15ba sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd806eb4baf8,9,fffffd806d662500,0,0,ffff800020ed1d50) at tcp_usrreq+0xa55 sosend(fffffd806eb4baf8,0,ffff800020e8d0f8,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:549 dofilewritev(ffff800020ed1d50,4,ffff800020e8d0f8,0,ffff800020e8d1e0) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff800020ed1d50,ffff800020e8d190,ffff800020e8d1e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800020e8d260) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e8d260) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbbb60, count: 3 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821f6206) at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff82677bf0) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff82677bf0) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff82677bf0,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_copym(fffffd806d662500,0,54,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd806d662500,0,54,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000a0a660) at tcp_output+0x15ba sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd806eb4baf8,9,fffffd806d662500,0,0,ffff800020ed1d50) at tcp_usrreq+0xa55 sosend(fffffd806eb4baf8,0,ffff800020e8d0f8,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:549 dofilewritev(ffff800020ed1d50,4,ffff800020e8d0f8,0,ffff800020e8d1e0) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff800020ed1d50,ffff800020e8d190,ffff800020e8d1e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800020e8d260) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e8d260) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbbb60, count: -12