panic: pool_cache_item_magic_check: mbufpl cpu pfarneiec : likestrn meol didifiagedn:os ititecm aassdderr ti0xonf f"ff!_fkd8e0r6ned8l9_lf9oc00k_+24he l0dx(cb)"0 fea4fi5lef0d:0 0faie6lbe 3"!=/0syxzckba0el4lefrd/fm6af2n1a1ge6brs3/ muStopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 165803 94455 0 0 0 1 syz-executor.0 *301671 3739 0 0 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821fbcf9) at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff82657878) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff82657878) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff82657878,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_copym(fffffd806a405100,0,3b9aca00,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd806a405100,0,3b9aca00,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 rtm_sendup(fffffd806f6d8190,fffffd806a405100,1) at rtm_sendup+0x5f sys/net/rtsock.c:588 route_input(fffffd806a405100,0,2) at route_input+0x1cc sys/net/rtsock.c:560 rtm_addr(c,ffff800000a0d300) at rtm_addr+0x10b sys/net/rtsock.c:1751 rt_ifa_add(ffff800000a0d300,240404,ffff800000a0d340,0) at rt_ifa_add+0x2a7 sys/net/route.c:1140 rt_ifa_addlocal(ffff800000a0d300) at rt_ifa_addlocal+0x16d sys/net/route.c:1238 in_ifinit(ffff800000a28000,ffff800000a0d300,ffff800000a0d358,0) at in_ifinit+0x1cf sys/netinet/in.c:688 in_ioctl_change_ifaddr(8040691a,ffff800022b812d0,ffff800000a28000,1) at in_ioctl_change_ifaddr+0x68c sys/netinet/in.c:519 in_ioctl(8040691a,ffff800022b812d0,ffff800000a28000,1) at in_ioctl+0x2fb sys/netinet/in.c:246 ifioctl(fffffd8064d50660,8040691a,ffff800022b812d0,ffff800020ed84f8) at ifioctl+0xe70 sys/net/if.c:2289 end trace frame: 0xffff800022b812c0, count: 0 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd806d89f900+24 0xcb0e4f5f000ae6b3!=0xcb0e4fdf6f2116b3 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821fbcf9) at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff82657878) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff82657878) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff82657878,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_copym(fffffd806a405100,0,3b9aca00,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd806a405100,0,3b9aca00,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 rtm_sendup(fffffd806f6d8190,fffffd806a405100,1) at rtm_sendup+0x5f sys/net/rtsock.c:588 route_input(fffffd806a405100,0,2) at route_input+0x1cc sys/net/rtsock.c:560 rtm_addr(c,ffff800000a0d300) at rtm_addr+0x10b sys/net/rtsock.c:1751 rt_ifa_add(ffff800000a0d300,240404,ffff800000a0d340,0) at rt_ifa_add+0x2a7 sys/net/route.c:1140 rt_ifa_addlocal(ffff800000a0d300) at rt_ifa_addlocal+0x16d sys/net/route.c:1238 in_ifinit(ffff800000a28000,ffff800000a0d300,ffff800000a0d358,0) at in_ifinit+0x1cf sys/netinet/in.c:688 in_ioctl_change_ifaddr(8040691a,ffff800022b812d0,ffff800000a28000,1) at in_ioctl_change_ifaddr+0x68c sys/netinet/in.c:519 in_ioctl(8040691a,ffff800022b812d0,ffff800000a28000,1) at in_ioctl+0x2fb sys/netinet/in.c:246 ifioctl(fffffd8064d50660,8040691a,ffff800022b812d0,ffff800020ed84f8) at ifioctl+0xe70 sys/net/if.c:2289 soo_ioctl(fffffd806cb5c600,8040691a,ffff800022b812d0,ffff800020ed84f8) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020ed84f8,ffff800022b813e8,ffff800022b81430) at sys_ioctl+0x4a5 syscall(ffff800022b814b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800022b814b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x44a2c57b0f0, count: -18 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800022b809e0 rbx 0xffff800022b80a90 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81639f3f kprintf+0x16f r9 0x1 r10 0x2 r11 0xc95b002f029cca57 r12 0x3000000008 r13 0xffff800022b809f0 r14 0x100 r15 0x1 rip 0xffffffff811e6368 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022b809d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=301671 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ed89d8,0xffff800020ed8c58 process=0xffff800020ece7d0 user=0xffff800022b7c000, vmspace=0xfffffd806e947008 estcpu=36, cpticks=3, pctcpu=0.0 user=0, sys=3, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 94455 165803 81537 0 7 0 syz-executor.0 3739 497845 93436 0 2 0 syz-executor.1 * 3739 301671 93436 0 7 0x4000000 syz-executor.1 3739 159774 93436 0 2 0x4000080 syz-executor.1 3739 457271 93436 0 3 0x4000080 fsleep syz-executor.1 60004 453537 0 0 3 0x14200 bored sosplice 93436 380694 9053 0 3 0x82 nanosleep syz-executor.1 81537 403098 9053 0 3 0x82 nanosleep syz-executor.0 9053 297608 4913 0 3 0x82 kqread syz-fuzzer 9053 69864 4913 0 3 0x4000082 nanosleep syz-fuzzer 9053 83339 4913 0 3 0x4000082 thrsleep syz-fuzzer 9053 458964 4913 0 3 0x4000082 thrsleep syz-fuzzer 9053 31752 4913 0 3 0x4000082 thrsleep syz-fuzzer 9053 211625 4913 0 3 0x4000082 thrsleep syz-fuzzer 9053 52553 4913 0 3 0x4000082 thrsleep syz-fuzzer 9053 410197 4913 0 3 0x4000082 thrsleep syz-fuzzer 9053 37959 4913 0 3 0x4000082 nanosleep syz-fuzzer 9053 264327 4913 0 3 0x4000082 thrsleep syz-fuzzer 4913 154174 88146 0 3 0x10008a pause ksh 88146 318171 55456 0 3 0x92 select sshd 33296 286892 1 0 3 0x100083 ttyin getty 55456 448597 1 0 3 0x80 select sshd 14040 480945 39949 74 3 0x100092 bpf pflogd 39949 215850 1 0 3 0x80 netio pflogd 21291 429114 60176 73 3 0x100090 kqread syslogd 60176 473391 1 0 3 0x100082 netio syslogd 70994 294816 1 77 3 0x100090 poll dhclient 59912 117927 1 0 3 0x80 poll dhclient 58713 163261 0 0 3 0x14200 bored smr 43910 202308 0 0 2 0x14200 zerothread 69192 276575 0 0 3 0x14200 aiodoned aiodoned 73780 474602 0 0 3 0x14200 syncer update 42306 202031 0 0 3 0x14200 cleaner cleaner 79392 224091 0 0 3 0x14200 reaper reaper 35788 102497 0 0 3 0x14200 pgdaemon pagedaemon 54447 58260 0 0 3 0x14200 bored crynlk 70425 495354 0 0 3 0x14200 bored crypto 54760 53191 0 0 3 0x40014200 acpi0 acpi0 83736 190838 0 0 3 0x40014200 idle1 58936 483428 0 0 3 0x14200 bored softnet 58141 455177 0 0 3 0x14200 bored systqmp 32567 40065 0 0 3 0x14200 bored systq 30147 201993 0 0 3 0x40014200 bored softclock 4839 450961 0 0 3 0x40014200 idle0 1 298903 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 3739 (syz-executor.1) thread 0xffff800020ed84f8 (301671) exclusive rwlock netlock r = 0 (0xffffffff8253d7a8) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 in_ioctl_change_ifaddr+0x91 #2 in_ioctl+0x2fb sys/netinet/in.c:246 #3 ifioctl+0xe70 sys/net/if.c:2289 #4 soo_ioctl+0x27c sys/kern/sys_socket.c:138 #5 sys_ioctl+0x4a5 #6 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #6 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #7 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 1 (0xffffffff8264bb98) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 soo_ioctl+0x26a sys/kern/sys_socket.c:138 #2 sys_ioctl+0x4a5 #3 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #3 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #4 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9508 6426K 6806K 78643K 10914 0 pcb 13 8K 8K 78643K 87 0 rtable 85 3K 3K 78643K 302 0 ifaddr 73 15K 15K 78643K 104 0 counters 43 33K 34K 78643K 49 0 ioctlops 0 0K 4K 78643K 1483 0 iov 0 0K 16K 78643K 28 0 mount 1 1K 1K 78643K 1 0 vnodes 1218 77K 77K 78643K 1317 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 4 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 32 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 222 0 sigio 0 0K 0K 78643K 2 0 proc 63 63K 95K 78643K 450 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 28 0 in_multi 66 3K 3K 78643K 118 0 ether_multi 1 0K 0K 78643K 12 0 mrt 0 0K 0K 78643K 6 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 223 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 126 55K 59K 78643K 1670 0 UVM aobj 12 2K 2K 78643K 12 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 50 0 NDP 10 0K 0K 78643K 19 0 temp 88 3037K 3101K 78643K 3011 0 kqueue 3 4K 6K 78643K 6 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 9 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 39 0 37 1 0 1 1 0 8 0 rtentry 112 67 0 36 2 0 2 2 0 8 0 unpcb 120 125 0 115 1 0 1 1 0 8 0 syncache 264 5 0 5 2 2 0 1 0 8 0 tcpqe 32 106 0 106 1 1 0 1 0 8 0 tcpcb 544 108 0 101 1 0 1 1 0 8 0 inpcb 280 339 0 329 3 2 1 2 0 8 0 rttmr 72 3 0 3 1 1 0 1 0 8 0 nd6 48 8 0 6 1 0 1 1 0 8 0 ppxss 1128 1 0 1 1 0 1 1 0 8 1 pffrag 232 2 0 2 1 1 0 1 0 482 0 pffrnode 88 2 0 2 1 1 0 1 0 8 0 pffrent 40 6 0 6 2 1 1 1 0 8 1 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 31 0 17 1 0 1 1 0 8 0 pfstkey 112 31 0 17 1 0 1 1 0 8 0 pfstate 328 31 0 17 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 312 0 158 13 0 13 13 0 8 1 art_table 32 313 0 158 2 0 2 2 0 8 0 art_node 16 64 0 37 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semapl 112 30 0 20 1 0 1 1 0 8 0 shmpl 112 10 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1703 0 298 89 0 89 89 0 8 0 ffsino 272 1703 0 298 94 0 94 94 0 8 0 nchpl 144 2234 0 625 60 0 60 60 0 8 0 uvmvnodes 72 1813 0 0 33 0 33 33 0 8 0 vnodes 208 1813 0 0 96 0 96 96 0 8 0 namei 1024 6107 0 6107 2 1 1 1 0 8 1 percpumem 16 35 0 3 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 560 4 0 2 1 0 1 1 0 8 0 scxspl 192 6122 0 6122 12 11 1 7 0 8 1 plimitpl 152 30 0 22 1 0 1 1 0 8 0 sigapl 424 438 0 405 4 0 4 4 0 8 0 futexpl 56 3340 0 3339 3 2 1 1 0 8 0 knotepl 112 63 0 44 1 0 1 1 0 8 0 kqueuepl 144 35 0 33 1 0 1 1 0 8 0 pipelkpl 48 123 0 113 1 0 1 1 0 8 0 pipepl 120 246 0 227 2 0 2 2 0 8 1 fdescpl 496 422 0 405 3 0 3 3 0 8 0 filepl 152 2600 0 2497 7 0 7 7 0 8 3 lockfpl 104 154 0 153 1 0 1 1 0 8 0 lockfspl 48 55 0 54 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 18 0 7 1 0 1 1 0 8 0 ucredpl 96 221 0 212 1 0 1 1 0 8 0 zombiepl 144 405 0 405 3 2 1 1 0 8 1 processpl 984 438 0 405 5 0 5 5 0 8 0 procpl 624 879 0 834 4 0 4 4 0 8 0 sosppl 128 6 0 6 1 0 1 1 0 8 1 sockpl 400 505 0 483 5 1 4 4 0 8 1 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 165 0 0 20 0 20 20 0 8 0 mtagpl 80 22 0 0 1 0 1 1 0 8 0 mbufpl 256 236 0 0 12 0 12 12 0 8 0 bufpl 280 3795 0 135 262 0 262 262 0 8 0 anonpl 16 62089 0 47902 76 2 74 74 0 124 16 amapchunkpl 152 2404 0 2264 13 2 11 13 0 158 4 amappl16 192 2345 0 1580 55 8 47 51 0 8 8 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 22 0 18 1 0 1 1 0 8 0 amappl13 168 26 0 24 1 0 1 1 0 8 0 amappl12 160 17 0 12 1 0 1 1 0 8 0 amappl11 152 244 0 226 1 0 1 1 0 8 0 amappl10 144 20 0 14 1 0 1 1 0 8 0 amappl9 136 385 0 384 1 0 1 1 0 8 0 amappl8 128 344 0 316 1 0 1 1 0 8 0 amappl7 120 121 0 108 1 0 1 1 0 8 0 amappl6 112 121 0 115 1 0 1 1 0 8 0 amappl5 104 318 0 302 1 0 1 1 0 8 0 amappl4 96 486 0 459 1 0 1 1 0 8 0 amappl3 88 114 0 108 1 0 1 1 0 8 0 amappl2 80 2413 0 2343 2 0 2 2 0 8 0 amappl1 72 19400 0 18944 23 13 10 18 0 8 0 amappl 80 1145 0 1095 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 11 0 0 1 0 1 1 0 8 0 uaddrrnd 24 426 0 407 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 426 0 407 1 0 1 1 0 8 0 vmmpekpl 168 7236 0 7200 2 0 2 2 0 8 0 vmmpepl 168 58745 0 56737 116 16 100 100 0 357 12 vmsppl 368 425 0 407 2 0 2 2 0 8 0 pdppl 4096 860 0 816 6 0 6 6 0 8 0 pvpl 32 189813 0 172428 178 1 177 177 0 265 36 pmappl 232 425 0 407 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 260 0 5 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821fbcf9) at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff82657878) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff82657878) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff82657878,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_copym(fffffd806a405100,0,3b9aca00,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd806a405100,0,3b9aca00,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 rtm_sendup(fffffd806f6d8190,fffffd806a405100,1) at rtm_sendup+0x5f sys/net/rtsock.c:588 route_input(fffffd806a405100,0,2) at route_input+0x1cc sys/net/rtsock.c:560 rtm_addr(c,ffff800000a0d300) at rtm_addr+0x10b sys/net/rtsock.c:1751 rt_ifa_add(ffff800000a0d300,240404,ffff800000a0d340,0) at rt_ifa_add+0x2a7 sys/net/route.c:1140 rt_ifa_addlocal(ffff800000a0d300) at rt_ifa_addlocal+0x16d sys/net/route.c:1238 in_ifinit(ffff800000a28000,ffff800000a0d300,ffff800000a0d358,0) at in_ifinit+0x1cf sys/netinet/in.c:688 in_ioctl_change_ifaddr(8040691a,ffff800022b812d0,ffff800000a28000,1) at in_ioctl_change_ifaddr+0x68c sys/netinet/in.c:519 in_ioctl(8040691a,ffff800022b812d0,ffff800000a28000,1) at in_ioctl+0x2fb sys/netinet/in.c:246 ifioctl(fffffd8064d50660,8040691a,ffff800022b812d0,ffff800020ed84f8) at ifioctl+0xe70 sys/net/if.c:2289 soo_ioctl(fffffd806cb5c600,8040691a,ffff800022b812d0,ffff800020ed84f8) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020ed84f8,ffff800022b813e8,ffff800022b81430) at sys_ioctl+0x4a5 syscall(ffff800022b814b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800022b814b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x44a2c57b0f0, count: -18 ddb{0}> machine ddbcpu 1