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 219354 93778 0 0 0 0 syz-executor.0 * 77496 93778 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 __assert(ffffffff822069c1,ffffffff82200c5d,3b3,ffffffff821c1ef2) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000a68000,1,fffffd80661da548) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff8000227b6e98,1,ffff8000227b6f68,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000ad2b00,240404,ffff800000ad2b58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000ad2b00) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000a68000,ffff800000ad2b00,ffff8000227b7290,0) at in_ifinit+0x1cf sys/netinet/in.c:645 in_ioctl_sifaddr(8020690c,ffff8000227b7280,ffff800000a68000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:372 in_ioctl(8020690c,ffff8000227b7280,ffff800000a68000,1) at in_ioctl+0x1e7 sys/netinet/in.c:243 ifioctl(fffffd806c8a6a90,8020690c,ffff8000227b7280,ffff800020ab0290) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0290,ffff8000227b7398,ffff8000227b73e0) at sys_ioctl+0x5b9 syscall(ffff8000227b7460) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000227b7460) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,7edaeda0010) at Xsyscall+0x128 end of kernel end trace frame: 0x7f010c190d0, 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(ffffffff822069c1,ffffffff82200c5d,3b3,ffffffff821c1ef2) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000a68000,1,fffffd80661da548) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff8000227b6e98,1,ffff8000227b6f68,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000ad2b00,240404,ffff800000ad2b58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000ad2b00) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000a68000,ffff800000ad2b00,ffff8000227b7290,0) at in_ifinit+0x1cf sys/netinet/in.c:645 in_ioctl_sifaddr(8020690c,ffff8000227b7280,ffff800000a68000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:372 in_ioctl(8020690c,ffff8000227b7280,ffff800000a68000,1) at in_ioctl+0x1e7 sys/netinet/in.c:243 ifioctl(fffffd806c8a6a90,8020690c,ffff8000227b7280,ffff800020ab0290) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0290,ffff8000227b7398,ffff8000227b73e0) at sys_ioctl+0x5b9 syscall(ffff8000227b7460) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000227b7460) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,7edaeda0010) at Xsyscall+0x128 end of kernel end trace frame: 0x7f010c190d0, count: -14 ddb{1}> show registers rdi 0xffffffff81194cb7 db_enter+0x17 rsi 0x8726 __ALIGN_SIZE+0x7726 rbp 0xffff8000227b6bd0 rbx 0xffff8000227b6c80 rdx 0x8727 __ALIGN_SIZE+0x7727 rcx 0xffff800020b84000 rax 0xffff800020b84000 r8 0xffffffff81f734ef kprintf+0x16f r9 0x1 r10 0x25 r11 0xd0371a1fa2e880d3 r12 0x3000000008 r13 0xffff8000227b6be0 r14 0x100 r15 0x1 rip 0xffffffff81194cb8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000227b6bc0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=77496 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0018,0xffffffff82645b50 process=0xffff800020adc000 user=0xffff8000227b2000, vmspace=0xfffffd807f00ab80 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 93778 219354 43952 0 7 0 syz-executor.0 *93778 77496 43952 0 7 0x4000000 syz-executor.0 510 236451 0 0 3 0x14200 bored sosplice 33492 178673 57512 0 3 0x82 nanosleep syz-executor.1 43952 440466 57512 0 3 0x82 nanosleep syz-executor.0 57512 75837 5858 0 3 0x82 thrsleep syz-fuzzer 57512 398170 5858 0 3 0x4000082 thrsleep syz-fuzzer 57512 266459 5858 0 3 0x4000082 thrsleep syz-fuzzer 57512 426736 5858 0 3 0x4000082 thrsleep syz-fuzzer 57512 470256 5858 0 3 0x4000082 thrsleep syz-fuzzer 57512 519287 5858 0 3 0x4000082 thrsleep syz-fuzzer 57512 325442 5858 0 3 0x4000082 thrsleep syz-fuzzer 57512 223846 5858 0 3 0x4000082 thrsleep syz-fuzzer 57512 485458 5858 0 3 0x4000082 kqread syz-fuzzer 57512 403725 5858 0 3 0x4000082 thrsleep syz-fuzzer 5858 193307 66934 0 3 0x10008a pause ksh 66934 23815 57516 0 3 0x92 select sshd 95921 30074 1 0 3 0x100083 ttyin getty 57516 308252 1 0 3 0x80 select sshd 42290 26503 87131 74 3 0x100092 bpf pflogd 87131 507930 1 0 3 0x80 netio pflogd 6006 523508 50186 73 3 0x100090 kqread syslogd 50186 256270 1 0 3 0x100082 netio syslogd 83969 269041 1 77 3 0x100090 poll dhclient 14025 457800 1 0 3 0x80 poll dhclient 80614 511062 0 0 3 0x14200 pgzero zerothread 20983 132085 0 0 3 0x14200 aiodoned aiodoned 77324 423874 0 0 3 0x14200 syncer update 63252 392351 0 0 3 0x14200 cleaner cleaner 8933 194375 0 0 3 0x14200 reaper reaper 1859 355205 0 0 3 0x14200 pgdaemon pagedaemon 10261 234425 0 0 3 0x14200 bored crynlk 36282 112405 0 0 3 0x14200 bored crypto 98311 236849 0 0 3 0x40014200 acpi0 acpi0 15795 138961 0 0 3 0x40014200 idle1 79548 389725 0 0 3 0x14200 bored softnet 78288 465505 0 0 2 0x14200 systqmp 91327 227141 0 0 3 0x14200 bored systq 49649 427725 0 0 3 0x40014200 bored softclock 66326 404578 0 0 3 0x40014200 idle0 96103 142507 0 0 3 0x14200 bored smr 1 227485 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 93778 (syz-executor.0) thread 0xffff800020ab0290 (77496) exclusive rwlock netlock r = 0 (0xffffffff824f3758) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 in_ioctl_sifaddr+0x69 #2 in_ioctl+0x1e7 sys/netinet/in.c:243 #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 (0xffffffff8262a6d0) #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 9510 6403K 7434K 78643K 11829 0 0 pcb 13 8K 8K 78643K 79 0 0 rtable 100 3K 4K 78643K 377 0 0 ifaddr 58 13K 13K 78643K 117 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1489 0 0 iov 0 0K 32K 78643K 93 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1224 77K 77K 78643K 1535 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 9 0 0 VM map 4 2K 2K 78643K 6 0 0 sem 12 0K 0K 78643K 116 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 282 0 0 proc 60 63K 95K 78643K 470 0 0 subproc 32 2K 2K 78643K 34 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 30 0 0 in_multi 29 1K 2K 78643K 57 0 0 ether_multi 1 0K 0K 78643K 2 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 229 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 108 38K 38K 78643K 1929 0 0 UVM aobj 39 2K 2K 78643K 39 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 64 0 0 NDP 12 0K 0K 78643K 32 0 0 temp 166 3559K 3627K 78643K 17237 0 0 kqueue 0 0K 0K 78643K 2 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 47 0 45 1 0 1 1 0 8 0 rtentry 112 74 0 34 2 0 2 2 0 8 0 unpcb 120 167 0 157 1 0 1 1 0 8 0 syncache 264 8 0 8 3 2 1 1 0 8 1 tcpqe 32 101 0 101 1 1 0 1 0 8 0 tcpcb 544 130 0 124 1 0 1 1 0 8 0 inpcb 280 525 0 515 2 0 2 2 0 8 1 nd6 48 10 0 5 1 0 1 1 0 8 0 ppxss 1128 7 0 7 2 1 1 1 0 8 1 pffrag 232 7 0 7 2 1 1 1 0 482 1 pffrnode 88 7 0 7 2 1 1 1 0 8 1 pffrent 40 231 0 231 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 45 0 4 1 0 1 1 0 8 0 pfstkey 112 45 0 4 2 0 2 2 0 8 0 pfstate 328 45 0 4 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 351 0 124 15 0 15 15 0 8 0 art_table 32 352 0 124 2 0 2 2 0 8 0 art_node 16 73 0 34 1 0 1 1 0 8 0 sysvmsgpl 40 43 0 33 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 110 0 100 1 0 1 1 0 8 0 shmpl 112 37 0 0 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1810 0 406 46 0 46 46 0 8 0 ffsino 272 1810 0 406 94 0 94 94 0 8 0 nchpl 144 2545 0 2075 61 36 25 61 0 8 6 uvmvnodes 72 2120 0 0 39 0 39 39 0 8 0 vnodes 208 2120 0 0 112 0 112 112 0 8 0 namei 1024 7295 0 7295 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 4 0 2 2 1 1 1 0 8 0 scxspl 192 7005 0 7005 8 5 3 5 0 8 3 plimitpl 152 43 0 35 1 0 1 1 0 8 0 sigapl 432 480 0 465 3 1 2 3 0 8 0 futexpl 56 7007 0 7007 1 0 1 1 0 8 1 knotepl 112 86 0 67 1 0 1 1 0 8 0 kqueuepl 104 107 0 105 1 0 1 1 0 8 0 pipepl 112 318 0 299 1 0 1 1 0 8 0 fdescpl 488 481 0 465 3 0 3 3 0 8 0 filepl 152 3642 0 3539 7 1 6 6 0 8 2 lockfpl 104 99 0 98 1 0 1 1 0 8 0 lockfspl 48 32 0 31 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 295 0 286 1 0 1 1 0 8 0 zombiepl 144 465 0 464 1 0 1 1 0 8 0 processpl 896 497 0 464 4 0 4 4 0 8 0 procpl 632 1153 0 1110 5 0 5 5 0 8 1 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 384 750 0 728 4 0 4 4 0 8 1 mcl64k 65536 7 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 0 8 0 mcl4k 4096 9 0 0 2 0 2 2 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 150 0 0 18 0 18 18 0 8 0 mtagpl 80 21 0 0 1 0 1 1 0 8 0 mbufpl 256 354 0 0 22 0 22 22 0 8 0 bufpl 256 6956 0 1310 353 0 353 353 0 8 0 anonpl 16 60925 0 41387 82 2 80 80 0 124 0 amapchunkpl 152 2764 0 2607 11 4 7 11 0 158 0 amappl16 192 2440 0 1367 55 0 55 55 0 8 1 amappl14 176 173 0 166 1 0 1 1 0 8 0 amappl12 160 10 0 7 1 0 1 1 0 8 0 amappl11 152 52 0 37 1 0 1 1 0 8 0 amappl10 144 19 0 14 1 0 1 1 0 8 0 amappl9 136 600 0 597 1 0 1 1 0 8 0 amappl8 128 169 0 143 2 0 2 2 0 8 0 amappl7 120 42 0 38 1 0 1 1 0 8 0 amappl6 112 66 0 57 1 0 1 1 0 8 0 amappl5 104 138 0 123 1 0 1 1 0 8 0 amappl4 96 616 0 580 2 1 1 2 0 8 0 amappl3 88 371 0 364 1 0 1 1 0 8 0 amappl2 80 2959 0 2888 3 1 2 3 0 8 0 amappl1 72 20366 0 19931 25 15 10 20 0 8 0 amappl 80 1411 0 1364 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 38 0 0 1 0 1 1 0 8 0 uaddrrnd 24 485 0 465 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 485 0 465 1 0 1 1 0 8 0 vmmpekpl 168 8272 0 8239 2 0 2 2 0 8 0 vmmpepl 168 65688 0 63479 129 18 111 126 0 357 9 vmsppl 368 480 0 465 2 0 2 2 0 8 0 pdppl 4096 977 0 936 6 0 6 6 0 8 0 pvpl 32 198602 0 175875 193 2 191 191 0 265 4 pmappl 232 484 0 467 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 525 0 3 15 0 15 15 0 8 0