[syzbot] BUG: Address IPV6ADDR:IP on device lo is missing its host route.

0 views
Skip to first unread message

syzbot

unread,
1:45 PM (25 minutes ago) 1:45 PM
to linux-...@vger.kernel.org, syzkall...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: aebb72744764 Linux 7.4-rc3
git tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
console output: https://syzkaller.appspot.com/x/log.txt?x=126084b5580000
kernel config: https://syzkaller.appspot.com/x/.config?x=d44b06612b68f56
dashboard link: https://syzkaller.appspot.com/bug?extid=af16ddc8fd22a1d135f8
compiler: Debian clang version 22.1.8 (1~deb13u4), Debian LLD 22.1.8
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=166084b5580000

AI-generated root cause summary:
IPv4-mapped IPv6 addresses (e.g. ::ffff:127.0.0.1) can be configured on the
loopback interface (lo) because ipv6_add_addr() does not reject IPV6_ADDR_MAPPED
addresses. Because addr_is_local() only considers link-local (fe80::/10) and
loopback (::1) scopes, an IPv4-mapped address is considered non-local and can be
retained during interface down or MTU reduction events (such as MTU <
IPV6_MIN_MTU on lo, where addrconf_ifdown() is called with unregister=false).
During addrconf_ifdown(), retained permanent addresses have their host routes
removed and ifa->rt set to NULL while setting state to
INET6_IFADDR_STATE_PREDAD. When subsequent device events or modifications
trigger DAD processing on lo, addrconf_dad_begin() immediately concludes DAD
because lo has IFF_LOOPBACK, invoking addrconf_dad_completed() and
__ipv6_ifa_notify(RTM_NEWADDR, ifp) while ifp->rt is still NULL and lo is UP,
triggering the pr_warn bug message.

full analysis: https://syzkaller.appspot.com/x/ai_root_cause?x=af16ddc8fd22a1d135f8

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+af16dd...@syzkaller.appspotmail.com

IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.
IPv6: BUG: Address ::ffff:127.0.0.1 on device lo is missing its host route.


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages