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 143754 87418 0 0 0x4000000 1 syz-executor.1 *360794 87418 0 0 0x4000000 0K 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(ffff800000a94800,1,fffffd8064911cb8) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800023b8d6c8,1,ffff800023b8d798,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000abb300,240404,ffff800000abb358,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000abb300) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000a94800,ffff800000abb300,ffff800023b8dac0,1) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800023b8dab0,ffff800000a94800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800023b8dab0,ffff800000a94800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806c852910,8020690c,ffff800023b8dab0,ffff800020ab0290) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0290,ffff800023b8dbc8,ffff800023b8dc10) at sys_ioctl+0x5b9 syscall(ffff800023b8dc90) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b8dc90) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,1165f2b70e0) at Xsyscall+0x128 end of kernel end trace frame: 0x118a942b580, 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(ffff800000a94800,1,fffffd8064911cb8) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800023b8d6c8,1,ffff800023b8d798,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000abb300,240404,ffff800000abb358,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000abb300) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000a94800,ffff800000abb300,ffff800023b8dac0,1) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800023b8dab0,ffff800000a94800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800023b8dab0,ffff800000a94800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806c852910,8020690c,ffff800023b8dab0,ffff800020ab0290) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0290,ffff800023b8dbc8,ffff800023b8dc10) at sys_ioctl+0x5b9 syscall(ffff800023b8dc90) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b8dc90) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,1165f2b70e0) at Xsyscall+0x128 end of kernel end trace frame: 0x118a942b580, count: -14 ddb{0}> show registers rdi 0xffffffff814a9117 db_enter+0x17 rsi 0x4acd __ALIGN_SIZE+0x3acd rbp 0xffff800023b8d400 rbx 0xffff800023b8d4b0 rdx 0x4ace __ALIGN_SIZE+0x3ace rcx 0xffff800022d82000 rax 0xffff800022d82000 r8 0xffffffff81918aaf kprintf+0x16f r9 0x1 r10 0x25 r11 0x8671200d14cdd09d r12 0x3000000008 r13 0xffff800023b8d410 r14 0x100 r15 0x1 rip 0xffffffff814a9118 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023b8d3f0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=360794 stat=onproc flags process=0 proc=4000000 pri=78, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0018,0xffffffff826716a0 process=0xffff800020addc00 user=0xffff800023b88000, vmspace=0xfffffd807f00a000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 87418 60142 15282 0 2 0 syz-executor.1 87418 143754 15282 0 7 0x4000000 syz-executor.1 *87418 360794 15282 0 7 0x4000000 syz-executor.1 7934 402273 3016 0 2 0 syz-executor.0 7934 64787 3016 0 3 0x4000080 fsleep syz-executor.0 7934 149725 3016 0 2 0x4000000 syz-executor.0 3016 4665 9844 0 3 0x82 nanosleep syz-executor.0 35404 24786 0 0 3 0x14200 bored sosplice 7406 11051 0 0 3 0x14200 acct acct 15282 471121 9844 0 3 0x82 nanosleep syz-executor.1 9844 502975 59752 0 3 0x82 thrsleep syz-fuzzer 9844 345972 59752 0 3 0x4000082 thrsleep syz-fuzzer 9844 129008 59752 0 3 0x4000082 thrsleep syz-fuzzer 9844 149103 59752 0 3 0x4000082 thrsleep syz-fuzzer 9844 460858 59752 0 3 0x4000082 thrsleep syz-fuzzer 9844 161135 59752 0 3 0x4000082 thrsleep syz-fuzzer 9844 401860 59752 0 3 0x4000082 thrsleep syz-fuzzer 9844 19912 59752 0 3 0x4000082 kqread syz-fuzzer 9844 252436 59752 0 3 0x4000082 thrsleep syz-fuzzer 9844 273357 59752 0 3 0x4000082 thrsleep syz-fuzzer 59752 457632 33688 0 3 0x10008a pause ksh 33688 503083 81014 0 3 0x92 select sshd 70784 341638 1 0 3 0x100083 ttyin getty 81014 505114 1 0 3 0x80 select sshd 57007 208520 51754 74 3 0x100092 bpf pflogd 51754 400405 1 0 3 0x80 netio pflogd 48186 1898 34953 73 3 0x100090 kqread syslogd 34953 411613 1 0 3 0x100082 netio syslogd 29332 21195 1 77 3 0x100090 poll dhclient 72150 435489 1 0 3 0x80 poll dhclient 77936 262772 0 0 2 0x14200 zerothread 83596 504719 0 0 3 0x14200 aiodoned aiodoned 77769 10513 0 0 3 0x14200 syncer update 19310 482295 0 0 3 0x14200 cleaner cleaner 11654 309313 0 0 3 0x14200 reaper reaper 25658 502160 0 0 3 0x14200 pgdaemon pagedaemon 87521 505244 0 0 3 0x14200 bored crynlk 25781 256812 0 0 3 0x14200 bored crypto 25287 23889 0 0 3 0x40014200 acpi0 acpi0 19624 512966 0 0 3 0x40014200 idle1 83551 170273 0 0 3 0x14200 bored softnet 89376 127751 0 0 3 0x14200 bored systqmp 86989 49439 0 0 3 0x14200 bored systq 44568 346250 0 0 3 0x40014200 bored softclock 44633 414322 0 0 3 0x40014200 idle0 5744 64223 0 0 3 0x14200 bored smr 1 319946 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 87418 (syz-executor.1) thread 0xffff800020ab0290 (360794) 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 Process 7934 (syz-executor.0) thread 0xffff800020ab0018 (149725) exclusive rrwlock inode r = 0 (0xfffffd806ac46d58) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:574 #5 vn_write+0x11b sys/kern/vfs_vnops.c:414 #6 dofilewritev+0x1b7 sys/kern/sys_generic.c:364 #7 sys_pwrite+0x8f sys/kern/vfs_syscalls.c:3239 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9606 7142K 7710K 78643K 14511 0 0 pcb 13 8K 8K 78643K 240 0 0 rtable 114 5K 5K 78643K 680 0 0 ifaddr 70 15K 15K 78643K 208 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1490 0 0 iov 0 0K 18K 78643K 261 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1234 78K 78K 78643K 2317 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 8 4K 4K 78643K 8 0 0 sem 12 0K 1K 78643K 159 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 736 0 0 sigio 0 0K 0K 78643K 11 0 0 proc 61 63K 95K 78643K 647 0 0 subproc 32 2K 2K 78643K 85 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 64 0 0 in_multi 35 2K 2K 78643K 124 0 0 ether_multi 1 0K 0K 78643K 11 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 323 0 0 pfkey data 0 0K 0K 78643K 2 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 122 71K 76K 78643K 3509 0 0 UVM aobj 31 2K 2K 78643K 31 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 165 0 0 NDP 15 0K 0K 78643K 60 0 0 temp 193 3564K 4200K 78643K 14916 0 0 kqueue 0 0K 0K 78643K 4 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 19 0 14 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 83 0 81 1 0 1 1 0 8 0 rtentry 112 129 0 85 2 0 2 2 0 8 0 unpcb 120 375 0 365 2 1 1 2 0 8 0 syncache 264 9 0 9 3 3 0 1 0 8 0 tcpqe 32 8 0 8 3 3 0 1 0 8 0 tcpcb 544 315 0 310 2 1 1 2 0 8 0 inpcb 280 1219 0 1207 3 1 2 3 0 8 0 nd6 48 24 0 18 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1128 25 0 25 3 3 0 1 0 8 0 pffrag 232 10 0 10 3 2 1 1 0 482 1 pffrnode 88 10 0 10 3 2 1 1 0 8 1 pffrent 40 364 0 364 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 66 0 23 1 0 1 1 0 8 0 pfstkey 112 66 0 23 2 0 2 2 0 8 0 pfstate 328 66 0 22 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 587 0 343 19 3 16 16 0 8 0 art_table 32 588 0 343 2 0 2 2 0 8 0 art_node 16 128 0 88 1 0 1 1 0 8 0 sysvmsgpl 40 34 0 27 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 157 0 147 1 0 1 1 0 8 0 shmpl 112 29 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2501 0 1090 46 0 46 46 0 8 0 ffsino 272 2501 0 1090 95 0 95 95 0 8 0 nchpl 144 3906 0 2292 61 0 61 61 0 8 0 uvmvnodes 72 3463 0 0 63 0 63 63 0 8 0 vnodes 208 3463 0 0 183 0 183 183 0 8 0 namei 1024 13080 0 13080 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 6 0 0 1 0 1 1 0 8 0 vmpool 552 6 0 0 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 12015 0 12015 11 10 1 6 0 8 1 plimitpl 152 56 0 48 1 0 1 1 0 8 0 sigapl 432 927 0 911 3 1 2 3 0 8 0 futexpl 56 17388 0 17387 1 0 1 1 0 8 0 knotepl 112 224 0 205 1 0 1 1 0 8 0 kqueuepl 104 246 0 244 1 0 1 1 0 8 0 pipepl 112 522 0 503 3 1 2 2 0 8 1 fdescpl 488 928 0 911 3 0 3 3 0 8 0 filepl 152 8106 0 7998 9 3 6 7 0 8 1 lockfpl 104 220 0 219 1 0 1 1 0 8 0 lockfspl 48 84 0 83 1 0 1 1 0 8 0 sessionpl 112 21 0 10 1 0 1 1 0 8 0 pgrppl 48 29 0 18 1 0 1 1 0 8 0 ucredpl 96 1136 0 1127 1 0 1 1 0 8 0 zombiepl 144 911 0 911 1 0 1 1 0 8 1 processpl 896 945 0 911 4 0 4 4 0 8 0 procpl 632 2575 0 2528 5 0 5 5 0 8 1 srpgc 64 2 0 2 1 1 0 1 0 8 0 sockpl 384 1697 0 1673 7 4 3 6 0 8 0 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 7 0 0 1 0 1 1 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 157 0 0 19 0 19 19 0 8 0 mtagpl 80 38 0 0 1 0 1 1 0 8 0 mbufpl 256 359 0 0 20 0 20 20 0 8 0 bufpl 256 8300 0 1324 436 0 436 436 0 8 0 anonpl 16 121895 0 103046 97 8 89 93 0 124 11 amapchunkpl 152 6460 0 6325 19 11 8 13 0 158 1 amappl16 192 4823 0 3753 76 14 62 66 0 8 8 amappl15 184 117 0 113 1 0 1 1 0 8 0 amappl14 176 66 0 63 1 0 1 1 0 8 0 amappl13 168 8 0 7 1 0 1 1 0 8 0 amappl12 160 18 0 14 1 0 1 1 0 8 0 amappl11 152 60 0 45 1 0 1 1 0 8 0 amappl10 144 126 0 123 1 0 1 1 0 8 0 amappl9 136 1142 0 1134 1 0 1 1 0 8 0 amappl8 128 687 0 657 2 0 2 2 0 8 0 amappl7 120 169 0 162 1 0 1 1 0 8 0 amappl6 112 73 0 62 1 0 1 1 0 8 0 amappl5 104 164 0 148 1 0 1 1 0 8 0 amappl4 96 1201 0 1166 1 0 1 1 0 8 0 amappl3 88 145 0 137 1 0 1 1 0 8 0 amappl2 80 6377 0 6295 3 1 2 3 0 8 0 amappl1 72 30450 0 29988 26 16 10 20 0 8 0 amappl 80 2880 0 2834 4 2 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 30 0 0 1 0 1 1 0 8 0 uaddrrnd 24 934 0 911 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 934 0 911 1 0 1 1 0 8 0 vmmpekpl 168 11355 0 11320 2 0 2 2 0 8 0 vmmpepl 168 124782 0 122430 182 43 139 143 0 357 35 vmsppl 368 927 0 911 2 0 2 2 0 8 0 pdppl 4096 1875 0 1828 7 1 6 7 0 8 0 pvpl 32 350454 0 328308 225 18 207 217 0 265 27 pmappl 232 933 0 911 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 617 0 8 18 0 18 18 0 8 0