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 * 4146 16018 0 0 0x4000000 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(ffffffff821e6642,ffffffff821c7c9c,3b3,ffffffff821a1824) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000ac9800,1,fffffd803460e778) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800015965fb8,1,ffff800015966088,0) at rtrequest+0x9be sys/net/route.c:973 rt_ifa_add(ffff8000006a0b00,240404,ffff8000006a0b58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff8000006a0b00) at rt_ifa_addlocal+0x149 sys/net/route.c:1242 in_ifinit(ffff800000ac9800,ffff8000006a0b00,ffff8000159663b0,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff8000159663a0,ffff800000ac9800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff8000159663a0,ffff800000ac9800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd80363cf608,8020690c,ffff8000159663a0,ffff8000ffff2508) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff2508,ffff8000159664b8,ffff800015966500) at sys_ioctl+0x5b9 syscall(ffff800015966580) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,563cf655010) at Xsyscall+0x128 end of kernel end trace frame: 0x5666ad119e0, 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(ffffffff821e6642,ffffffff821c7c9c,3b3,ffffffff821a1824) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000ac9800,1,fffffd803460e778) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800015965fb8,1,ffff800015966088,0) at rtrequest+0x9be sys/net/route.c:973 rt_ifa_add(ffff8000006a0b00,240404,ffff8000006a0b58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff8000006a0b00) at rt_ifa_addlocal+0x149 sys/net/route.c:1242 in_ifinit(ffff800000ac9800,ffff8000006a0b00,ffff8000159663b0,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff8000159663a0,ffff800000ac9800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff8000159663a0,ffff800000ac9800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd80363cf608,8020690c,ffff8000159663a0,ffff8000ffff2508) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff2508,ffff8000159664b8,ffff800015966500) at sys_ioctl+0x5b9 syscall(ffff800015966580) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,563cf655010) at Xsyscall+0x128 end of kernel end trace frame: 0x5666ad119e0, count: -14 ddb> show registers rdi 0xffffffff81939467 db_enter+0x17 rsi 0x6fbc __ALIGN_SIZE+0x5fbc rbp 0xffff800015965cf0 rbx 0xffff800015965da0 rdx 0x6fbd __ALIGN_SIZE+0x5fbd rcx 0xffff800017b57000 rax 0xffff800017b57000 r8 0xffff800015965cb0 r9 0x1 r10 0xffff800000a51d40 r11 0xb720a7ae4f473193 r12 0x3000000008 r13 0xffff800015965d00 r14 0x100 r15 0x1 rip 0xffffffff81939468 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015965ce0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=4146 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2018,0xffff8000ffff3b50 process=0xffff8000148a2a38 user=0xffff800015961000, vmspace=0xfffffd803f013ee0 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 16018 475954 93893 0 2 0 syz-executor.0 *16018 4146 93893 0 7 0x4000000 syz-executor.0 16018 465728 93893 0 3 0x4000080 fsleep syz-executor.0 83722 429194 68951 0 2 0x482 syz-executor.1 93893 104158 68951 0 2 0x482 syz-executor.0 46764 513734 0 0 3 0x14200 acct acct 48057 42167 0 0 3 0x14200 bored sosplice 68951 341365 36109 0 3 0x82 thrsleep syz-fuzzer 68951 130444 36109 0 3 0x4000082 thrsleep syz-fuzzer 68951 62854 36109 0 3 0x4000082 thrsleep syz-fuzzer 68951 139222 36109 0 3 0x4000082 thrsleep syz-fuzzer 68951 449958 36109 0 3 0x4000082 kqread syz-fuzzer 68951 264174 36109 0 3 0x4000082 thrsleep syz-fuzzer 68951 493507 36109 0 3 0x4000082 thrsleep syz-fuzzer 68951 522100 36109 0 3 0x4000082 thrsleep syz-fuzzer 36109 273467 21550 0 3 0x10008a pause ksh 21550 503016 18898 0 3 0x92 select sshd 21444 34730 1 0 3 0x100083 ttyin getty 18898 190536 1 0 3 0x80 select sshd 63887 205918 32370 73 3 0x100090 kqread syslogd 32370 31555 1 0 3 0x100082 netio syslogd 51317 491872 1 77 3 0x100090 poll dhclient 48237 372074 1 0 3 0x80 poll dhclient 66198 96011 0 0 2 0x14200 zerothread 26158 121 0 0 3 0x14200 aiodoned aiodoned 47695 98568 0 0 3 0x14200 syncer update 45476 387291 0 0 3 0x14200 cleaner cleaner 37131 112051 0 0 3 0x14200 reaper reaper 68950 497316 0 0 3 0x14200 pgdaemon pagedaemon 24964 213975 0 0 3 0x14200 bored crynlk 28729 428263 0 0 3 0x14200 bored crypto 19385 287106 0 0 3 0x40014200 acpi0 acpi0 54609 6855 0 0 3 0x14200 bored softnet 88319 439578 0 0 3 0x14200 bored systqmp 88481 434443 0 0 3 0x14200 bored systq 45944 16590 0 0 3 0x40014200 bored softclock 34328 55680 0 0 3 0x40014200 idle0 48631 509077 0 0 3 0x14200 bored smr 1 177187 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 9587 7257K 7643K 78643K 15480 0 0 pcb 13 8K 8K 78643K 359 0 0 rtable 122 9K 9K 78643K 1616 0 0 ifaddr 80 17K 17K 78643K 323 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 160 0 0 iov 0 0K 24K 78643K 391 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 77K 78643K 3095 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 27 0 0 VM map 9 2K 2K 78643K 19 0 0 sem 12 0K 0K 78643K 316 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 1674 0 0 sigio 0 0K 0K 78643K 48 0 0 proc 49 38K 63K 78643K 906 0 0 subproc 32 2K 2K 78643K 204 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 92 0 0 in_multi 25 1K 2K 78643K 245 0 0 ether_multi 1 0K 0K 78643K 21 0 0 mrt 1 0K 0K 78643K 5 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 138 609K 609K 78643K 138 0 0 exec 0 0K 1K 78643K 478 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 129 87K 88K 78643K 5426 0 0 UVM aobj 104 7K 7K 78643K 117 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 325 0 0 NDP 19 0K 0K 78643K 106 0 0 temp 219 3544K 4184K 78643K 45150 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 37 0 32 1 0 1 1 0 8 0 rtpcb 80 1130 0 1128 1 0 1 1 0 8 0 rtentry 112 242 0 197 2 0 2 2 0 8 0 unpcb 120 808 0 797 1 0 1 1 0 8 0 syncache 264 11 0 11 6 6 0 1 0 8 0 tcpqe 32 103 0 103 3 3 0 1 0 8 0 tcpcb 544 496 0 492 2 1 1 2 0 8 0 ipq 40 9 0 9 5 5 0 1 0 8 0 ipqe 40 300 0 300 5 5 0 1 0 8 0 inpcb 280 1623 0 1614 11 10 1 2 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 36 0 31 3 2 1 1 0 8 0 pkpcb 40 8 0 8 3 3 0 1 0 8 0 ppxss 1128 32 0 32 12 11 1 1 0 8 1 art_heap8 4096 18 0 16 7 5 2 4 0 8 0 art_heap4 256 1238 0 968 30 12 18 19 0 8 0 art_table 32 1256 0 984 3 0 3 3 0 8 0 art_node 16 240 0 198 1 0 1 1 0 8 0 sysvmsgpl 40 55 0 38 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 314 0 304 1 0 1 1 0 8 0 shmpl 112 115 0 13 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4234 0 2841 46 0 46 46 0 8 0 ffsino 240 4234 0 2841 83 0 83 83 0 8 0 nchpl 144 7291 0 6835 60 40 20 60 0 8 0 uvmvnodes 72 5553 0 0 101 0 101 101 0 8 0 vnodes 208 5553 0 0 293 0 293 293 0 8 0 namei 1024 26472 0 26472 2 1 1 1 0 8 1 vcpupl 1984 7 0 0 1 0 1 1 0 8 0 vmpool 520 17 0 10 2 1 1 1 0 8 0 scsiplug 64 2 0 2 2 1 1 1 0 8 1 scxspl 192 25360 0 25360 16 14 2 7 0 8 2 plimitpl 152 150 0 143 1 0 1 1 0 8 0 sigapl 432 1815 0 1802 2 0 2 2 0 8 0 futexpl 56 44855 0 44854 2 1 1 1 0 8 0 knotepl 112 409 0 390 1 0 1 1 0 8 0 kqueuepl 104 399 0 397 1 0 1 1 0 8 0 pipepl 112 1024 0 1005 5 4 1 2 0 8 0 fdescpl 424 1816 0 1802 2 0 2 2 0 8 0 filepl 120 17322 0 17218 11 7 4 5 0 8 0 lockfpl 104 845 0 844 1 0 1 1 0 8 0 lockfspl 48 297 0 296 1 0 1 1 0 8 0 sessionpl 112 27 0 17 1 0 1 1 0 8 0 pgrppl 48 42 0 32 1 0 1 1 0 8 0 ucredpl 96 5118 0 5111 1 0 1 1 0 8 0 zombiepl 144 1802 0 1801 1 0 1 1 0 8 0 processpl 864 1832 0 1801 4 0 4 4 0 8 0 procpl 632 4153 0 4113 6 2 4 5 0 8 0 sosppl 128 15 0 15 6 6 0 1 0 8 0 sockpl 384 3579 0 3557 16 12 4 5 0 8 1 mcl64k 65536 384 0 384 40 39 1 33 0 8 1 mcl16k 16384 26 0 26 12 11 1 1 0 8 1 mcl12k 12288 41 0 41 9 8 1 1 0 8 1 mcl9k 9216 27 0 27 11 10 1 1 0 8 1 mcl8k 8192 89 0 89 6 5 1 1 0 8 1 mcl4k 4096 254 0 254 4 3 1 1 0 8 1 mcl2k2 2112 19 0 19 12 11 1 1 0 8 1 mcl2k 2048 66857 0 66807 26 18 8 16 0 8 1 mtagpl 80 289 0 243 5 3 2 2 0 8 0 mbufpl 256 123756 0 123547 72 55 17 22 0 8 0 bufpl 256 12662 0 6547 383 0 383 383 0 8 0 anonpl 16 249560 0 231291 149 64 85 90 0 62 7 amapchunkpl 152 10515 0 10403 32 26 6 15 0 158 1 amappl16 192 11378 0 10327 149 92 57 66 0 8 4 amappl15 184 205 0 205 2 2 0 1 0 8 0 amappl14 176 674 0 667 1 0 1 1 0 8 0 amappl13 168 1 0 1 1 1 0 1 0 8 0 amappl12 160 267 0 263 2 1 1 1 0 8 0 amappl11 152 456 0 442 1 0 1 1 0 8 0 amappl10 144 48 0 45 1 0 1 1 0 8 0 amappl9 136 788 0 780 1 0 1 1 0 8 0 amappl8 128 376 0 334 2 0 2 2 0 8 0 amappl7 120 114 0 107 1 0 1 1 0 8 0 amappl6 112 446 0 432 1 0 1 1 0 8 0 amappl5 104 474 0 463 1 0 1 1 0 8 0 amappl4 96 1658 0 1631 1 0 1 1 0 8 0 amappl3 88 1095 0 1088 1 0 1 1 0 8 0 amappl2 80 13294 0 13226 3 1 2 3 0 8 0 amappl1 72 43787 0 43368 27 18 9 20 0 8 0 amappl 80 4597 0 4553 5 3 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 116 0 13 2 0 2 2 0 8 0 uaddrrnd 24 1833 0 1802 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1833 0 1802 1 0 1 1 0 8 0 vmmpekpl 168 16160 0 16130 2 0 2 2 0 8 0 vmmpepl 168 229706 0 227550 287 147 140 163 0 357 41 vmsppl 272 1815 0 1802 6 4 2 2 0 8 1 pdppl 4096 3672 0 3631 8 2 6 6 0 8 0 pvpl 32 674049 0 652641 374 169 205 307 0 265 21 pmappl 200 1832 0 1812 2 0 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 686 0 158 16 0 16 16 0 8 0