panic: kernel diagnostic assertion "ifa == rt->rt_ifa" failed: file "/syzkaller/managers/multicore/kernel/sys/netinet6/nd6.c", line 947 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *288861 40418 0 0 0x4000000 0 syz-executor.1 308876 48299 0 0x2 0 1 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff82207803,ffffffff82201b7e,3b3,ffffffff821c028a) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000abe800,1,fffffd80628521c8) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800021b82c58,1,ffff800021b82d28,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000a47300,240404,ffff800000a47358,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000a47300) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000abe800,ffff800000a47300,ffff800021b83050,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800021b83040,ffff800000abe800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800021b83040,ffff800000abe800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd807e791038,8020690c,ffff800021b83040,ffff800020a5f8b8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020a5f8b8,ffff800021b83158,ffff800021b831a0) at sys_ioctl+0x5b9 syscall(ffff800021b83220) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b83220) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,4a4c4d0e0e0) at Xsyscall+0x128 end of kernel end trace frame: 0x4a70380f940, 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 kernel diagnostic assertion "ifa == rt->rt_ifa" failed: file "/syzkaller/managers/multicore/kernel/sys/netinet6/nd6.c", line 947 ddb{0}> 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 __assert(ffffffff82207803,ffffffff82201b7e,3b3,ffffffff821c028a) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000abe800,1,fffffd80628521c8) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800021b82c58,1,ffff800021b82d28,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000a47300,240404,ffff800000a47358,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000a47300) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000abe800,ffff800000a47300,ffff800021b83050,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800021b83040,ffff800000abe800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800021b83040,ffff800000abe800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd807e791038,8020690c,ffff800021b83040,ffff800020a5f8b8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020a5f8b8,ffff800021b83158,ffff800021b831a0) at sys_ioctl+0x5b9 syscall(ffff800021b83220) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b83220) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,4a4c4d0e0e0) at Xsyscall+0x128 end of kernel end trace frame: 0x4a70380f940, count: -14 ddb{0}> show registers rdi 0xffffffff814a9117 db_enter+0x17 rsi 0x3c37 __ALIGN_SIZE+0x2c37 rbp 0xffff800021b82990 rbx 0xffff800021b82a40 rdx 0x3c38 __ALIGN_SIZE+0x2c38 rcx 0xffff800022f66000 rax 0xffff800022f66000 r8 0xffffffff81918aaf kprintf+0x16f r9 0x1 r10 0x25 r11 0x4409728768b9b690 r12 0x3000000008 r13 0xffff800021b829a0 r14 0x100 r15 0x1 rip 0xffffffff814a9118 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021b82980 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=288861 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0ee8,0xffff800020a5e9f8 process=0xffff800020addc00 user=0xffff800021b7e000, vmspace=0xfffffd807f00a170 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 40418 147296 48299 0 2 0 syz-executor.1 40418 104428 48299 0 2 0x4000000 syz-executor.1 *40418 288861 48299 0 7 0x4000000 syz-executor.1 40418 137283 48299 0 3 0x4000080 fsleep syz-executor.1 33739 431308 0 0 3 0x14200 acct acct 48299 308876 21012 0 7 0x2 syz-executor.1 71181 185640 0 0 3 0x14200 bored sosplice 46225 514967 21012 0 2 0x482 syz-executor.0 21012 474182 71648 0 3 0x82 thrsleep syz-fuzzer 21012 503103 71648 0 3 0x4000082 thrsleep syz-fuzzer 21012 361187 71648 0 3 0x4000082 thrsleep syz-fuzzer 21012 5747 71648 0 3 0x4000082 thrsleep syz-fuzzer 21012 433231 71648 0 3 0x4000082 thrsleep syz-fuzzer 21012 337474 71648 0 3 0x4000082 kqread syz-fuzzer 21012 373264 71648 0 3 0x4000082 thrsleep syz-fuzzer 21012 7393 71648 0 3 0x4000082 thrsleep syz-fuzzer 21012 514761 71648 0 3 0x4000082 thrsleep syz-fuzzer 21012 290810 71648 0 3 0x4000082 thrsleep syz-fuzzer 71648 60740 87940 0 3 0x10008a pause ksh 87940 398065 52564 0 3 0x92 select sshd 14488 400311 1 0 3 0x100083 ttyin getty 52564 11593 1 0 3 0x80 select sshd 98565 381606 10552 74 3 0x100092 bpf pflogd 10552 33788 1 0 3 0x80 netio pflogd 92087 496284 69550 73 3 0x100090 kqread syslogd 69550 491328 1 0 3 0x100082 netio syslogd 84704 383376 1 77 3 0x100090 poll dhclient 70251 491156 1 0 3 0x80 poll dhclient 88662 119556 0 0 3 0x14200 pgzero zerothread 71694 248643 0 0 3 0x14200 aiodoned aiodoned 73158 284518 0 0 3 0x14200 syncer update 3678 424858 0 0 3 0x14200 cleaner cleaner 17520 79930 0 0 3 0x14200 reaper reaper 99929 447872 0 0 3 0x14200 pgdaemon pagedaemon 99620 208484 0 0 3 0x14200 bored crynlk 89896 310272 0 0 3 0x14200 bored crypto 65251 256865 0 0 3 0x40014200 acpi0 acpi0 46933 449415 0 0 3 0x40014200 idle1 15571 40368 0 0 3 0x14200 bored softnet 38276 132637 0 0 3 0x14200 bored systqmp 77920 344599 0 0 3 0x14200 bored systq 93004 392171 0 0 3 0x40014200 bored softclock 54526 183478 0 0 3 0x40014200 idle0 82689 204057 0 0 3 0x14200 bored smr 1 316180 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 40418 (syz-executor.1) thread 0xffff800020a5f8b8 (288861) exclusive rwlock netlock r = 0 (0xffffffff824ca238) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 in_ioctl_sifaddr+0x69 #2 in_ioctl+0x1e7 sys/netinet/in.c:231 #3 ifioctl+0xb64 sys/net/if.c:2202 #4 sys_ioctl+0x5b9 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #6 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82625ee0) #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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9538 6536K 7307K 78643K 11994 0 0 pcb 13 8K 8K 78643K 131 0 0 rtable 109 5K 5K 78643K 441 0 0 ifaddr 60 13K 14K 78643K 107 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1491 0 0 iov 0 0K 16K 78643K 85 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1223 77K 77K 78643K 1740 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 10 0 0 VM map 4 2K 2K 78643K 4 0 0 sem 12 1K 1K 78643K 78 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 429 0 0 proc 61 63K 83K 78643K 528 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 29 0 0 in_multi 30 2K 2K 78643K 62 0 0 ether_multi 1 0K 0K 78643K 5 0 0 mrt 0 0K 0K 78643K 8 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 114 503K 503K 78643K 114 0 0 exec 0 0K 1K 78643K 258 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 114 38K 38K 78643K 2483 0 0 UVM aobj 36 2K 3K 78643K 40 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 94 0 0 NDP 12 0K 0K 78643K 29 0 0 temp 171 3559K 3623K 78643K 7978 0 0 kqueue 0 0K 0K 78643K 8 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 17 0 12 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 43 0 41 1 0 1 1 0 8 0 rtentry 112 92 0 49 2 0 2 2 0 8 0 unpcb 120 278 0 267 1 0 1 1 0 8 0 syncache 264 6 0 6 2 2 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 544 156 0 152 1 0 1 1 0 8 0 inpcb 280 1520 0 1501 17 8 9 9 0 8 7 rttmr 72 2 0 2 1 1 0 1 0 8 0 nd6 48 11 0 6 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 1 0 1 0 8 0 ppxss 1128 8 0 8 2 1 1 1 0 8 1 pffrag 232 8 0 8 3 2 1 1 0 482 1 pffrnode 88 8 0 8 3 2 1 1 0 8 1 pffrent 40 145 0 145 3 2 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 50 0 11 1 0 1 1 0 8 0 pfstkey 112 50 0 11 2 0 2 2 0 8 0 pfstate 328 50 0 10 4 0 4 4 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 386 0 163 16 1 15 15 0 8 1 art_table 32 387 0 163 2 0 2 2 0 8 0 art_node 16 91 0 51 1 0 1 1 0 8 0 sysvmsgpl 40 29 0 19 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 76 0 66 1 0 1 1 0 8 0 shmpl 112 38 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2220 0 817 46 0 46 46 0 8 0 ffsino 272 2220 0 817 95 1 94 95 0 8 0 nchpl 144 3148 0 1540 61 0 61 61 0 8 0 uvmvnodes 72 2543 0 0 47 0 47 47 0 8 0 vnodes 208 2543 0 0 134 0 134 134 0 8 0 namei 1024 10760 0 10760 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 552 2 0 0 1 0 1 1 0 8 0 scxspl 192 9302 0 9302 7 6 1 6 0 8 1 plimitpl 152 45 0 37 1 0 1 1 0 8 0 sigapl 432 626 0 611 3 1 2 3 0 8 0 futexpl 56 12825 0 12824 1 0 1 1 0 8 0 knotepl 112 130 0 111 1 0 1 1 0 8 0 kqueuepl 104 138 0 136 1 0 1 1 0 8 0 pipepl 112 684 0 665 1 0 1 1 0 8 0 fdescpl 488 627 0 611 3 0 3 3 0 8 0 filepl 152 7210 0 7096 16 5 11 11 0 8 6 lockfpl 104 169 0 168 1 0 1 1 0 8 0 lockfspl 48 60 0 59 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 21 0 10 1 0 1 1 0 8 0 ucredpl 96 1925 0 1916 1 0 1 1 0 8 0 zombiepl 144 611 0 610 1 0 1 1 0 8 0 processpl 896 644 0 610 4 0 4 4 0 8 0 procpl 632 1657 0 1611 5 0 5 5 0 8 1 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 269 0 263 1 0 1 1 0 8 0 sockpl 384 1856 0 1824 28 17 11 14 0 8 7 mcl64k 65536 14 0 0 2 0 2 2 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 10 0 0 2 0 2 2 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 165 0 0 20 0 20 20 0 8 0 mtagpl 80 31 0 0 1 0 1 1 0 8 0 mbufpl 256 305 0 0 19 0 19 19 0 8 0 bufpl 256 7569 0 1318 391 0 391 391 0 8 0 anonpl 16 87302 0 68637 93 3 90 92 0 124 12 amapchunkpl 152 3737 0 3605 10 3 7 10 0 158 0 amappl16 192 3305 0 2265 67 8 59 64 0 8 6 amappl15 184 670 0 664 1 0 1 1 0 8 0 amappl14 176 82 0 79 1 0 1 1 0 8 0 amappl12 160 7 0 7 1 1 0 1 0 8 0 amappl11 152 63 0 48 1 0 1 1 0 8 0 amappl10 144 16 0 10 1 0 1 1 0 8 0 amappl9 136 633 0 627 1 0 1 1 0 8 0 amappl8 128 199 0 168 2 0 2 2 0 8 0 amappl7 120 46 0 39 1 0 1 1 0 8 0 amappl6 112 74 0 63 1 0 1 1 0 8 0 amappl5 104 148 0 134 1 0 1 1 0 8 0 amappl4 96 891 0 857 1 0 1 1 0 8 0 amappl3 88 129 0 123 1 0 1 1 0 8 0 amappl2 80 4387 0 4311 3 1 2 3 0 8 0 amappl1 72 24009 0 23577 26 16 10 20 0 8 0 amappl 80 1922 0 1881 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 39 0 4 1 0 1 1 0 8 0 uaddrrnd 24 629 0 611 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 629 0 611 1 0 1 1 0 8 0 vmmpekpl 168 9657 0 9621 2 0 2 2 0 8 0 vmmpepl 168 86189 0 84008 144 27 117 135 0 357 17 vmsppl 368 626 0 611 2 0 2 2 0 8 0 pdppl 4096 1265 0 1224 6 0 6 6 0 8 0 pvpl 32 260510 0 238642 215 2 213 215 0 265 35 pmappl 232 628 0 611 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 565 0 5 16 0 16 16 0 8 0