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 *338851 46650 0 0 0x4000000 1K syz-executor.1 87520 42709 0 0x2 0 0 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(ffffffff82205e21,ffffffff821fcb2f,3b3,ffffffff821bd569) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000acd000,1,fffffd806f30f9a0) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800020b4c9e8,1,ffff800020b4cab8,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000bd8800,240404,ffff800000bd8858,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000bd8800) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000acd000,ffff800000bd8800,ffff800020b4cde0,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800020b4cdd0,ffff800000acd000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800020b4cdd0,ffff800000acd000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806383a000,8020690c,ffff800020b4cdd0,ffff800020acef20) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020acef20,ffff800020b4cee8,ffff800020b4cf30) at sys_ioctl+0x5b9 syscall(ffff800020b4cfb0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b4cfb0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,e2fcb3d1280) at Xsyscall+0x128 end of kernel end trace frame: 0xe31f1b67c60, 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(ffffffff82205e21,ffffffff821fcb2f,3b3,ffffffff821bd569) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000acd000,1,fffffd806f30f9a0) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800020b4c9e8,1,ffff800020b4cab8,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000bd8800,240404,ffff800000bd8858,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000bd8800) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000acd000,ffff800000bd8800,ffff800020b4cde0,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800020b4cdd0,ffff800000acd000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800020b4cdd0,ffff800000acd000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806383a000,8020690c,ffff800020b4cdd0,ffff800020acef20) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020acef20,ffff800020b4cee8,ffff800020b4cf30) at sys_ioctl+0x5b9 syscall(ffff800020b4cfb0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b4cfb0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,e2fcb3d1280) at Xsyscall+0x128 end of kernel end trace frame: 0xe31f1b67c60, count: -14 ddb{1}> show registers rdi 0xffffffff81bab4d7 db_enter+0x17 rsi 0x4974 __ALIGN_SIZE+0x3974 rbp 0xffff800020b4c720 rbx 0xffff800020b4c7d0 rdx 0x4975 __ALIGN_SIZE+0x3975 rcx 0xffff800022f84000 rax 0xffff800022f84000 r8 0xffffffff8188b28f kprintf+0x16f r9 0x1 r10 0x25 r11 0x703d101896a3cc12 r12 0x3000000008 r13 0xffff800020b4c730 r14 0x100 r15 0x1 rip 0xffffffff81bab4d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b4c710 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=338851 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020acf900,0xffffffff8264c6f8 process=0xffff800020adc700 user=0xffff800020b48000, vmspace=0xfffffd807f00a730 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 46650 472675 87741 0 2 0 syz-executor.1 46650 389949 87741 0 3 0x4000080 fsleep syz-executor.1 46650 233589 87741 0 3 0x4000080 fsleep syz-executor.1 46650 506789 87741 0 3 0x4000080 fsleep syz-executor.1 *46650 338851 87741 0 7 0x4000000 syz-executor.1 42709 87520 65505 0 7 0x2 syz-executor.0 87741 60012 65505 0 3 0x82 nanosleep syz-executor.1 49747 169068 0 0 3 0x14200 bored sosplice 65505 196079 20572 0 3 0x82 thrsleep syz-fuzzer 65505 435051 20572 0 3 0x4000082 nanosleep syz-fuzzer 65505 513005 20572 0 3 0x4000082 thrsleep syz-fuzzer 65505 451635 20572 0 3 0x4000082 nanosleep syz-fuzzer 65505 370318 20572 0 3 0x4000082 thrsleep syz-fuzzer 65505 290861 20572 0 3 0x4000082 thrsleep syz-fuzzer 65505 172442 20572 0 3 0x4000082 thrsleep syz-fuzzer 65505 453045 20572 0 3 0x4000082 thrsleep syz-fuzzer 65505 3558 20572 0 3 0x4000082 thrsleep syz-fuzzer 65505 520928 20572 0 3 0x4000082 kqread syz-fuzzer 20572 300637 63965 0 3 0x10008a pause ksh 63965 256869 6423 0 3 0x92 select sshd 87999 466618 1 0 3 0x100083 ttyin getty 6423 430571 1 0 3 0x80 select sshd 74176 204991 24634 74 3 0x100092 bpf pflogd 24634 126234 1 0 3 0x80 netio pflogd 40544 215571 52634 73 3 0x100090 kqread syslogd 52634 285491 1 0 3 0x100082 netio syslogd 80959 224992 1 77 3 0x100090 poll dhclient 52221 300290 1 0 3 0x80 poll dhclient 35884 472904 0 0 2 0x14200 zerothread 13911 172741 0 0 3 0x14200 aiodoned aiodoned 55008 374829 0 0 3 0x14200 syncer update 10093 420617 0 0 3 0x14200 cleaner cleaner 73484 150214 0 0 3 0x14200 reaper reaper 39964 308161 0 0 3 0x14200 pgdaemon pagedaemon 42860 153192 0 0 3 0x14200 bored crynlk 51650 384450 0 0 3 0x14200 bored crypto 11536 490103 0 0 3 0x40014200 acpi0 acpi0 82177 149366 0 0 3 0x40014200 idle1 14328 237852 0 0 3 0x14200 bored softnet 81340 17809 0 0 3 0x14200 bored systqmp 92114 36303 0 0 3 0x14200 bored systq 86339 392880 0 0 3 0x40014200 bored softclock 90331 121409 0 0 3 0x40014200 idle0 44810 236249 0 0 3 0x14200 bored smr 1 518572 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 46650 (syz-executor.1) thread 0xffff800020acef20 (338851) exclusive rwlock netlock r = 0 (0xffffffff824e8728) #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 (0xffffffff8266bc58) #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 9552 6425K 7445K 78643K 12466 0 0 pcb 13 8K 8K 78643K 2126 0 0 rtable 152 6K 6K 78643K 805 0 0 ifaddr 73 15K 16K 78643K 211 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1519 0 0 iov 0 0K 24K 78643K 261 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1229 77K 77K 78643K 1919 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 146 0 0 VM map 9 4K 4K 78643K 9 0 0 sem 12 0K 1K 78643K 223 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 2387 0 0 sigio 0 0K 0K 78643K 763 0 0 proc 61 63K 95K 78643K 821 0 0 subproc 32 2K 2K 78643K 153 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 95 0 0 in_multi 29 1K 2K 78643K 173 0 0 ether_multi 1 0K 0K 78643K 11 0 0 mrt 0 0K 0K 78643K 3 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 54 238K 238K 78643K 54 0 0 exec 0 0K 1K 78643K 1076 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 147 106K 116K 78643K 9795 0 0 UVM aobj 130 4K 4K 78643K 138 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 572 0 0 NDP 16 0K 0K 78643K 69 0 0 temp 200 3564K 3632K 78643K 20758 0 0 kqueue 0 0K 0K 78643K 11 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 24 0 18 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 71 0 69 1 0 1 1 0 8 0 rtentry 112 188 0 122 2 0 2 2 0 8 0 unpcb 120 1982 0 1971 18 17 1 3 0 8 0 syncache 264 8 0 8 3 3 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 544 3096 0 3092 3 2 1 2 0 8 0 inpcb 280 6850 0 6841 27 25 2 4 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 45 0 23 1 0 1 1 0 8 0 pkpcb 40 5 0 5 2 2 0 1 0 8 0 ppxss 1128 18 0 18 6 6 0 1 0 8 0 pffrag 232 22 0 22 11 11 0 1 0 482 0 pffrnode 88 22 0 22 11 11 0 1 0 8 0 pffrent 40 709 0 709 11 11 0 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 88 0 79 1 0 1 1 0 8 0 pfstkey 112 88 0 79 1 0 1 1 0 8 0 pfstate 328 88 0 79 4 3 1 3 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 1090 0 546 42 7 35 35 0 8 0 art_table 32 1091 0 546 5 0 5 5 0 8 0 art_node 16 187 0 127 1 0 1 1 0 8 0 sysvmsgpl 40 56 0 33 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 217 0 207 1 0 1 1 0 8 0 shmpl 112 136 0 8 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4414 0 3007 46 0 46 46 0 8 0 ffsino 272 4414 0 3007 95 0 95 95 0 8 0 nchpl 144 7696 0 6083 61 0 61 61 0 8 0 uvmvnodes 72 4984 0 0 91 0 91 91 0 8 0 vnodes 208 4984 0 0 263 0 263 263 0 8 0 namei 1024 25660 0 25660 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 7 0 0 1 0 1 1 0 8 0 vmpool 552 7 0 0 1 0 1 1 0 8 0 scsiplug 64 2 0 2 2 2 0 1 0 8 0 scxspl 192 22261 0 22261 10 9 1 6 0 8 1 plimitpl 152 84 0 76 1 0 1 1 0 8 0 sigapl 432 2566 0 2551 3 1 2 3 0 8 0 futexpl 56 58642 0 58639 1 0 1 1 0 8 0 knotepl 112 284 0 265 1 0 1 1 0 8 0 kqueuepl 104 214 0 212 1 0 1 1 0 8 0 pipepl 112 2164 0 2145 1 0 1 1 0 8 0 fdescpl 488 2567 0 2551 3 0 3 3 0 8 0 filepl 152 22893 0 22791 40 35 5 9 0 8 0 lockfpl 104 5892 0 5891 1 0 1 1 0 8 0 lockfspl 48 589 0 588 1 0 1 1 0 8 0 sessionpl 112 25 0 14 1 0 1 1 0 8 0 pgrppl 48 27 0 16 1 0 1 1 0 8 0 ucredpl 96 838 0 829 1 0 1 1 0 8 0 zombiepl 144 2551 0 2551 2 1 1 1 0 8 1 processpl 896 2583 0 2551 4 0 4 4 0 8 0 procpl 632 8686 0 8641 11 6 5 5 0 8 0 srpgc 64 14 0 14 6 6 0 1 0 8 0 sosppl 128 561 0 561 15 15 0 1 0 8 0 sockpl 384 8923 0 8901 98 94 4 14 0 8 1 mcl64k 65536 276 0 0 35 5 30 34 0 8 1 mcl16k 16384 21 0 0 3 1 2 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 7 0 0 1 0 1 1 0 8 0 mcl8k 8192 25 0 0 4 1 3 3 0 8 0 mcl4k 4096 33 0 0 4 1 3 3 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 332 0 0 27 10 17 27 0 8 0 mtagpl 80 33 0 0 1 0 1 1 0 8 0 mbufpl 256 819 0 0 26 0 26 26 0 8 0 bufpl 256 9772 0 2724 441 0 441 441 0 8 0 anonpl 16 246501 0 226324 119 27 92 98 0 124 10 amapchunkpl 152 17463 0 17316 30 18 12 13 0 158 5 amappl16 192 11681 0 10545 97 38 59 69 0 8 1 amappl15 184 689 0 686 1 0 1 1 0 8 0 amappl14 176 297 0 295 1 0 1 1 0 8 0 amappl13 168 1 0 1 1 1 0 1 0 8 0 amappl12 160 255 0 252 1 0 1 1 0 8 0 amappl11 152 512 0 496 1 0 1 1 0 8 0 amappl10 144 23 0 18 1 0 1 1 0 8 0 amappl9 136 1404 0 1398 1 0 1 1 0 8 0 amappl8 128 984 0 940 2 0 2 2 0 8 0 amappl7 120 81 0 71 1 0 1 1 0 8 0 amappl6 112 519 0 507 1 0 1 1 0 8 0 amappl5 104 1183 0 1170 1 0 1 1 0 8 0 amappl4 96 2871 0 2838 2 1 1 2 0 8 0 amappl3 88 359 0 352 1 0 1 1 0 8 0 amappl2 80 19910 0 19832 3 1 2 3 0 8 0 amappl1 72 68548 0 68098 25 15 10 20 0 8 0 amappl 80 9039 0 8989 3 1 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 137 0 8 3 0 3 3 0 8 0 uaddrrnd 24 2574 0 2551 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2574 0 2551 1 0 1 1 0 8 0 vmmpekpl 168 27584 0 27551 2 0 2 2 0 8 0 vmmpepl 168 327519 0 325185 324 215 109 147 0 357 2 vmsppl 368 2566 0 2551 2 0 2 2 0 8 0 pdppl 4096 5155 0 5109 7 0 7 7 0 8 0 pvpl 32 695858 0 673108 282 70 212 222 0 265 24 pmappl 232 2573 0 2551 2 0 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 699 0 31 20 0 20 20 0 8 0