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 *522075 99292 0 0 0x4000000 0K syz-executor.1 206469 99292 0 0 0x4000000 1 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(ffffffff8220597e,ffffffff821fbaf1,3b3,ffffffff821bdc55) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000adf800,1,fffffd806651baf8) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800021f632f8,1,ffff800021f633c8,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000acbe00,240404,ffff800000acbe58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000acbe00) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000adf800,ffff800000acbe00,ffff800021f636f0,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800021f636e0,ffff800000adf800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800021f636e0,ffff800000adf800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806f6d2c00,8020690c,ffff800021f636e0,ffff800020ac0010) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ac0010,ffff800021f637f8,ffff800021f63840) at sys_ioctl+0x5b9 syscall(ffff800021f638c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021f638c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,73a968b7010) at Xsyscall+0x128 end of kernel end trace frame: 0x73ce0608510, 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(ffffffff8220597e,ffffffff821fbaf1,3b3,ffffffff821bdc55) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000adf800,1,fffffd806651baf8) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800021f632f8,1,ffff800021f633c8,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000acbe00,240404,ffff800000acbe58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000acbe00) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000adf800,ffff800000acbe00,ffff800021f636f0,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800021f636e0,ffff800000adf800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800021f636e0,ffff800000adf800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806f6d2c00,8020690c,ffff800021f636e0,ffff800020ac0010) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ac0010,ffff800021f637f8,ffff800021f63840) at sys_ioctl+0x5b9 syscall(ffff800021f638c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021f638c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,73a968b7010) at Xsyscall+0x128 end of kernel end trace frame: 0x73ce0608510, count: -14 ddb{0}> show registers rdi 0xffffffff819d3247 db_enter+0x17 rsi 0x521b __ALIGN_SIZE+0x421b rbp 0xffff800021f63030 rbx 0xffff800021f630e0 rdx 0x521c __ALIGN_SIZE+0x421c rcx 0xffff800021d58000 rax 0xffff800021d58000 r8 0xffffffff81bc379f kprintf+0x16f r9 0x1 r10 0x25 r11 0xd79a143afa97e127 r12 0x3000000008 r13 0xffff800021f63040 r14 0x100 r15 0x1 rip 0xffffffff819d3248 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021f63020 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=522075 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff800020a5f640,0xffff800020ab1170 process=0xffff800020adc380 user=0xffff800021f5e000, vmspace=0xfffffd807f00a170 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 99292 436510 73981 0 2 0 syz-executor.1 *99292 522075 73981 0 7 0x4000000 syz-executor.1 99292 206469 73981 0 7 0x4000000 syz-executor.1 36666 7091 0 0 3 0x14200 acct acct 73981 474571 56034 0 2 0x482 syz-executor.1 86298 86150 56034 0 2 0x2 syz-executor.0 53787 516124 1 0 3 0x100083 ttyin getty 86703 323898 0 0 3 0x14200 bored sosplice 56034 295146 21809 0 3 0x82 thrsleep syz-fuzzer 56034 325448 21809 0 2 0x4000482 syz-fuzzer 56034 440302 21809 0 3 0x4000082 thrsleep syz-fuzzer 56034 340916 21809 0 3 0x4000082 thrsleep syz-fuzzer 56034 439477 21809 0 3 0x4000082 thrsleep syz-fuzzer 56034 299956 21809 0 3 0x4000082 kqread syz-fuzzer 56034 204349 21809 0 3 0x4000082 thrsleep syz-fuzzer 56034 244479 21809 0 3 0x4000082 thrsleep syz-fuzzer 56034 360977 21809 0 2 0x4000482 syz-fuzzer 56034 246903 21809 0 3 0x4000082 thrsleep syz-fuzzer 21809 6826 16487 0 3 0x10008a pause ksh 16487 99980 15592 0 3 0x92 select sshd 15592 252487 1 0 3 0x80 select sshd 33542 226584 45643 74 3 0x100092 bpf pflogd 45643 507870 1 0 3 0x80 netio pflogd 53366 375572 74697 73 3 0x100090 kqread syslogd 74697 457740 1 0 3 0x100082 netio syslogd 24122 272101 0 0 3 0x14200 pgzero zerothread 2752 285108 0 0 3 0x14200 aiodoned aiodoned 40923 30524 0 0 3 0x14200 syncer update 29355 368194 0 0 3 0x14200 cleaner cleaner 44471 298033 0 0 3 0x14200 reaper reaper 72592 299535 0 0 3 0x14200 pgdaemon pagedaemon 1770 489848 0 0 3 0x14200 bored crynlk 77772 44650 0 0 3 0x14200 bored crypto 34442 463258 0 0 3 0x40014200 acpi0 acpi0 64109 280244 0 0 3 0x40014200 idle1 84385 83468 0 0 3 0x14200 bored softnet 42186 37836 0 0 2 0x14200 systqmp 50882 300236 0 0 3 0x14200 bored systq 68284 145169 0 0 3 0x40014200 bored softclock 47831 264428 0 0 3 0x40014200 idle0 37238 335763 0 0 3 0x14200 bored smr 1 21282 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 99292 (syz-executor.1) thread 0xffff800020ac0010 (522075) exclusive rwlock netlock r = 0 (0xffffffff8248ce38) #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 (0xffffffff826721f8) #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 86298 (syz-executor.0) thread 0xffff800020ab09f8 (86150) exclusive rrwlock inode r = 0 (0xfffffd8072e5cb40) #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 ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x13e sys/ufs/ffs/ffs_vfsops.c:1352 #5 ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392 #6 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1164 #7 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #8 domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #10 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd80672fd4e8) #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:562 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:2968 #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 9630 6406K 11271K 78643K 63128 0 0 pcb 13 10K 12K 78643K 1600 0 0 rtable 123 14K 14K 78643K 3593 0 0 ifaddr 123 30K 30K 78643K 1670 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1890 0 0 iov 0 0K 32K 78643K 1927 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1231 77K 78K 78643K 15773 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 88 0 0 VM map 2 1K 1K 78643K 25 0 0 sem 12 0K 1K 78643K 1149 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 9038 0 0 sigio 0 0K 0K 78643K 101 0 0 proc 57 51K 95K 78643K 2864 0 0 subproc 32 2K 2K 78643K 718 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 615 0 0 in_multi 30 1K 2K 78643K 746 0 0 ether_multi 1 0K 0K 78643K 59 0 0 mrt 2 0K 0K 78643K 60 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 120 530K 530K 78643K 120 0 0 exec 0 0K 1K 78643K 1559 0 0 pfkey data 0 0K 4K 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 130 23K 33K 78643K 31884 0 0 UVM aobj 130 4K 4K 78643K 136 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 1832 0 0 NDP 26 0K 1K 78643K 502 0 0 temp 278 3566K 4206K 78643K 171051 0 0 kqueue 0 0K 0K 78643K 74 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 133 0 128 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 517 0 517 6 5 1 1 0 8 1 rtentry 112 693 0 650 2 0 2 2 0 8 0 unpcb 120 4886 0 4870 10 8 2 2 0 8 1 syncache 264 35 0 35 13 13 0 1 0 8 0 tcpqe 32 5776 0 5776 3 3 0 1 0 8 0 tcpcb 544 6893 0 6889 111 99 12 13 0 8 11 inpcb 280 19155 0 19147 76 67 9 9 0 8 7 rttmr 72 20 0 19 10 9 1 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 1 0 1 1 1 0 1 0 8 0 nd6 48 90 0 86 5 4 1 1 0 8 0 pkpcb 40 18 0 18 9 9 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 288 0 287 18 17 1 1 0 8 0 pffrag 232 88 0 88 26 25 1 1 0 482 1 pffrnode 88 88 0 88 26 25 1 1 0 8 1 pffrent 40 414 0 414 26 25 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 578 0 529 1 0 1 1 0 8 0 pfstkey 112 578 0 529 3 1 2 3 0 8 0 pfstate 328 578 0 528 9 3 6 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 41 0 38 25 22 3 4 0 8 0 art_heap4 256 2970 0 2698 52 34 18 20 0 8 0 art_table 32 3011 0 2736 3 0 3 3 0 8 0 art_node 16 682 0 641 1 0 1 1 0 8 0 sysvmsgpl 40 25 0 16 1 0 1 1 0 8 0 semapl 112 1147 0 1137 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 15565 0 14134 47 0 47 47 0 8 0 ffsino 272 15565 0 14134 96 0 96 96 0 8 0 nchpl 144 28663 0 28158 61 40 21 61 0 8 0 uvmvnodes 72 7126 0 0 130 0 130 130 0 8 0 vnodes 208 7126 0 0 376 0 376 376 0 8 0 namei 1024 101464 0 101463 7 6 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 23 0 23 9 9 0 1 0 8 0 scsiplug 64 5 0 5 4 4 0 1 0 8 0 scxspl 192 91190 0 91190 60 57 3 7 0 8 3 plimitpl 152 777 0 770 1 0 1 1 0 8 0 sigapl 432 9119 0 9106 4 2 2 3 0 8 0 futexpl 56 198991 0 198991 3 2 1 1 0 8 1 knotepl 112 2000 0 1981 2 1 1 2 0 8 0 kqueuepl 104 3323 0 3321 28 24 4 4 0 8 3 pipepl 112 4694 0 4675 15 14 1 2 0 8 0 fdescpl 488 9120 0 9106 3 0 3 3 0 8 0 filepl 152 80825 0 80734 103 90 13 14 0 8 9 lockfpl 104 3346 0 3346 3 2 1 1 0 8 1 lockfspl 48 1140 0 1140 3 2 1 1 0 8 1 sessionpl 112 59 0 50 1 0 1 1 0 8 0 pgrppl 48 804 0 794 1 0 1 1 0 8 0 ucredpl 96 8234 0 8226 1 0 1 1 0 8 0 zombiepl 144 9112 0 9112 5 4 1 1 0 8 1 processpl 896 9143 0 9112 5 1 4 5 0 8 0 procpl 632 28979 0 28937 17 12 5 5 0 8 1 srpgc 64 82 0 82 27 27 0 1 0 8 0 sosppl 128 137 0 137 27 27 0 1 0 8 0 sockpl 384 24650 0 24627 126 112 14 15 0 8 11 mcl64k 65536 705 0 0 71 37 34 64 0 8 0 mcl16k 16384 24 0 0 3 1 2 3 0 8 0 mcl12k 12288 42 0 0 2 0 2 2 0 8 0 mcl9k 9216 19 0 0 2 0 2 2 0 8 0 mcl8k 8192 25 0 0 3 0 3 3 0 8 0 mcl4k 4096 38 0 0 3 1 2 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 173 0 0 16 2 14 16 0 8 0 mtagpl 80 133 0 0 1 0 1 1 0 8 0 mbufpl 256 887 0 0 37 0 37 37 0 8 0 bufpl 256 36947 0 29820 446 0 446 446 0 8 0 anonpl 16 1014405 0 997794 275 194 81 93 0 124 6 amapchunkpl 152 62102 0 61995 93 86 7 19 0 158 0 amappl16 192 50856 0 49866 326 271 55 69 0 8 5 amappl15 184 1616 0 1616 7 7 0 1 0 8 0 amappl14 176 743 0 740 2 1 1 1 0 8 0 amappl13 168 782 0 781 5 4 1 1 0 8 0 amappl12 160 1884 0 1883 9 8 1 1 0 8 0 amappl11 152 2751 0 2743 1 0 1 1 0 8 0 amappl10 144 33 0 29 1 0 1 1 0 8 0 amappl9 136 1897 0 1889 1 0 1 1 0 8 0 amappl8 128 1449 0 1396 2 0 2 2 0 8 0 amappl7 120 252 0 243 1 0 1 1 0 8 0 amappl6 112 2649 0 2635 1 0 1 1 0 8 0 amappl5 104 2389 0 2377 1 0 1 1 0 8 0 amappl4 96 8303 0 8271 1 0 1 1 0 8 0 amappl3 88 2363 0 2357 1 0 1 1 0 8 0 amappl2 80 71010 0 70941 3 1 2 3 0 8 0 amappl1 72 210755 0 210347 25 15 10 20 0 8 0 amappl 80 29969 0 29934 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 135 0 6 3 0 3 3 0 8 0 uaddrrnd 24 9143 0 9106 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 9143 0 9106 1 0 1 1 0 8 0 vmmpekpl 168 76866 0 76836 2 0 2 2 0 8 0 vmmpepl 168 1141518 0 1139440 441 312 129 133 0 357 26 vmsppl 368 9119 0 9106 2 0 2 2 0 8 0 pdppl 4096 18293 0 18258 7 1 6 6 0 8 0 pvpl 32 2584360 0 2564546 528 332 196 222 0 265 28 pmappl 232 9142 0 9129 5 4 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 886 0 206 20 0 20 20 0 8 0