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 *195545 27558 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(ffff800000aa3800,1,fffffd803ea7a238) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800016967918,1,ffff8000169679e8,0) at rtrequest+0x9be sys/net/route.c:973 rt_ifa_add(ffff800000a97b00,240404,ffff800000a97b58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000a97b00) at rt_ifa_addlocal+0x149 sys/net/route.c:1242 in_ifinit(ffff800000aa3800,ffff800000a97b00,ffff800016967d10,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800016967d00,ffff800000aa3800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800016967d00,ffff800000aa3800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd802adcf010,8020690c,ffff800016967d00,ffff8000149333d8) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000149333d8,ffff800016967e18,ffff800016967e60) at sys_ioctl+0x5b9 syscall(ffff800016967ee0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,afc5ba20010) at Xsyscall+0x128 end of kernel end trace frame: 0xafea09dd880, 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(ffff800000aa3800,1,fffffd803ea7a238) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800016967918,1,ffff8000169679e8,0) at rtrequest+0x9be sys/net/route.c:973 rt_ifa_add(ffff800000a97b00,240404,ffff800000a97b58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000a97b00) at rt_ifa_addlocal+0x149 sys/net/route.c:1242 in_ifinit(ffff800000aa3800,ffff800000a97b00,ffff800016967d10,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800016967d00,ffff800000aa3800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800016967d00,ffff800000aa3800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd802adcf010,8020690c,ffff800016967d00,ffff8000149333d8) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000149333d8,ffff800016967e18,ffff800016967e60) at sys_ioctl+0x5b9 syscall(ffff800016967ee0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,afc5ba20010) at Xsyscall+0x128 end of kernel end trace frame: 0xafea09dd880, count: -14 ddb> show registers rdi 0xffffffff8191b2f7 db_enter+0x17 rsi 0x4742 __ALIGN_SIZE+0x3742 rbp 0xffff800016967650 rbx 0xffff800016967700 rdx 0x4743 __ALIGN_SIZE+0x3743 rcx 0xffff800017b45000 rax 0xffff800017b45000 r8 0xffff800016967610 r9 0x1 r10 0xffff800000a8ad80 r11 0x4cd9169c87f0c964 r12 0x3000000008 r13 0xffff800016967660 r14 0x100 r15 0x1 rip 0xffffffff8191b2f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800016967640 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=195545 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800014932290,0xffffffff825602a0 process=0xffff8000ffff7450 user=0xffff800016962000, vmspace=0xfffffd803f013ee0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 27558 53930 1560 0 2 0 syz-executor.1 *27558 195545 1560 0 7 0x4000000 syz-executor.1 22787 375136 14773 0 2 0x2 syz-executor.0 1560 144165 14773 0 2 0x482 syz-executor.1 96737 218121 0 0 3 0x14200 bored sosplice 14773 300381 16085 0 3 0x82 thrsleep syz-fuzzer 14773 478091 16085 0 2 0x4000482 syz-fuzzer 14773 158355 16085 0 3 0x4000082 thrsleep syz-fuzzer 14773 161792 16085 0 3 0x4000082 thrsleep syz-fuzzer 14773 77698 16085 0 3 0x4000082 thrsleep syz-fuzzer 14773 314606 16085 0 3 0x4000082 thrsleep syz-fuzzer 14773 468363 16085 0 3 0x4000082 thrsleep syz-fuzzer 14773 70762 16085 0 3 0x4000082 kqread syz-fuzzer 16085 213694 28471 0 3 0x10008a pause ksh 28471 454712 54762 0 3 0x92 select sshd 52730 345405 1 0 3 0x100083 ttyin getty 54762 437857 1 0 3 0x80 select sshd 78682 55533 79822 73 3 0x100090 kqread syslogd 79822 420651 1 0 3 0x100082 netio syslogd 7321 282715 1 77 3 0x100090 poll dhclient 63570 456333 1 0 3 0x80 poll dhclient 86863 154825 0 0 2 0x14200 zerothread 13502 385794 0 0 3 0x14200 aiodoned aiodoned 91952 503897 0 0 3 0x14200 syncer update 67195 52293 0 0 3 0x14200 cleaner cleaner 4274 219486 0 0 3 0x14200 reaper reaper 26199 232449 0 0 3 0x14200 pgdaemon pagedaemon 51772 309923 0 0 3 0x14200 bored crynlk 63382 227039 0 0 3 0x14200 bored crypto 60959 32708 0 0 3 0x40014200 acpi0 acpi0 45856 58354 0 0 3 0x14200 bored softnet 91337 169836 0 0 2 0x14200 systqmp 20051 105215 0 0 3 0x14200 bored systq 10141 502805 0 0 3 0x40014200 bored softclock 80439 389737 0 0 3 0x40014200 idle0 90649 493348 0 0 3 0x14200 bored smr 1 115946 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 9492 6456K 6850K 78643K 11577 0 0 pcb 13 8K 8K 78643K 135 0 0 rtable 103 4K 4K 78643K 485 0 0 ifaddr 51 12K 12K 78643K 116 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 45 0 0 iov 0 0K 24K 78643K 119 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 77K 78643K 1663 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 6 0 0 VM map 2 0K 0K 78643K 4 0 0 sem 12 1K 1K 78643K 16 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 544 0 0 sigio 0 0K 0K 78643K 3 0 0 proc 49 38K 63K 78643K 507 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 17 0 0 in_multi 28 1K 2K 78643K 85 0 0 ether_multi 1 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 48 212K 212K 78643K 48 0 0 exec 0 0K 1K 78643K 276 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 101 21K 26K 78643K 2171 0 0 UVM aobj 12 2K 2K 78643K 16 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 161 0 0 NDP 10 0K 0K 78643K 34 0 0 temp 156 3539K 3611K 78643K 8305 0 0 kqueue 0 0K 0K 78643K 4 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 17 0 13 1 0 1 1 0 8 0 rtpcb 80 67 0 65 1 0 1 1 0 8 0 rtentry 112 96 0 56 2 0 2 2 0 8 0 unpcb 120 218 0 209 1 0 1 1 0 8 0 syncache 264 7 0 7 3 2 1 1 0 8 1 tcpqe 32 8072 0 8072 3 2 1 1 0 8 1 tcpcb 544 514 0 510 3 2 1 2 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 3 0 3 1 1 0 1 0 8 0 inpcb 280 1112 0 1103 4 2 2 2 0 8 1 nd6 48 13 0 8 1 0 1 1 0 8 0 ppxss 1128 9 0 9 3 2 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 421 0 193 17 2 15 15 0 8 0 art_table 32 422 0 193 2 0 2 2 0 8 0 art_node 16 93 0 56 1 0 1 1 0 8 0 semupl 112 3 0 3 2 2 0 1 0 8 0 semapl 112 12 0 2 1 0 1 1 0 8 0 shmpl 112 14 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2211 0 822 46 0 46 46 0 8 0 ffsino 240 2211 0 822 83 0 83 83 0 8 0 nchpl 144 3209 0 1605 60 0 60 60 0 8 0 uvmvnodes 72 2568 0 0 47 0 47 47 0 8 0 vnodes 208 2568 0 0 136 0 136 136 0 8 0 namei 1024 9501 0 9501 2 1 1 1 0 8 1 vmpool 520 2 0 2 1 1 0 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 10282 0 10282 12 11 1 7 0 8 1 plimitpl 152 73 0 66 1 0 1 1 0 8 0 sigapl 432 706 0 693 2 0 2 2 0 8 0 futexpl 56 13208 0 13208 1 0 1 1 0 8 1 knotepl 112 421 0 402 1 0 1 1 0 8 0 kqueuepl 104 410 0 408 1 0 1 1 0 8 0 pipepl 112 404 0 385 2 1 1 2 0 8 0 fdescpl 424 707 0 693 2 0 2 2 0 8 0 filepl 120 5626 0 5529 5 1 4 5 0 8 1 lockfpl 104 257 0 256 1 0 1 1 0 8 0 lockfspl 48 85 0 84 1 0 1 1 0 8 0 sessionpl 112 20 0 10 1 0 1 1 0 8 0 pgrppl 48 22 0 12 1 0 1 1 0 8 0 ucredpl 96 732 0 725 1 0 1 1 0 8 0 zombiepl 144 696 0 696 2 1 1 1 0 8 1 processpl 864 725 0 696 4 0 4 4 0 8 0 procpl 632 1342 0 1305 4 0 4 4 0 8 0 sosppl 128 11 0 11 2 1 1 1 0 8 1 sockpl 384 1399 0 1379 4 0 4 4 0 8 1 mcl64k 65536 306 0 306 33 31 2 33 0 8 2 mcl16k 16384 5 0 5 3 2 1 1 0 8 1 mcl12k 12288 12 0 12 2 1 1 1 0 8 1 mcl9k 9216 8 0 8 2 1 1 1 0 8 1 mcl8k 8192 15 0 15 2 1 1 1 0 8 1 mcl4k 4096 62 0 62 2 1 1 1 0 8 1 mcl2k2 2112 6 0 6 2 1 1 1 0 8 1 mcl2k 2048 52558 0 52514 20 13 7 14 0 8 1 mtagpl 80 27 0 25 3 2 1 1 0 8 0 mbufpl 256 89945 0 89887 29 22 7 24 0 8 0 bufpl 256 8381 0 3386 313 0 313 313 0 8 0 anonpl 16 90750 0 75264 84 16 68 78 0 62 1 amapchunkpl 152 3313 0 3206 15 6 9 9 0 158 3 amappl16 192 3746 0 2875 56 10 46 55 0 8 2 amappl15 184 37 0 36 1 0 1 1 0 8 0 amappl14 176 114 0 111 1 0 1 1 0 8 0 amappl13 168 8 0 8 1 0 1 1 0 8 1 amappl12 160 15 0 11 1 0 1 1 0 8 0 amappl11 152 56 0 45 1 0 1 1 0 8 0 amappl10 144 88 0 88 2 2 0 1 0 8 0 amappl9 136 810 0 804 1 0 1 1 0 8 0 amappl8 128 379 0 349 2 0 2 2 0 8 1 amappl7 120 137 0 131 1 0 1 1 0 8 0 amappl6 112 75 0 65 1 0 1 1 0 8 0 amappl5 104 169 0 159 1 0 1 1 0 8 0 amappl4 96 921 0 896 1 0 1 1 0 8 0 amappl3 88 128 0 122 1 0 1 1 0 8 0 amappl2 80 4711 0 4644 3 1 2 3 0 8 0 amappl1 72 22731 0 22322 28 19 9 20 0 8 0 amappl 80 1606 0 1570 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 15 0 4 1 0 1 1 0 8 0 uaddrrnd 24 709 0 693 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 709 0 693 1 0 1 1 0 8 0 vmmpekpl 168 8575 0 8548 2 0 2 2 0 8 0 vmmpepl 168 91592 0 89676 152 35 117 117 0 357 29 vmsppl 272 706 0 693 2 1 1 2 0 8 0 pdppl 4096 1424 0 1390 6 1 5 6 0 8 0 pvpl 32 259503 0 241013 202 34 168 187 0 265 12 pmappl 200 708 0 695 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 521 0 79 14 0 14 14 0 8 0