panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd806f226500+24 0x86e07a7ac709da96!=0x791f87faaa707e96 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 249124 53833 0 0 0 0 syz-executor.0 *433357 53833 0 0 0x4000000 1K syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff8264fa30) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff8264fa30) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892 pool_get() at pool_get+0x91 sys/kern/subr_pool.c:572 m_get(2,3) at m_get+0x4c sys/kern/uipc_mbuf.c:250 sbappendaddr(fffffd806f6c9000,fffffd806f6c9088,ffffffff823cf138,fffffd8068202000,0) at sbappendaddr+0x140 sys/kern/uipc_socket2.c:802 rtm_sendup(fffffd806f6c9000,fffffd8068202000,0) at rtm_sendup+0xe7 sys/net/rtsock.c:594 route_input(fffffd8068202000,0,0) at route_input+0x489 sys/net/rtsock.c:572 ifioctl(fffffd806f6c9780,8020699d,ffff800021b878b0,ffff800020abe780) at ifioctl+0xc09 sys/net/if.c:2216 sys_ioctl(ffff800020abe780,ffff800021b879c8,ffff800021b87a10) at sys_ioctl+0x5b9 syscall(ffff800021b87a90) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b87a90) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,c07a7e1f010) at Xsyscall+0x128 end of kernel end trace frame: 0xc0a72b896e0, 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 0xfffffd806f226500+24 0x86e07a7ac709da96!=0x791f87faaa707e96 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff8264fa30) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff8264fa30) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892 pool_get() at pool_get+0x91 sys/kern/subr_pool.c:572 m_get(2,3) at m_get+0x4c sys/kern/uipc_mbuf.c:250 sbappendaddr(fffffd806f6c9000,fffffd806f6c9088,ffffffff823cf138,fffffd8068202000,0) at sbappendaddr+0x140 sys/kern/uipc_socket2.c:802 rtm_sendup(fffffd806f6c9000,fffffd8068202000,0) at rtm_sendup+0xe7 sys/net/rtsock.c:594 route_input(fffffd8068202000,0,0) at route_input+0x489 sys/net/rtsock.c:572 ifioctl(fffffd806f6c9780,8020699d,ffff800021b878b0,ffff800020abe780) at ifioctl+0xc09 sys/net/if.c:2216 sys_ioctl(ffff800020abe780,ffff800021b879c8,ffff800021b87a10) at sys_ioctl+0x5b9 syscall(ffff800021b87a90) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b87a90) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,c07a7e1f010) at Xsyscall+0x128 end of kernel end trace frame: 0xc0a72b896e0, count: -12 ddb{1}> show registers rdi 0xffffffff81f47b97 db_enter+0x17 rsi 0x4293 __ALIGN_SIZE+0x3293 rbp 0xffff800021b87420 rbx 0xffff800021b874d0 rdx 0x4294 __ALIGN_SIZE+0x3294 rcx 0xffff800023d82000 rax 0xffff800023d82000 r8 0xffffffff81928d4f kprintf+0x16f r9 0x1 r10 0x25 r11 0xf1e7255628d2b6c6 r12 0x3000000008 r13 0xffff800021b87430 r14 0x100 r15 0x1 rip 0xffffffff81f47b98 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021b87410 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=433357 stat=onproc flags process=0 proc=4000000 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020abeee8,0xffffffff8264b068 process=0xffff800020adc000 user=0xffff800021b82000, vmspace=0xfffffd807f00a8a0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 53833 249124 3550 0 7 0 syz-executor.0 *53833 433357 3550 0 7 0x4000000 syz-executor.0 3550 422894 11751 0 3 0x82 nanosleep syz-executor.0 94114 73835 11751 0 3 0x82 piperd syz-executor.1 11751 58300 44312 0 3 0x82 thrsleep syz-fuzzer 11751 417381 44312 0 3 0x4000082 nanosleep syz-fuzzer 11751 444753 44312 0 3 0x4000082 thrsleep syz-fuzzer 11751 417782 44312 0 3 0x4000082 thrsleep syz-fuzzer 11751 5191 44312 0 3 0x4000082 thrsleep syz-fuzzer 11751 368932 44312 0 3 0x4000082 thrsleep syz-fuzzer 11751 99176 44312 0 3 0x4000082 thrsleep syz-fuzzer 11751 388346 44312 0 3 0x4000082 nanosleep syz-fuzzer 11751 24054 44312 0 3 0x4000082 thrsleep syz-fuzzer 11751 39663 44312 0 3 0x4000082 kqread syz-fuzzer 44312 280763 45916 0 3 0x10008a pause ksh 45916 468011 91780 0 3 0x92 select sshd 84986 174825 1 0 3 0x100083 ttyin getty 91780 220861 1 0 3 0x80 select sshd 14934 131990 25 74 3 0x100092 bpf pflogd 25 447730 1 0 3 0x80 netio pflogd 79982 470141 91488 73 3 0x100090 kqread syslogd 91488 406550 1 0 3 0x100082 netio syslogd 59918 121202 1 77 2 0x100090 dhclient 5080 236590 1 0 3 0x80 poll dhclient 69968 233954 0 0 3 0x14200 pgzero zerothread 1267 143138 0 0 3 0x14200 aiodoned aiodoned 55603 246291 0 0 3 0x14200 syncer update 2492 233220 0 0 3 0x14200 cleaner cleaner 4428 193375 0 0 3 0x14200 reaper reaper 72091 284094 0 0 3 0x14200 pgdaemon pagedaemon 50603 197901 0 0 3 0x14200 bored crynlk 98080 509782 0 0 3 0x14200 bored crypto 78881 214165 0 0 3 0x40014200 acpi0 acpi0 98020 209728 0 0 3 0x40014200 idle1 33 241906 0 0 3 0x14200 bored softnet 39042 157020 0 0 3 0x14200 bored systqmp 50489 258134 0 0 3 0x14200 bored systq 18273 154670 0 0 3 0x40014200 bored softclock 1877 315566 0 0 3 0x40014200 idle0 53907 282996 0 0 3 0x14200 bored smr 1 49432 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 53833 (syz-executor.0) thread 0xffff800020abe780 (433357) exclusive kernel_lock &kernel_lock r = 1 (0xffffffff826426f0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555 #2 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9486 6402K 7048K 78643K 11159 0 0 pcb 14 8K 8K 78643K 34 0 0 rtable 85 2K 3K 78643K 257 0 0 ifaddr 43 10K 11K 78643K 59 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1486 0 0 iov 0 0K 16K 78643K 25 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1222 77K 77K 78643K 1406 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 1K 78643K 2 0 0 VM map 6 3K 3K 78643K 6 0 0 sem 8 0K 0K 78643K 8 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 155 0 0 proc 61 63K 83K 78643K 484 0 0 subproc 32 2K 2K 78643K 51 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 2 0 0 in_multi 22 1K 2K 78643K 44 0 0 ether_multi 1 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 42 185K 185K 78643K 42 0 0 exec 0 0K 1K 78643K 228 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 107 54K 54K 78643K 1446 0 0 UVM aobj 7 2K 2K 78643K 8 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 20 0 0 NDP 10 0K 0K 78643K 16 0 0 temp 118 3554K 4191K 78643K 6518 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 8 0 4 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 25 0 23 1 0 1 1 0 8 0 rtentry 112 57 0 23 2 0 2 2 0 8 0 unpcb 120 79 0 69 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 19 0 19 1 1 0 1 0 8 0 tcpcb 544 34 0 30 1 0 1 1 0 8 0 inpcb 280 132 0 123 1 0 1 1 0 8 0 nd6 48 6 0 4 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 16 0 3 1 0 1 1 0 8 0 pfstkey 112 16 0 3 1 0 1 1 0 8 0 pfstate 328 16 0 3 2 0 2 2 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 265 0 95 14 0 14 14 0 8 3 art_table 32 266 0 95 2 0 2 2 0 8 0 art_node 16 56 0 25 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 6 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 6 0 0 1 0 1 1 0 8 0 shmpl 112 6 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1587 0 185 46 0 46 46 0 8 0 ffsino 272 1587 0 185 94 0 94 94 0 8 0 nchpl 144 2039 0 433 61 0 61 61 0 8 0 uvmvnodes 72 1798 0 0 33 0 33 33 0 8 0 vnodes 208 1798 0 0 95 0 95 95 0 8 0 namei 1024 5612 0 5612 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 552 4 0 0 1 0 1 1 0 8 0 scxspl 192 6257 0 6257 11 8 3 7 0 8 3 plimitpl 152 24 0 16 1 0 1 1 0 8 0 sigapl 432 352 0 337 3 1 2 3 0 8 0 futexpl 56 2363 0 2363 1 0 1 1 0 8 1 knotepl 112 88 0 69 1 0 1 1 0 8 0 kqueuepl 104 25 0 22 1 0 1 1 0 8 0 pipepl 112 260 0 240 2 1 1 1 0 8 0 fdescpl 488 353 0 337 3 0 3 3 0 8 0 filepl 152 2163 0 2059 5 0 5 5 0 8 0 lockfpl 104 42 0 41 1 0 1 1 0 8 0 lockfspl 48 14 0 13 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 19 0 8 1 0 1 1 0 8 0 ucredpl 96 146 0 137 1 0 1 1 0 8 0 zombiepl 144 338 0 338 2 1 1 1 0 8 1 processpl 896 369 0 338 4 0 4 4 0 8 0 procpl 632 633 0 592 5 1 4 5 0 8 0 srpgc 64 4 0 4 1 0 1 1 0 8 1 sockpl 384 236 0 215 3 0 3 3 0 8 0 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 170 0 0 21 0 21 21 0 8 0 mtagpl 80 2 0 0 1 0 1 1 0 8 0 mbufpl 256 193 0 0 11 0 11 11 0 8 0 bufpl 256 6607 0 1321 331 0 331 331 0 8 0 anonpl 16 51798 0 38610 89 2 87 87 0 124 16 amapchunkpl 152 1738 0 1628 7 1 6 7 0 158 0 amappl16 192 1878 0 894 62 4 58 62 0 8 8 amappl15 184 4 0 3 1 0 1 1 0 8 0 amappl14 176 84 0 80 2 1 1 1 0 8 0 amappl13 168 8 0 7 1 0 1 1 0 8 0 amappl12 160 7 0 5 2 1 1 1 0 8 0 amappl11 152 54 0 39 1 0 1 1 0 8 0 amappl10 144 10 0 7 1 0 1 1 0 8 0 amappl9 136 684 0 677 1 0 1 1 0 8 0 amappl8 128 243 0 216 2 0 2 2 0 8 0 amappl7 120 43 0 38 1 0 1 1 0 8 0 amappl6 112 77 0 64 1 0 1 1 0 8 0 amappl5 104 149 0 133 1 0 1 1 0 8 0 amappl4 96 556 0 527 1 0 1 1 0 8 0 amappl3 88 208 0 203 1 0 1 1 0 8 0 amappl2 80 1852 0 1780 4 2 2 3 0 8 0 amappl1 72 17781 0 17337 25 15 10 20 0 8 0 amappl 80 900 0 860 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 7 0 1 1 0 1 1 0 8 0 uaddrrnd 24 357 0 337 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 357 0 337 1 0 1 1 0 8 0 vmmpekpl 168 6949 0 6917 2 0 2 2 0 8 0 vmmpepl 168 52294 0 50177 147 16 131 131 0 357 36 vmsppl 368 352 0 337 2 0 2 2 0 8 0 pdppl 4096 721 0 678 6 0 6 6 0 8 0 pvpl 32 175298 0 158974 206 2 204 204 0 265 37 pmappl 232 356 0 337 2 0 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 494 0 4 14 0 14 14 0 8 0