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 *114645 94465 0 0 0x4000000 1K syz-executor.1 390707 77084 0 0x14000 0x200 0 systqmp 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(ffffffff82207051,ffffffff821fd613,3b3,ffffffff821bf6fb) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000abb800,1,fffffd8065fd3c48) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800022bb5638,1,ffff800022bb5708,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000b60300,240404,ffff800000b60358,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000b60300) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000abb800,ffff800000b60300,ffff800022bb5a30,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800022bb5a20,ffff800000abb800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800022bb5a20,ffff800000abb800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd80622ba7a0,8020690c,ffff800022bb5a20,ffff800020b42f00) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020b42f00,ffff800022bb5b38,ffff800022bb5b80) at sys_ioctl+0x5b9 syscall(ffff800022bb5c00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022bb5c00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,0,ffffffffffffff36,0,3,21d6962b010) at Xsyscall+0x128 end of kernel end trace frame: 0x21fc81e6ec0, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic kernel diagnostic assertion "ifa == rt->rt_ifa" failed: file "/syzkaller/managers/multicore/kernel/sys/netinet6/nd6.c", line 947 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 __assert(ffffffff82207051,ffffffff821fd613,3b3,ffffffff821bf6fb) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000abb800,1,fffffd8065fd3c48) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800022bb5638,1,ffff800022bb5708,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000b60300,240404,ffff800000b60358,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000b60300) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000abb800,ffff800000b60300,ffff800022bb5a30,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800022bb5a20,ffff800000abb800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800022bb5a20,ffff800000abb800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd80622ba7a0,8020690c,ffff800022bb5a20,ffff800020b42f00) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020b42f00,ffff800022bb5b38,ffff800022bb5b80) at sys_ioctl+0x5b9 syscall(ffff800022bb5c00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022bb5c00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,0,ffffffffffffff36,0,3,21d6962b010) at Xsyscall+0x128 end of kernel end trace frame: 0x21fc81e6ec0, count: -14 ddb{1}> show registers rdi 0xffffffff8101a1f7 db_enter+0x17 rsi 0x4f36 __ALIGN_SIZE+0x3f36 rbp 0xffff800022bb5370 rbx 0xffff800022bb5420 rdx 0x4f37 __ALIGN_SIZE+0x3f37 rcx 0xffff800022d84000 rax 0xffff800022d84000 r8 0xffffffff812be63f kprintf+0x16f r9 0x1 r10 0x25 r11 0x163d29220a29c3a r12 0x3000000008 r13 0xffff800022bb5380 r14 0x100 r15 0x1 rip 0xffffffff8101a1f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022bb5360 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=114645 stat=onproc flags process=0 proc=4000000 pri=74, usrpri=74, nice=20 forw=0xffffffffffffffff, list=0xffff800020b42030,0xffff800020b42c98 process=0xffff800020addc00 user=0xffff800022bb0000, vmspace=0xfffffd807f00b5c0 estcpu=24, cpticks=3, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 94465 234296 77845 0 2 0 syz-executor.1 *94465 114645 77845 0 7 0x4000000 syz-executor.1 60571 453170 37224 0 2 0 syz-executor.0 60571 474133 37224 0 3 0x4000080 fsleep syz-executor.0 60571 325158 37224 0 3 0x4000080 fsleep syz-executor.0 60571 110557 37224 0 2 0x4000000 syz-executor.0 37224 306112 2729 0 3 0x82 nanosleep syz-executor.0 77845 270004 2729 0 3 0x82 nanosleep syz-executor.1 56925 413027 0 0 3 0x14200 bored sosplice 2729 211544 20470 0 3 0x82 thrsleep syz-fuzzer 2729 283226 20470 0 3 0x4000082 thrsleep syz-fuzzer 2729 123420 20470 0 3 0x4000082 thrsleep syz-fuzzer 2729 192571 20470 0 3 0x4000082 thrsleep syz-fuzzer 2729 324177 20470 0 3 0x4000082 kqread syz-fuzzer 2729 337257 20470 0 3 0x4000082 thrsleep syz-fuzzer 2729 171126 20470 0 3 0x4000082 thrsleep syz-fuzzer 2729 296753 20470 0 3 0x4000082 thrsleep syz-fuzzer 2729 127509 20470 0 3 0x4000082 thrsleep syz-fuzzer 2729 96634 20470 0 3 0x4000082 thrsleep syz-fuzzer 20470 162610 88327 0 3 0x10008a pause ksh 88327 346724 98332 0 3 0x92 select sshd 10840 370288 1 0 3 0x100083 ttyin getty 98332 236331 1 0 3 0x80 select sshd 30015 41191 36568 74 3 0x100092 bpf pflogd 36568 217253 1 0 3 0x80 netio pflogd 51298 53891 99136 73 3 0x100090 kqread syslogd 99136 404983 1 0 3 0x100082 netio syslogd 98060 383337 1 77 3 0x100090 poll dhclient 45520 462914 1 0 3 0x80 poll dhclient 21514 177194 0 0 2 0x14200 zerothread 55881 18697 0 0 3 0x14200 aiodoned aiodoned 7691 463342 0 0 3 0x14200 syncer update 83338 59532 0 0 3 0x14200 cleaner cleaner 12135 434713 0 0 3 0x14200 reaper reaper 70318 21648 0 0 3 0x14200 pgdaemon pagedaemon 77079 332124 0 0 3 0x14200 bored crynlk 37188 288993 0 0 3 0x14200 bored crypto 92344 424113 0 0 3 0x40014200 acpi0 acpi0 70940 304725 0 0 3 0x40014200 idle1 22687 390073 0 0 3 0x14200 bored softnet 77084 390707 0 0 7 0x14200 systqmp 94854 331798 0 0 3 0x14200 bored systq 42739 329043 0 0 3 0x40014200 bored softclock 63323 481784 0 0 3 0x40014200 idle0 29372 69093 0 0 3 0x14200 bored smr 1 119226 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 94465 (syz-executor.1) thread 0xffff800020b42f00 (114645) exclusive rwlock netlock r = 0 (0xffffffff824b9ff8) #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 (0xffffffff82646968) #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 9527 6425K 7778K 78643K 16015 0 0 pcb 13 8K 8K 78643K 361 0 0 rtable 99 12K 12K 78643K 804 0 0 ifaddr 63 14K 14K 78643K 216 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1508 0 0 iov 0 0K 16K 78643K 146 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1233 77K 78K 78643K 2621 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 3 5K 5K 78643K 23 0 0 VM map 10 5K 5K 78643K 10 0 0 sem 12 0K 0K 78643K 2403 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 1497 0 0 sigio 0 0K 0K 78643K 17 0 0 proc 62 63K 95K 78643K 698 0 0 subproc 32 2K 2K 78643K 119 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 39 0 0 in_multi 21 1K 2K 78643K 162 0 0 ether_multi 1 0K 0K 78643K 11 0 0 mrt 0 0K 0K 78643K 4 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 354 0 0 pfkey data 0 0K 0K 78643K 1 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 125 87K 91K 78643K 5600 0 0 UVM aobj 79 3K 3K 78643K 79 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 328 0 0 NDP 13 0K 0K 78643K 66 0 0 temp 180 3559K 3626K 78643K 31816 0 0 kqueue 0 0K 0K 78643K 15 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 28 0 23 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 766 0 764 1 0 1 1 0 8 0 rtentry 112 173 0 135 2 0 2 2 0 8 0 unpcb 120 1381 0 1368 4 3 1 2 0 8 0 syncache 264 10 0 10 3 3 0 1 0 8 0 tcpqe 32 64 0 64 1 1 0 1 0 8 0 tcpcb 544 483 0 479 2 1 1 2 0 8 0 inpcb 280 2510 0 2499 5 3 2 2 0 8 1 rttmr 72 2 0 1 1 0 1 1 0 8 0 nd6 48 23 0 20 1 0 1 1 0 8 0 pkpcb 40 12 0 12 3 3 0 1 0 8 0 ppxss 1128 20 0 20 6 5 1 1 0 8 1 pffrag 232 29 0 29 4 3 1 1 0 482 1 pffrnode 88 29 0 29 4 3 1 1 0 8 1 pffrent 40 822 0 822 4 3 1 1 0 8 1 pfosfp 40 846 0 846 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 21 0 21 0 8 0 pfstitem 24 104 0 57 1 0 1 1 0 8 0 pfstkey 112 104 0 57 2 0 2 2 0 8 0 pfstate 328 104 0 57 5 0 5 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 3 0 1 3 0 3 3 0 8 1 art_heap4 256 801 0 577 19 2 17 17 0 8 0 art_table 32 804 0 578 4 1 3 3 0 8 0 art_node 16 170 0 133 1 0 1 1 0 8 0 sysvmsgpl 40 84 0 44 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 2401 0 2391 1 0 1 1 0 8 0 shmpl 112 77 0 0 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3313 0 1909 46 0 46 46 0 8 0 ffsino 272 3313 0 1909 95 0 95 95 0 8 0 nchpl 144 5476 0 3860 62 1 61 61 0 8 0 uvmvnodes 72 4544 0 0 83 0 83 83 0 8 0 vnodes 208 4544 0 0 240 0 240 240 0 8 0 namei 1024 17795 0 17795 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 8 0 0 1 0 1 1 0 8 0 vmpool 552 8 0 0 1 0 1 1 0 8 0 scxspl 192 16070 0 16070 11 10 1 7 0 8 1 plimitpl 152 78 0 70 1 0 1 1 0 8 0 sigapl 432 1682 0 1666 3 1 2 3 0 8 0 futexpl 56 38269 0 38267 1 0 1 1 0 8 0 knotepl 112 250 0 231 1 0 1 1 0 8 0 kqueuepl 104 189 0 185 1 0 1 1 0 8 0 pipepl 112 618 0 595 1 0 1 1 0 8 0 fdescpl 488 1683 0 1666 3 0 3 3 0 8 0 filepl 152 13125 0 13017 8 2 6 7 0 8 1 lockfpl 104 272 0 271 1 0 1 1 0 8 0 lockfspl 48 96 0 95 1 0 1 1 0 8 0 sessionpl 112 23 0 12 1 0 1 1 0 8 0 pgrppl 48 39 0 28 1 0 1 1 0 8 0 ucredpl 96 1240 0 1231 1 0 1 1 0 8 0 zombiepl 144 1666 0 1666 1 0 1 1 0 8 1 processpl 896 1699 0 1666 4 0 4 4 0 8 0 procpl 632 4554 0 4508 7 2 5 5 0 8 0 srpgc 64 6 0 6 3 3 0 1 0 8 0 sosppl 128 23 0 23 4 3 1 1 0 8 1 sockpl 384 4695 0 4671 14 8 6 7 0 8 2 mcl64k 65536 24 0 0 3 0 3 3 0 8 0 mcl16k 16384 7 0 0 1 0 1 1 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 8 0 0 1 0 1 1 0 8 0 mcl8k 8192 9 0 0 2 0 2 2 0 8 0 mcl4k 4096 17 0 0 3 1 2 3 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 187 0 0 23 0 23 23 0 8 0 mtagpl 80 50 0 0 2 0 2 2 0 8 0 mbufpl 256 400 0 0 23 0 23 23 0 8 0 bufpl 256 9319 0 2271 441 0 441 441 0 8 0 anonpl 16 181040 0 157888 120 22 98 98 0 124 3 amapchunkpl 152 10109 0 9917 17 7 10 14 0 158 0 amappl16 192 8277 0 7013 80 16 64 64 0 8 0 amappl14 176 760 0 758 1 0 1 1 0 8 0 amappl12 160 520 0 514 2 1 1 1 0 8 0 amappl11 152 149 0 135 1 0 1 1 0 8 0 amappl10 144 24 0 17 1 0 1 1 0 8 0 amappl9 136 760 0 754 1 0 1 1 0 8 0 amappl8 128 311 0 285 2 1 1 2 0 8 0 amappl7 120 65 0 56 1 0 1 1 0 8 0 amappl6 112 157 0 145 1 0 1 1 0 8 0 amappl5 104 687 0 670 1 0 1 1 0 8 0 amappl4 96 901 0 871 1 0 1 1 0 8 0 amappl3 88 1912 0 1906 1 0 1 1 0 8 0 amappl2 80 12236 0 12156 3 1 2 3 0 8 0 amappl1 72 44018 0 43546 25 14 11 20 0 8 0 amappl 80 4914 0 4858 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 78 0 0 2 0 2 2 0 8 0 uaddrrnd 24 1691 0 1666 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1691 0 1666 1 0 1 1 0 8 0 vmmpekpl 168 14670 0 14631 3 0 3 3 0 8 0 vmmpepl 168 210768 0 208213 169 53 116 134 0 357 4 vmsppl 368 1682 0 1666 2 0 2 2 0 8 0 pdppl 4096 3389 0 3340 7 0 7 7 0 8 0 pvpl 32 498503 0 471484 266 40 226 226 0 265 7 pmappl 232 1690 0 1666 2 0 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 632 0 7 18 0 18 18 0 8 0