Re: [PATCH net] ipv6: Fix an uninit variable access bug in __ip6_make_skb()

From: patchwork-bot+netdevbpf
Date: Mon Apr 03 2023 - 05:20:52 EST


Hello:

This patch was applied to netdev/net.git (main)
by David S. Miller <davem@xxxxxxxxxxxxx>:

On Mon, 3 Apr 2023 15:34:17 +0800 you wrote:
> Syzbot reported a bug as following:
>
> =====================================================
> BUG: KMSAN: uninit-value in arch_atomic64_inc arch/x86/include/asm/atomic64_64.h:88 [inline]
> BUG: KMSAN: uninit-value in arch_atomic_long_inc include/linux/atomic/atomic-long.h:161 [inline]
> BUG: KMSAN: uninit-value in atomic_long_inc include/linux/atomic/atomic-instrumented.h:1429 [inline]
> BUG: KMSAN: uninit-value in __ip6_make_skb+0x2f37/0x30f0 net/ipv6/ip6_output.c:1956
> arch_atomic64_inc arch/x86/include/asm/atomic64_64.h:88 [inline]
> arch_atomic_long_inc include/linux/atomic/atomic-long.h:161 [inline]
> atomic_long_inc include/linux/atomic/atomic-instrumented.h:1429 [inline]
> __ip6_make_skb+0x2f37/0x30f0 net/ipv6/ip6_output.c:1956
> ip6_finish_skb include/net/ipv6.h:1122 [inline]
> ip6_push_pending_frames+0x10e/0x550 net/ipv6/ip6_output.c:1987
> rawv6_push_pending_frames+0xb12/0xb90 net/ipv6/raw.c:579
> rawv6_sendmsg+0x297e/0x2e60 net/ipv6/raw.c:922
> inet_sendmsg+0x101/0x180 net/ipv4/af_inet.c:827
> sock_sendmsg_nosec net/socket.c:714 [inline]
> sock_sendmsg net/socket.c:734 [inline]
> ____sys_sendmsg+0xa8e/0xe70 net/socket.c:2476
> ___sys_sendmsg+0x2a1/0x3f0 net/socket.c:2530
> __sys_sendmsg net/socket.c:2559 [inline]
> __do_sys_sendmsg net/socket.c:2568 [inline]
> __se_sys_sendmsg net/socket.c:2566 [inline]
> __x64_sys_sendmsg+0x367/0x540 net/socket.c:2566
> do_syscall_x64 arch/x86/entry/common.c:50 [inline]
> do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
> entry_SYSCALL_64_after_hwframe+0x63/0xcd
>
> [...]

Here is the summary with links:
- [net] ipv6: Fix an uninit variable access bug in __ip6_make_skb()
https://git.kernel.org/netdev/net/c/ea30388baebc

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html