From: Sabrina Dubroca <sd@queasysnail.net>
To: syzbot <syzbot+7ed9d47e15e88581dc5b@syzkaller.appspotmail.com>
Cc: davem@davemloft.net, edumazet@google.com,
herbert@gondor.apana.org.au, horms@kernel.org, kuba@kernel.org,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
pabeni@redhat.com, steffen.klassert@secunet.com,
syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [net?] KMSAN: uninit-value in xfrm_state_find (4)
Date: Thu, 22 May 2025 13:54:55 +0200 [thread overview]
Message-ID: <aC8Qj-_vg_WnXXsO@krikkit> (raw)
In-Reply-To: <682e2613.a00a0220.2a3337.0003.GAE@google.com>
2025-05-21, 12:14:27 -0700, syzbot wrote:
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: 172a9d94339c Merge tag '6.15-rc6-smb3-client-fixes' of git..
> git tree: upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=17b062d4580000
> kernel config: https://syzkaller.appspot.com/x/.config?x=56e29fa09e87dea7
> dashboard link: https://syzkaller.appspot.com/bug?extid=7ed9d47e15e88581dc5b
> compiler: Debian clang version 20.1.2 (++20250402124445+58df0ef89dd6-1~exp1~20250402004600.97), Debian LLD 20.1.2
>
> Unfortunately, I don't have any reproducer for this issue yet.
>
> Downloadable assets:
> disk image: https://storage.googleapis.com/syzbot-assets/da9615d2ee0b/disk-172a9d94.raw.xz
> vmlinux: https://storage.googleapis.com/syzbot-assets/997b6c928374/vmlinux-172a9d94.xz
> kernel image: https://storage.googleapis.com/syzbot-assets/30f01bdce820/bzImage-172a9d94.xz
>
> IMPORTANT: if you fix the issue, please add the following tag to the commit:
> Reported-by: syzbot+7ed9d47e15e88581dc5b@syzkaller.appspotmail.com
>
> =====================================================
> BUG: KMSAN: uninit-value in xfrm_state_find+0x2423/0xaae0 net/xfrm/xfrm_state.c:1438
I was looking into possible uninitialized uses of state_ptrs a while
ago, this report probably is the same thing. I'll post the patch later
today.
> xfrm_state_find+0x2423/0xaae0 net/xfrm/xfrm_state.c:1438
> xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2519 [inline]
> xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:2570 [inline]
> xfrm_resolve_and_create_bundle+0xabc/0x58b0 net/xfrm/xfrm_policy.c:2868
> xfrm_lookup_with_ifid+0x48c/0x3ac0 net/xfrm/xfrm_policy.c:3202
> xfrm_lookup net/xfrm/xfrm_policy.c:3333 [inline]
> xfrm_lookup_route+0x63/0x2b0 net/xfrm/xfrm_policy.c:3344
> ip_route_output_flow+0x20d/0x2b0 net/ipv4/route.c:2918
> ip_route_connect include/net/route.h:352 [inline]
> tcp_v4_connect+0xa43/0x1cd0 net/ipv4/tcp_ipv4.c:252
> tcp_v6_connect+0x134a/0x1d40 net/ipv6/tcp_ipv6.c:240
> __inet_stream_connect+0x2d3/0x1760 net/ipv4/af_inet.c:677
> inet_stream_connect+0x69/0xd0 net/ipv4/af_inet.c:748
> __sys_connect_file net/socket.c:2038 [inline]
> __sys_connect+0x523/0x680 net/socket.c:2057
> __do_sys_connect net/socket.c:2063 [inline]
> __se_sys_connect net/socket.c:2060 [inline]
> __x64_sys_connect+0x95/0x100 net/socket.c:2060
> x64_sys_call+0x23bb/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:43
> do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
> do_syscall_64+0xd9/0x1b0 arch/x86/entry/syscall_64.c:94
> entry_SYSCALL_64_after_hwframe+0x77/0x7f
>
> Local variable tmp.i.i created at:
> xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2491 [inline]
> xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:2570 [inline]
> xfrm_resolve_and_create_bundle+0x3a7/0x58b0 net/xfrm/xfrm_policy.c:2868
> xfrm_lookup_with_ifid+0x48c/0x3ac0 net/xfrm/xfrm_policy.c:3202
--
Sabrina
prev parent reply other threads:[~2025-05-22 11:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-21 19:14 [syzbot] [net?] KMSAN: uninit-value in xfrm_state_find (4) syzbot
2025-05-22 11:54 ` Sabrina Dubroca [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aC8Qj-_vg_WnXXsO@krikkit \
--to=sd@queasysnail.net \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=herbert@gondor.apana.org.au \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=steffen.klassert@secunet.com \
--cc=syzbot+7ed9d47e15e88581dc5b@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).