panic: kernel diagnostic assertion "ifa == rt->rt_ifa" failed: file "/syzkaller/managers/main/kernel/sys/netinet6/nd6.c", line 947 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *389918 53150 0 0 0x4000000 0 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(ffffffff821e49ce,ffffffff821c70b3,3b3,ffffffff821a05f0) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000ab2800,1,fffffd802e62ab68) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800015b31c88,1,ffff800015b31d58,0) at rtrequest+0x9be sys/net/route.c:973 rt_ifa_add(ffff8000006a0900,240404,ffff8000006a0958,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff8000006a0900) at rt_ifa_addlocal+0x149 sys/net/route.c:1242 in_ifinit(ffff800000ab2800,ffff8000006a0900,ffff800015b32080,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800015b32070,ffff800000ab2800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800015b32070,ffff800000ab2800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd802a8c0dc8,8020690c,ffff800015b32070,ffff8000ffff3160) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff3160,ffff800015b32188,ffff800015b321d0) at sys_ioctl+0x5b9 syscall(ffff800015b32250) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,c752692b010) at Xsyscall+0x128 end of kernel end trace frame: 0xc77ffe4a310, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic kernel diagnostic assertion "ifa == rt->rt_ifa" failed: file "/syzkaller/managers/main/kernel/sys/netinet6/nd6.c", line 947 ddb> 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(ffffffff821e49ce,ffffffff821c70b3,3b3,ffffffff821a05f0) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000ab2800,1,fffffd802e62ab68) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800015b31c88,1,ffff800015b31d58,0) at rtrequest+0x9be sys/net/route.c:973 rt_ifa_add(ffff8000006a0900,240404,ffff8000006a0958,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff8000006a0900) at rt_ifa_addlocal+0x149 sys/net/route.c:1242 in_ifinit(ffff800000ab2800,ffff8000006a0900,ffff800015b32080,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800015b32070,ffff800000ab2800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800015b32070,ffff800000ab2800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd802a8c0dc8,8020690c,ffff800015b32070,ffff8000ffff3160) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff3160,ffff800015b32188,ffff800015b321d0) at sys_ioctl+0x5b9 syscall(ffff800015b32250) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,c752692b010) at Xsyscall+0x128 end of kernel end trace frame: 0xc77ffe4a310, count: -14 ddb> show registers rdi 0xffffffff8191b2f7 db_enter+0x17 rsi 0x4ab1 __ALIGN_SIZE+0x3ab1 rbp 0xffff800015b319c0 rbx 0xffff800015b31a70 rdx 0x4ab2 __ALIGN_SIZE+0x3ab2 rcx 0xffff80001590b000 rax 0xffff80001590b000 r8 0xffff800015b31980 r9 0x1 r10 0xffff800000a89380 r11 0x67119d9f9d99fc6c r12 0x3000000008 r13 0xffff800015b319d0 r14 0x100 r15 0x1 rip 0xffffffff8191b2f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015b319b0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=389918 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2c70,0xffffffff825602a0 process=0xffff8000ffff7450 user=0xffff800015b2d000, vmspace=0xfffffd803f013110 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 53150 302391 27644 0 2 0 syz-executor.1 *53150 389918 27644 0 7 0x4000000 syz-executor.1 45547 513559 66384 0 3 0x80 nanosleep syz-executor.0 45547 141741 66384 0 3 0x4000080 netio syz-executor.0 45547 67893 66384 0 3 0x4000080 fsleep syz-executor.0 27644 484551 46702 0 3 0x82 nanosleep syz-executor.1 66384 993 46702 0 3 0x82 nanosleep syz-executor.0 57907 116191 0 0 3 0x14200 bored sosplice 46702 364611 46664 0 3 0x82 thrsleep syz-fuzzer 46702 63608 46664 0 3 0x4000082 thrsleep syz-fuzzer 46702 133229 46664 0 3 0x4000082 kqread syz-fuzzer 46702 95450 46664 0 3 0x4000082 thrsleep syz-fuzzer 46702 197223 46664 0 3 0x4000082 thrsleep syz-fuzzer 46702 208095 46664 0 3 0x4000082 thrsleep syz-fuzzer 46702 277661 46664 0 3 0x4000082 thrsleep syz-fuzzer 46664 134975 53580 0 3 0x10008a pause ksh 53580 72131 47278 0 3 0x92 select sshd 23690 256965 1 0 3 0x100083 ttyin getty 47278 209651 1 0 3 0x80 select sshd 50161 165870 13776 73 3 0x100090 kqread syslogd 13776 442245 1 0 3 0x100082 netio syslogd 25879 266244 1 77 3 0x100090 poll dhclient 73086 33558 1 0 3 0x80 poll dhclient 91801 510199 0 0 2 0x14200 zerothread 11614 209659 0 0 3 0x14200 aiodoned aiodoned 26959 183066 0 0 3 0x14200 syncer update 27796 219300 0 0 3 0x14200 cleaner cleaner 66972 19084 0 0 3 0x14200 reaper reaper 77418 42987 0 0 3 0x14200 pgdaemon pagedaemon 36325 342290 0 0 3 0x14200 bored crynlk 56652 441157 0 0 3 0x14200 bored crypto 3585 499047 0 0 3 0x40014200 acpi0 acpi0 64025 224883 0 0 3 0x14200 bored softnet 18014 350147 0 0 2 0x14200 systqmp 91965 307325 0 0 3 0x14200 bored systq 80306 365946 0 0 3 0x40014200 bored softclock 10362 429017 0 0 3 0x40014200 idle0 85114 523332 0 0 3 0x14200 bored smr 1 399378 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9555 6376K 6761K 78643K 15712 0 0 pcb 13 8K 8K 78643K 801 0 0 rtable 101 6K 6K 78643K 1157 0 0 ifaddr 75 16K 17K 78643K 311 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 102 0 0 iov 0 0K 16K 78643K 353 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1218 76K 77K 78643K 3167 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 34 0 0 VM map 2 0K 0K 78643K 8 0 0 sem 12 0K 1K 78643K 894 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 2859 0 0 sigio 0 0K 0K 78643K 32 0 0 proc 49 38K 63K 78643K 1002 0 0 subproc 32 2K 2K 78643K 221 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 134 0 0 in_multi 22 1K 2K 78643K 210 0 0 ether_multi 1 0K 0K 78643K 11 0 0 mrt 0 0K 0K 78643K 4 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 78 344K 344K 78643K 78 0 0 exec 0 0K 1K 78643K 519 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 111 22K 40K 78643K 7957 0 0 UVM aobj 66 3K 3K 78643K 99 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 777 0 0 NDP 18 0K 0K 78643K 98 0 0 temp 212 3540K 3608K 78643K 32819 0 0 kqueue 0 0K 0K 78643K 10 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 43 0 39 1 0 1 1 0 8 0 rtpcb 80 185 0 183 1 0 1 1 0 8 0 rtentry 112 204 0 168 2 0 2 2 0 8 0 unpcb 120 3467 0 3456 5 4 1 2 0 8 0 syncache 264 9 0 9 4 4 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 6459 0 6459 3 3 0 1 0 8 0 tcpcb 544 1056 0 1050 2 1 1 2 0 8 0 ipq 40 14 0 14 7 6 1 1 0 8 1 ipqe 40 41 0 41 7 6 1 1 0 8 1 inpcb 280 6807 0 6795 21 19 2 3 0 8 1 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 2 0 2 1 1 0 1 0 8 0 nd6 48 29 0 25 1 0 1 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 25 0 25 16 15 1 1 0 8 1 art_heap8 4096 3 0 2 3 2 1 3 0 8 0 art_heap4 256 867 0 663 21 7 14 15 0 8 0 art_table 32 870 0 665 2 0 2 2 0 8 0 art_node 16 201 0 168 1 0 1 1 0 8 0 sysvmsgpl 40 25 0 16 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 890 0 880 1 0 1 1 0 8 0 shmpl 112 97 0 33 3 1 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5013 0 3628 46 0 46 46 0 8 0 ffsino 240 5013 0 3628 83 0 83 83 0 8 0 nchpl 144 9457 0 7860 60 0 60 60 0 8 0 uvmvnodes 72 6633 0 0 121 0 121 121 0 8 0 vnodes 208 6633 0 0 350 0 350 350 0 8 0 namei 1024 27132 0 27132 6 5 1 1 0 8 1 vmpool 520 6 0 6 3 3 0 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 31515 0 31515 20 19 1 7 0 8 1 plimitpl 152 193 0 186 1 0 1 1 0 8 0 sigapl 432 2997 0 2983 2 0 2 2 0 8 0 futexpl 56 72410 0 72409 3 2 1 1 0 8 0 knotepl 112 558 0 539 1 0 1 1 0 8 0 kqueuepl 104 419 0 417 1 0 1 1 0 8 0 pipepl 112 3806 0 3785 11 10 1 2 0 8 0 fdescpl 424 2998 0 2983 2 0 2 2 0 8 0 filepl 120 25449 0 25345 18 13 5 6 0 8 0 lockfpl 104 635 0 634 1 0 1 1 0 8 0 lockfspl 48 230 0 229 1 0 1 1 0 8 0 sessionpl 112 28 0 18 1 0 1 1 0 8 0 pgrppl 48 895 0 885 1 0 1 1 0 8 0 ucredpl 96 2406 0 2399 1 0 1 1 0 8 0 zombiepl 144 2985 0 2985 3 2 1 1 0 8 1 processpl 864 3015 0 2985 4 0 4 4 0 8 0 procpl 632 6739 0 6700 4 0 4 4 0 8 0 sosppl 128 38 0 38 10 9 1 1 0 8 1 sockpl 384 10472 0 10447 33 29 4 7 0 8 1 mcl64k 65536 392 0 392 49 48 1 33 0 8 1 mcl16k 16384 25 0 25 15 15 0 1 0 8 0 mcl12k 12288 27 0 27 15 14 1 1 0 8 1 mcl9k 9216 37 0 37 17 16 1 1 0 8 1 mcl8k 8192 89 0 89 20 19 1 1 0 8 1 mcl4k 4096 235 0 235 19 18 1 1 0 8 1 mcl2k2 2112 27 0 27 14 13 1 1 0 8 1 mcl2k 2048 55175 0 55130 32 25 7 13 0 8 1 mtagpl 80 77 0 63 6 5 1 1 0 8 0 mbufpl 256 115453 0 115350 105 95 10 35 0 8 0 bufpl 256 13828 0 6608 452 0 452 452 0 8 0 anonpl 16 300287 0 284539 161 81 80 80 0 62 13 amapchunkpl 152 15076 0 14967 65 59 6 15 0 158 0 amappl16 192 13908 0 13018 133 80 53 57 0 8 8 amappl15 184 1866 0 1866 3 3 0 1 0 8 0 amappl14 176 580 0 576 2 1 1 1 0 8 0 amappl13 168 46 0 46 3 3 0 1 0 8 0 amappl12 160 516 0 510 1 0 1 1 0 8 0 amappl11 152 647 0 636 1 0 1 1 0 8 0 amappl10 144 92 0 91 4 3 1 1 0 8 0 amappl9 136 762 0 756 1 0 1 1 0 8 0 amappl8 128 298 0 265 2 0 2 2 0 8 0 amappl7 120 161 0 155 1 0 1 1 0 8 0 amappl6 112 645 0 634 1 0 1 1 0 8 0 amappl5 104 755 0 740 1 0 1 1 0 8 0 amappl4 96 2983 0 2958 1 0 1 1 0 8 0 amappl3 88 426 0 419 1 0 1 1 0 8 0 amappl2 80 23146 0 23071 4 2 2 3 0 8 0 amappl1 72 64450 0 64020 28 19 9 20 0 8 0 amappl 80 7136 0 7098 1 0 1 1 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 98 0 33 2 0 2 2 0 8 0 uaddrrnd 24 3004 0 2983 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3004 0 2983 1 0 1 1 0 8 0 vmmpekpl 168 26500 0 26476 2 0 2 2 0 8 0 vmmpepl 168 358499 0 356443 432 337 95 123 0 357 5 vmsppl 272 2997 0 2983 7 6 1 2 0 8 0 pdppl 4096 6014 0 5978 6 1 5 6 0 8 0 pvpl 32 962968 0 943966 568 346 222 271 0 265 63 pmappl 200 3003 0 2989 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 825 0 244 18 0 18 18 0 8 0