login: panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd806d460c00+16 0x0!=0x4384ba8204001529 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 84362 17592 0 0 0 0K syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821fa82d) at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff82673d88) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff82673d88) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff82673d88,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_get(2,3) at m_get+0x4c sys/kern/uipc_mbuf.c:250 rt_ifa_del(ffff8000009db300,800100,ffff8000009db340,0) at rt_ifa_del+0xa1 sys/net/route.c:1163 in6_unlink_ifa(ffff8000009db300,ffff8000009d5000) at in6_unlink_ifa+0x571 sys/netinet6/in6.c:943 in6_update_ifa(ffff8000009d5000,ffff800020f5d9d0,0) at in6_update_ifa+0x13f7 sys/netinet6/in6.c:875 in6_ioctl_change_ifaddr(8080691a,ffff800020f5d9d0,ffff8000009d5000) at in6_ioctl_change_ifaddr+0x40c sys/netinet6/in6.c:352 ifioctl(fffffd806f6dcc80,8080691a,ffff800020f5d9d0,ffff800020e6cea8) at ifioctl+0xe70 sys/net/if.c:2289 soo_ioctl(fffffd806d0a2860,8080691a,ffff800020f5d9d0,ffff800020e6cea8) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020e6cea8,ffff800020f5dae8,ffff800020f5db30) at sys_ioctl+0x4a5 syscall(ffff800020f5dbb0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020f5dbb0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdb3e0, count: 1 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 0xfffffd806d460c00+16 0x0!=0x4384ba8204001529 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821fa82d) at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff82673d88) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff82673d88) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff82673d88,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_get(2,3) at m_get+0x4c sys/kern/uipc_mbuf.c:250 rt_ifa_del(ffff8000009db300,800100,ffff8000009db340,0) at rt_ifa_del+0xa1 sys/net/route.c:1163 in6_unlink_ifa(ffff8000009db300,ffff8000009d5000) at in6_unlink_ifa+0x571 sys/netinet6/in6.c:943 in6_update_ifa(ffff8000009d5000,ffff800020f5d9d0,0) at in6_update_ifa+0x13f7 sys/netinet6/in6.c:875 in6_ioctl_change_ifaddr(8080691a,ffff800020f5d9d0,ffff8000009d5000) at in6_ioctl_change_ifaddr+0x40c sys/netinet6/in6.c:352 ifioctl(fffffd806f6dcc80,8080691a,ffff800020f5d9d0,ffff800020e6cea8) at ifioctl+0xe70 sys/net/if.c:2289 soo_ioctl(fffffd806d0a2860,8080691a,ffff800020f5d9d0,ffff800020e6cea8) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020e6cea8,ffff800020f5dae8,ffff800020f5db30) at sys_ioctl+0x4a5 syscall(ffff800020f5dbb0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020f5dbb0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdb3e0, count: -14 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020f5d240 rbx 0xffff800020f5d2f0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff819e912f kprintf+0x16f r9 0x1 r10 0xa4663851cf7c07ae r11 0x559f825ff098e0a6 r12 0x3000000008 r13 0xffff800020f5d250 r14 0x100 r15 0x1 rip 0xffffffff81fcb0a8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020f5d230 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=84362 stat=onproc flags process=0 proc=0 pri=67, usrpri=67, nice=20 forw=0xffffffffffffffff, list=0xffff800020e6d118,0xffffffff82691128 process=0xffff800020e80f70 user=0xffff800020f58000, vmspace=0xfffffd807efff730 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND *17592 84362 16145 0 7 0 syz-executor.0 16145 462029 39436 0 3 0x82 nanosleep syz-executor.0 39436 265938 35310 0 3 0x82 kqread syz-execprog 39436 450159 35310 0 3 0x4000082 nanosleep syz-execprog 39436 207721 35310 0 3 0x4000082 thrsleep syz-execprog 39436 354569 35310 0 3 0x4000082 thrsleep syz-execprog 39436 403151 35310 0 3 0x4000082 thrsleep syz-execprog 39436 251627 35310 0 3 0x4000082 thrsleep syz-execprog 39436 11596 35310 0 3 0x4000082 thrsleep syz-execprog 39436 77408 35310 0 3 0x4000082 thrsleep syz-execprog 39436 368263 35310 0 3 0x4000082 thrsleep syz-execprog 35310 426303 66766 0 3 0x10008a pause ksh 66766 350673 36764 0 3 0x92 select sshd 44725 262048 1 0 3 0x100083 ttyin getty 36764 183732 1 0 3 0x80 select sshd 84549 341018 23181 74 3 0x100092 bpf pflogd 23181 255292 1 0 3 0x80 netio pflogd 34626 318365 28833 73 3 0x100090 kqread syslogd 28833 482166 1 0 3 0x100082 netio syslogd 62187 57479 1 77 3 0x100090 poll dhclient 71304 342495 1 0 3 0x80 poll dhclient 13413 125870 0 0 3 0x14200 bored smr 37088 423277 0 0 3 0x14200 pgzero zerothread 36222 23501 0 0 3 0x14200 aiodoned aiodoned 11016 442244 0 0 3 0x14200 syncer update 64150 333219 0 0 3 0x14200 cleaner cleaner 25482 191219 0 0 3 0x14200 reaper reaper 51471 160627 0 0 3 0x14200 pgdaemon pagedaemon 24846 123611 0 0 3 0x14200 bored crynlk 91683 250105 0 0 3 0x14200 bored crypto 30351 359995 0 0 3 0x40014200 acpi0 acpi0 65596 229400 0 0 7 0x40014200 idle1 9270 214684 0 0 3 0x14200 bored softnet 6745 242173 0 0 3 0x14200 bored systqmp 85624 16750 0 0 3 0x14200 bored systq 33093 414655 0 0 3 0x40014200 bored softclock 7527 215941 0 0 3 0x40014200 idle0 1 117007 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 17592 (syz-executor.0) thread 0xffff800020e6cea8 (84362) exclusive rwlock netlock r = 0 (0xffffffff824ae3a8) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 in6_ioctl_change_ifaddr+0x155 sys/netinet6/in6.c:295 #2 ifioctl+0xe70 sys/net/if.c:2289 #3 soo_ioctl+0x27c sys/kern/sys_socket.c:138 #4 sys_ioctl+0x4a5 #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 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8266c1b0) #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 9467 6396K 6396K 78643K 10558 0 pcb 13 8K 8K 78643K 13 0 rtable 83 2K 2K 78643K 163 0 ifaddr 38 9K 9K 78643K 54 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 3 8K 12K 78643K 33 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 25 122K 122K 78643K 25 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 79 12K 12K 78643K 962 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 7 0K 0K 78643K 7 0 temp 29 3033K 3097K 78643K 1895 0 kqueue 3 4K 4K 78643K 3 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 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 1 1 1 0 8 1 tcpcb 544 8 0 5 1 0 1 1 0 8 0 inpcb 280 49 0 42 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 11 0 0 1 0 1 1 0 8 0 pfstkey 112 11 0 0 1 0 1 1 0 8 0 pfstate 328 11 0 0 1 0 1 1 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 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 1439 0 37 88 0 88 88 0 8 0 ffsino 272 1439 0 37 94 0 94 94 0 8 0 nchpl 144 1670 0 69 60 0 60 60 0 8 0 uvmvnodes 72 1449 0 0 27 0 27 27 0 8 0 vnodes 208 1449 0 0 77 0 77 77 0 8 0 namei 1024 4328 0 4328 2 1 1 1 0 8 1 percpumem 16 31 0 0 1 0 1 1 0 8 0 scxspl 192 3953 0 3953 2 1 1 2 0 8 1 plimitpl 152 15 0 8 1 0 1 1 0 8 0 sigapl 424 256 0 226 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 241 0 226 3 0 3 3 0 8 0 filepl 152 1187 0 1126 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 110 0 101 1 0 1 1 0 8 0 zombiepl 144 226 0 226 2 1 1 1 0 8 1 processpl 984 256 0 226 5 0 5 5 0 8 1 procpl 624 264 0 226 4 0 4 4 0 8 1 sockpl 400 95 0 76 2 0 2 2 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 80 0 0 10 0 10 10 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 108 0 0 7 0 7 7 0 8 0 bufpl 280 2996 0 132 205 0 205 205 0 8 0 anonpl 16 22755 0 20972 14 2 12 12 0 124 4 amapchunkpl 152 862 0 775 5 0 5 5 0 158 1 amappl16 192 208 0 160 3 0 3 3 0 8 0 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 49 0 41 1 0 1 1 0 8 0 amappl13 168 37 0 34 2 1 1 1 0 8 0 amappl12 160 9 0 7 2 1 1 1 0 8 0 amappl11 152 51 0 36 1 0 1 1 0 8 0 amappl10 144 17 0 15 1 0 1 1 0 8 0 amappl9 136 236 0 235 1 0 1 1 0 8 0 amappl8 128 274 0 264 1 0 1 1 0 8 0 amappl7 120 113 0 103 1 0 1 1 0 8 0 amappl6 112 23 0 22 2 1 1 1 0 8 0 amappl5 104 122 0 107 1 0 1 1 0 8 0 amappl4 96 513 0 484 1 0 1 1 0 8 0 amappl3 88 121 0 114 1 0 1 1 0 8 0 amappl2 80 934 0 872 3 1 2 2 0 8 0 amappl1 72 15632 0 15201 24 6 18 18 0 8 8 amappl 80 491 0 460 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 241 0 226 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 241 0 226 1 0 1 1 0 8 0 vmmpekpl 168 6370 0 6348 2 0 2 2 0 8 0 vmmpepl 168 33531 0 32543 86 13 73 73 0 357 30 vmsppl 368 240 0 226 2 0 2 2 0 8 0 pdppl 4096 490 0 452 6 0 6 6 0 8 0 pvpl 32 115239 0 111036 106 2 104 104 0 265 70 pmappl 232 240 0 226 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 235 0 4 7 0 7 7 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(ffffffff821fa82d) at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff82673d88) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff82673d88) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff82673d88,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_get(2,3) at m_get+0x4c sys/kern/uipc_mbuf.c:250 rt_ifa_del(ffff8000009db300,800100,ffff8000009db340,0) at rt_ifa_del+0xa1 sys/net/route.c:1163 in6_unlink_ifa(ffff8000009db300,ffff8000009d5000) at in6_unlink_ifa+0x571 sys/netinet6/in6.c:943 in6_update_ifa(ffff8000009d5000,ffff800020f5d9d0,0) at in6_update_ifa+0x13f7 sys/netinet6/in6.c:875 in6_ioctl_change_ifaddr(8080691a,ffff800020f5d9d0,ffff8000009d5000) at in6_ioctl_change_ifaddr+0x40c sys/netinet6/in6.c:352 ifioctl(fffffd806f6dcc80,8080691a,ffff800020f5d9d0,ffff800020e6cea8) at ifioctl+0xe70 sys/net/if.c:2289 soo_ioctl(fffffd806d0a2860,8080691a,ffff800020f5d9d0,ffff800020e6cea8) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020e6cea8,ffff800020f5dae8,ffff800020f5db30) at sys_ioctl+0x4a5 syscall(ffff800020f5dbb0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020f5dbb0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdb3e0, count: -14 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020e00ff0) 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 acpicpu_idle() at acpicpu_idle+0x331 sys/dev/acpi/acpicpu.c:1187 sched_idle(ffff800020e00ff0) at sched_idle+0x3f7 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800020e00ff0) 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 acpicpu_idle() at acpicpu_idle+0x331 sys/dev/acpi/acpicpu.c:1187 sched_idle(ffff800020e00ff0) at sched_idle+0x3f7 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: -5 ddb{1}>