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 *257948 84198 0 0 0x4000000 1K syz-executor.1 446723 64328 0 0 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(ffffffff82207051,ffffffff821fd613,3b3,ffffffff821bf6fb) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000b5b000,1,fffffd80653d1008) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff8000219ece18,1,ffff8000219ecee8,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000bca800,240404,ffff800000bca858,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000bca800) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000b5b000,ffff800000bca800,ffff8000219ed210,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff8000219ed200,ffff800000b5b000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff8000219ed200,ffff800000b5b000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd807bcd8318,8020690c,ffff8000219ed200,ffff800020abf160) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abf160,ffff8000219ed318,ffff8000219ed360) at sys_ioctl+0x5b9 syscall(ffff8000219ed3e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000219ed3e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,5ae9966f010) at Xsyscall+0x128 end of kernel end trace frame: 0x5b17edd4950, 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(ffff800000b5b000,1,fffffd80653d1008) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff8000219ece18,1,ffff8000219ecee8,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000bca800,240404,ffff800000bca858,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000bca800) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000b5b000,ffff800000bca800,ffff8000219ed210,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff8000219ed200,ffff800000b5b000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff8000219ed200,ffff800000b5b000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd807bcd8318,8020690c,ffff8000219ed200,ffff800020abf160) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abf160,ffff8000219ed318,ffff8000219ed360) at sys_ioctl+0x5b9 syscall(ffff8000219ed3e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000219ed3e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,5ae9966f010) at Xsyscall+0x128 end of kernel end trace frame: 0x5b17edd4950, count: -14 ddb{1}> show registers rdi 0xffffffff8101a1f7 db_enter+0x17 rsi 0x48a4 __ALIGN_SIZE+0x38a4 rbp 0xffff8000219ecb50 rbx 0xffff8000219ecc00 rdx 0x48a5 __ALIGN_SIZE+0x38a5 rcx 0xffff800020d50000 rax 0xffff800020d50000 r8 0xffffffff812be63f kprintf+0x16f r9 0x1 r10 0x25 r11 0x4733972007b92194 r12 0x3000000008 r13 0xffff8000219ecb60 r14 0x100 r15 0x1 rip 0xffffffff8101a1f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000219ecb40 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=257948 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020abe018,0xffffffff8262b978 process=0xffff800020adc000 user=0xffff8000219e8000, vmspace=0xfffffd807f00b8a0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 84198 27517 76200 0 2 0 syz-executor.1 *84198 257948 76200 0 7 0x4000000 syz-executor.1 64328 446723 28975 0 7 0 syz-executor.0 64328 278508 28975 0 3 0x4000080 fsleep syz-executor.0 28975 369244 8745 0 3 0x82 nanosleep syz-executor.0 76200 69864 8745 0 3 0x82 nanosleep syz-executor.1 44830 178945 1 0 3 0x100083 ttyin getty 21680 34537 0 0 3 0x14200 acct acct 3281 89048 0 0 3 0x14200 bored sosplice 8745 5715 70852 0 3 0x82 thrsleep syz-fuzzer 8745 86783 70852 0 3 0x4000082 thrsleep syz-fuzzer 8745 176402 70852 0 3 0x4000082 thrsleep syz-fuzzer 8745 450859 70852 0 3 0x4000082 thrsleep syz-fuzzer 8745 363010 70852 0 3 0x4000082 thrsleep syz-fuzzer 8745 381351 70852 0 3 0x4000082 thrsleep syz-fuzzer 8745 152314 70852 0 3 0x4000082 thrsleep syz-fuzzer 8745 254044 70852 0 3 0x4000082 thrsleep syz-fuzzer 8745 149508 70852 0 3 0x4000082 thrsleep syz-fuzzer 8745 284705 70852 0 3 0x4000082 kqread syz-fuzzer 70852 359588 92760 0 3 0x10008a pause ksh 92760 105309 71661 0 3 0x92 select sshd 71661 210539 1 0 3 0x80 select sshd 65832 137352 93581 74 3 0x100092 bpf pflogd 93581 232050 1 0 3 0x80 netio pflogd 66932 511160 72454 73 3 0x100090 kqread syslogd 72454 115011 1 0 3 0x100082 netio syslogd 99561 201561 1 77 3 0x100090 poll dhclient 70637 478928 1 0 3 0x80 poll dhclient 16213 159023 0 0 2 0x14200 zerothread 27480 301586 0 0 3 0x14200 aiodoned aiodoned 4502 137371 0 0 3 0x14200 syncer update 57304 92375 0 0 3 0x14200 cleaner cleaner 70912 3263 0 0 3 0x14200 reaper reaper 90413 326523 0 0 3 0x14200 pgdaemon pagedaemon 85421 380248 0 0 3 0x14200 bored crynlk 86104 34053 0 0 3 0x14200 bored crypto 63847 195394 0 0 3 0x40014200 acpi0 acpi0 33109 244986 0 0 3 0x40014200 idle1 42468 89062 0 0 3 0x14200 bored softnet 95181 244692 0 0 3 0x14200 bored systqmp 22834 235872 0 0 3 0x14200 bored systq 26490 249634 0 0 3 0x40014200 bored softclock 89396 50238 0 0 3 0x40014200 idle0 84010 338186 0 0 3 0x14200 bored smr 1 147854 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 84198 (syz-executor.1) thread 0xffff800020abf160 (257948) 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 9621 6463K 15287K 78643K 51126 0 0 pcb 13 13K 15K 78643K 16604 0 0 rtable 123 13K 14K 78643K 9537 0 0 ifaddr 105 31K 38K 78643K 2739 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2584 0 0 iov 0 0K 32K 78643K 2814 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1219 77K 78K 78643K 15949 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 763 0 0 VM map 98 49K 49K 78643K 175 0 0 sem 12 0K 1K 78643K 3300 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 14052 0 0 sigio 0 0K 0K 78643K 260 0 0 proc 62 63K 95K 78643K 5883 0 0 subproc 32 2K 2K 78643K 1708 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 1K 78643K 9051 0 0 in_multi 38 2K 3K 78643K 1886 0 0 ether_multi 1 0K 0K 78643K 228 0 0 mrt 6 0K 0K 78643K 160 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 126 556K 556K 78643K 126 0 0 exec 0 0K 1K 78643K 2856 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 278 904K 904K 78643K 51620 0 0 UVM aobj 130 5K 5K 78643K 132 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 2768 0 0 NDP 23 0K 1K 78643K 886 0 0 temp 250 3561K 4201K 78643K 479748 0 0 kqueue 0 0K 0K 78643K 94 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 312 0 305 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 1098 0 1096 1 0 1 1 0 8 0 rtentry 112 1683 0 1638 2 0 2 2 0 8 0 unpcb 120 7539 0 7515 12 10 2 2 0 8 0 syncache 264 53 0 53 25 25 0 1 0 8 0 sackhl 24 13 0 13 9 9 0 1 0 8 0 tcpqe 32 128 0 128 9 9 0 1 0 8 0 tcpcb 544 8578 0 8574 70 69 1 14 0 8 0 inpcb 280 43556 0 43546 79 77 2 13 0 8 1 rttmr 72 32 0 31 2 1 1 1 0 8 0 ip6q 72 2 0 2 2 2 0 1 0 8 0 ip6af 40 4 0 4 2 2 0 1 0 8 0 nd6 48 258 0 254 5 4 1 1 0 8 0 pkpcb 40 53 0 53 20 20 0 1 0 8 0 swfcl 56 5 0 0 1 0 1 1 0 8 0 ppxss 1128 405 0 405 34 33 1 1 0 8 1 pffrag 232 366 0 366 35 34 1 1 0 482 1 pffrnode 88 362 0 362 35 34 1 1 0 8 1 pffrent 40 11004 0 11004 35 34 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 1111 0 1042 1 0 1 1 0 8 0 pfstkey 112 1113 0 1044 3 0 3 3 0 8 0 pfstate 328 1113 0 1044 12 5 7 9 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 15 0 14 11 10 1 3 0 8 0 art_heap4 256 7064 0 6771 72 51 21 21 0 8 1 art_table 32 7079 0 6785 4 1 3 3 0 8 0 art_node 16 1667 0 1625 1 0 1 1 0 8 0 sysvmsgpl 40 73 0 52 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 3295 0 3285 1 0 1 1 0 8 0 shmpl 112 130 0 2 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 22581 0 21115 48 0 48 48 0 8 0 ffsino 272 22581 0 21115 99 0 99 99 0 8 0 nchpl 144 43450 0 42990 61 41 20 61 0 8 0 uvmvnodes 72 8104 0 0 148 0 148 148 0 8 0 vnodes 208 8104 0 0 427 0 427 427 0 8 0 namei 1024 153474 0 153474 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 102 0 6 12 0 12 12 0 8 0 vmpool 552 173 0 77 8 1 7 7 0 8 0 scsiplug 64 10 0 10 9 8 1 1 0 8 1 scxspl 192 141774 0 141774 80 79 1 7 0 8 1 plimitpl 152 1171 0 1163 1 0 1 1 0 8 0 sigapl 432 13964 0 13948 3 1 2 3 0 8 0 futexpl 56 358861 0 358860 1 0 1 1 0 8 0 knotepl 112 3832 0 3813 13 12 1 3 0 8 0 kqueuepl 104 4115 0 4113 20 19 1 4 0 8 0 pipepl 112 8120 0 8101 24 23 1 2 0 8 0 fdescpl 488 13965 0 13948 3 0 3 3 0 8 0 filepl 152 134130 0 134027 110 104 6 14 0 8 2 lockfpl 104 4857 0 4856 1 0 1 1 0 8 0 lockfspl 48 1637 0 1636 1 0 1 1 0 8 0 sessionpl 112 122 0 111 1 0 1 1 0 8 0 pgrppl 48 307 0 296 1 0 1 1 0 8 0 ucredpl 96 14522 0 14513 1 0 1 1 0 8 0 zombiepl 144 13952 0 13952 2 1 1 1 0 8 1 processpl 896 13986 0 13952 4 0 4 4 0 8 0 procpl 632 45709 0 45664 5 0 5 5 0 8 0 srpgc 64 133 0 133 42 41 1 1 0 8 1 sosppl 128 288 0 288 44 44 0 1 0 8 0 sockpl 384 52819 0 52783 147 141 6 22 0 8 1 mcl64k 65536 1441 0 0 169 71 98 130 0 8 1 mcl16k 16384 41 0 0 5 2 3 3 0 8 0 mcl12k 12288 49 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 33 0 0 3 0 3 3 0 8 0 mcl4k 4096 30 0 0 3 1 2 3 0 8 0 mcl2k2 2112 18 0 0 2 0 2 2 0 8 0 mcl2k 2048 286 0 0 30 13 17 30 0 8 0 mtagpl 80 198 0 0 2 1 1 2 0 8 0 mbufpl 256 1759 0 0 72 0 72 72 0 8 0 bufpl 256 57475 0 49371 507 0 507 507 0 8 0 anonpl 16 1718571 0 1699371 392 294 98 100 0 124 7 amapchunkpl 152 106928 0 106762 196 187 9 19 0 158 0 amappl16 192 74922 0 73724 451 381 70 73 0 8 8 amappl15 184 2834 0 2833 1 0 1 1 0 8 0 amappl14 176 2647 0 2644 1 0 1 1 0 8 0 amappl13 168 1892 0 1892 13 13 0 1 0 8 0 amappl12 160 1652 0 1649 2 1 1 1 0 8 0 amappl11 152 922 0 907 1 0 1 1 0 8 0 amappl10 144 1993 0 1987 1 0 1 1 0 8 0 amappl9 136 3967 0 3960 1 0 1 1 0 8 0 amappl8 128 3413 0 3350 7 4 3 3 0 8 0 amappl7 120 2379 0 2370 1 0 1 1 0 8 0 amappl6 112 752 0 729 1 0 1 1 0 8 0 amappl5 104 2611 0 2596 1 0 1 1 0 8 0 amappl4 96 13481 0 13444 1 0 1 1 0 8 0 amappl3 88 2968 0 2952 1 0 1 1 0 8 0 amappl2 80 107755 0 107660 3 1 2 3 0 8 0 amappl1 72 328314 0 327863 25 14 11 20 0 8 0 amappl 80 47845 0 47746 4 1 3 3 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 131 0 2 3 0 3 3 0 8 0 uaddrrnd 24 14138 0 13948 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 14138 0 13948 2 0 2 2 0 8 0 vmmpekpl 168 111644 0 111587 4 1 3 3 0 8 0 vmmpepl 168 1798945 0 1796278 552 396 156 156 0 357 30 vmsppl 368 13964 0 13948 2 0 2 2 0 8 0 pdppl 4096 28283 0 28146 24 6 18 18 0 8 0 pvpl 32 4326154 0 4305043 736 520 216 224 0 265 22 pmappl 232 14137 0 14025 9 2 7 7 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1076 0 227 25 0 25 25 0 8 0