All of lore.kernel.org
 help / color / mirror / Atom feed
* [syzbot] KMSAN: uninit-value in nf_nat_setup_info (2)
@ 2022-01-07 16:51 syzbot
  2022-02-18 21:34 ` syzbot
  0 siblings, 1 reply; 2+ messages in thread
From: syzbot @ 2022-01-07 16:51 UTC (permalink / raw)
  To: coreteam, davem, fw, glider, kadlec, kuba, linux-kernel, netdev,
	netfilter-devel, pablo, syzkaller-bugs

Hello,

syzbot found the following issue on:

HEAD commit:    81c325bbf94e kmsan: hooks: do not check memory in kmsan_in..
git tree:       https://github.com/google/kmsan.git master
console output: https://syzkaller.appspot.com/x/log.txt?x=125922b3b00000
kernel config:  https://syzkaller.appspot.com/x/.config?x=46a956fc7a887c60
dashboard link: https://syzkaller.appspot.com/bug?extid=cbcd154fce7c6d953d1c
compiler:       clang version 14.0.0 (/usr/local/google/src/llvm-git-monorepo 2b554920f11c8b763cd9ed9003f4e19b919b8e1f), GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: i386

Unfortunately, I don't have any reproducer for this issue yet.

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

=====================================================
BUG: KMSAN: uninit-value in __nf_ct_tuple_src_equal include/net/netfilter/nf_conntrack_tuple.h:128 [inline]
BUG: KMSAN: uninit-value in nf_ct_tuple_equal include/net/netfilter/nf_conntrack_tuple.h:143 [inline]
BUG: KMSAN: uninit-value in nf_nat_setup_info+0x3adb/0x4750 net/netfilter/nf_nat_core.c:607
 __nf_ct_tuple_src_equal include/net/netfilter/nf_conntrack_tuple.h:128 [inline]
 nf_ct_tuple_equal include/net/netfilter/nf_conntrack_tuple.h:143 [inline]
 nf_nat_setup_info+0x3adb/0x4750 net/netfilter/nf_nat_core.c:607
 __nf_nat_alloc_null_binding net/netfilter/nf_nat_core.c:664 [inline]
 nf_nat_alloc_null_binding net/netfilter/nf_nat_core.c:670 [inline]
 nf_nat_inet_fn+0x12bc/0x1720 net/netfilter/nf_nat_core.c:759
 nf_nat_ipv6_fn+0x4dd/0x580 net/netfilter/nf_nat_proto.c:937
 nf_nat_ipv6_local_fn+0xa7/0x830 net/netfilter/nf_nat_proto.c:1001
 nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline]
 nf_hook_slow+0x184/0x480 net/netfilter/core.c:619
 nf_hook include/linux/netfilter.h:262 [inline]
 NF_HOOK include/linux/netfilter.h:305 [inline]
 ip6_xmit+0x27b6/0x2880 net/ipv6/ip6_output.c:324
 sctp_v6_xmit+0xd84/0x19b0 net/sctp/ipv6.c:250
 sctp_packet_transmit+0x438f/0x45a0 net/sctp/output.c:652
 sctp_packet_singleton+0x3d8/0x580 net/sctp/outqueue.c:777
 sctp_outq_flush_ctrl net/sctp/outqueue.c:908 [inline]
 sctp_outq_flush+0x667/0x5eb0 net/sctp/outqueue.c:1202
 sctp_outq_uncork+0x105/0x120 net/sctp/outqueue.c:758
 sctp_side_effects net/sctp/sm_sideeffect.c:1195 [inline]
 sctp_do_sm+0x946f/0x9b50 net/sctp/sm_sideeffect.c:1166
 sctp_primitive_ASSOCIATE+0x172/0x1a0 net/sctp/primitive.c:73
 sctp_sendmsg_to_asoc+0x143f/0x1f90 net/sctp/socket.c:1837
 sctp_sendmsg+0x3eaa/0x5460 net/sctp/socket.c:2027
 inet_sendmsg+0x15b/0x1d0 net/ipv4/af_inet.c:819
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 ____sys_sendmsg+0xe11/0x12c0 net/socket.c:2409
 ___sys_sendmsg net/socket.c:2463 [inline]
 __sys_sendmsg+0x704/0x840 net/socket.c:2492
 __compat_sys_sendmsg net/compat.c:347 [inline]
 __do_compat_sys_sendmsg net/compat.c:354 [inline]
 __se_compat_sys_sendmsg net/compat.c:351 [inline]
 __ia32_compat_sys_sendmsg+0xed/0x130 net/compat.c:351
 do_syscall_32_irqs_on arch/x86/entry/common.c:114 [inline]
 __do_fast_syscall_32+0x96/0xf0 arch/x86/entry/common.c:180
 do_fast_syscall_32+0x34/0x70 arch/x86/entry/common.c:205
 do_SYSENTER_32+0x1b/0x20 arch/x86/entry/common.c:248
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 nf_ct_invert_tuple+0x5e8/0x620 net/netfilter/nf_conntrack_core.c:464
 nf_nat_setup_info+0x30d/0x4750 net/netfilter/nf_nat_core.c:602
 __nf_nat_alloc_null_binding net/netfilter/nf_nat_core.c:664 [inline]
 nf_nat_alloc_null_binding net/netfilter/nf_nat_core.c:670 [inline]
 nf_nat_inet_fn+0x12bc/0x1720 net/netfilter/nf_nat_core.c:759
 nf_nat_ipv6_fn+0x4dd/0x580 net/netfilter/nf_nat_proto.c:937
 nf_nat_ipv6_local_fn+0xa7/0x830 net/netfilter/nf_nat_proto.c:1001
 nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline]
 nf_hook_slow+0x184/0x480 net/netfilter/core.c:619
 nf_hook include/linux/netfilter.h:262 [inline]
 NF_HOOK include/linux/netfilter.h:305 [inline]
 ip6_xmit+0x27b6/0x2880 net/ipv6/ip6_output.c:324
 sctp_v6_xmit+0xd84/0x19b0 net/sctp/ipv6.c:250
 sctp_packet_transmit+0x438f/0x45a0 net/sctp/output.c:652
 sctp_packet_singleton+0x3d8/0x580 net/sctp/outqueue.c:777
 sctp_outq_flush_ctrl net/sctp/outqueue.c:908 [inline]
 sctp_outq_flush+0x667/0x5eb0 net/sctp/outqueue.c:1202
 sctp_outq_uncork+0x105/0x120 net/sctp/outqueue.c:758
 sctp_side_effects net/sctp/sm_sideeffect.c:1195 [inline]
 sctp_do_sm+0x946f/0x9b50 net/sctp/sm_sideeffect.c:1166
 sctp_primitive_ASSOCIATE+0x172/0x1a0 net/sctp/primitive.c:73
 sctp_sendmsg_to_asoc+0x143f/0x1f90 net/sctp/socket.c:1837
 sctp_sendmsg+0x3eaa/0x5460 net/sctp/socket.c:2027
 inet_sendmsg+0x15b/0x1d0 net/ipv4/af_inet.c:819
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 ____sys_sendmsg+0xe11/0x12c0 net/socket.c:2409
 ___sys_sendmsg net/socket.c:2463 [inline]
 __sys_sendmsg+0x704/0x840 net/socket.c:2492
 __compat_sys_sendmsg net/compat.c:347 [inline]
 __do_compat_sys_sendmsg net/compat.c:354 [inline]
 __se_compat_sys_sendmsg net/compat.c:351 [inline]
 __ia32_compat_sys_sendmsg+0xed/0x130 net/compat.c:351
 do_syscall_32_irqs_on arch/x86/entry/common.c:114 [inline]
 __do_fast_syscall_32+0x96/0xf0 arch/x86/entry/common.c:180
 do_fast_syscall_32+0x34/0x70 arch/x86/entry/common.c:205
 do_SYSENTER_32+0x1b/0x20 arch/x86/entry/common.c:248
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 __nf_conntrack_alloc+0x2de/0x7f0 net/netfilter/nf_conntrack_core.c:1559
 init_conntrack+0x29b/0x2530 net/netfilter/nf_conntrack_core.c:1635
 resolve_normal_ct net/netfilter/nf_conntrack_core.c:1746 [inline]
 nf_conntrack_in+0x1b4b/0x2fe0 net/netfilter/nf_conntrack_core.c:1901
 ipv6_conntrack_local+0x68/0x80 net/netfilter/nf_conntrack_proto.c:414
 nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline]
 nf_hook_slow+0x184/0x480 net/netfilter/core.c:619
 nf_hook include/linux/netfilter.h:262 [inline]
 NF_HOOK include/linux/netfilter.h:305 [inline]
 ip6_xmit+0x27b6/0x2880 net/ipv6/ip6_output.c:324
 sctp_v6_xmit+0xd84/0x19b0 net/sctp/ipv6.c:250
 sctp_packet_transmit+0x438f/0x45a0 net/sctp/output.c:652
 sctp_packet_singleton+0x3d8/0x580 net/sctp/outqueue.c:777
 sctp_outq_flush_ctrl net/sctp/outqueue.c:908 [inline]
 sctp_outq_flush+0x667/0x5eb0 net/sctp/outqueue.c:1202
 sctp_outq_uncork+0x105/0x120 net/sctp/outqueue.c:758
 sctp_side_effects net/sctp/sm_sideeffect.c:1195 [inline]
 sctp_do_sm+0x946f/0x9b50 net/sctp/sm_sideeffect.c:1166
 sctp_primitive_ASSOCIATE+0x172/0x1a0 net/sctp/primitive.c:73
 sctp_sendmsg_to_asoc+0x143f/0x1f90 net/sctp/socket.c:1837
 sctp_sendmsg+0x3eaa/0x5460 net/sctp/socket.c:2027
 inet_sendmsg+0x15b/0x1d0 net/ipv4/af_inet.c:819
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 ____sys_sendmsg+0xe11/0x12c0 net/socket.c:2409
 ___sys_sendmsg net/socket.c:2463 [inline]
 __sys_sendmsg+0x704/0x840 net/socket.c:2492
 __compat_sys_sendmsg net/compat.c:347 [inline]
 __do_compat_sys_sendmsg net/compat.c:354 [inline]
 __se_compat_sys_sendmsg net/compat.c:351 [inline]
 __ia32_compat_sys_sendmsg+0xed/0x130 net/compat.c:351
 do_syscall_32_irqs_on arch/x86/entry/common.c:114 [inline]
 __do_fast_syscall_32+0x96/0xf0 arch/x86/entry/common.c:180
 do_fast_syscall_32+0x34/0x70 arch/x86/entry/common.c:205
 do_SYSENTER_32+0x1b/0x20 arch/x86/entry/common.c:248
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 nf_ct_invert_tuple+0x614/0x620 net/netfilter/nf_conntrack_core.c:465
 init_conntrack+0x11f/0x2530 net/netfilter/nf_conntrack_core.c:1629
 resolve_normal_ct net/netfilter/nf_conntrack_core.c:1746 [inline]
 nf_conntrack_in+0x1b4b/0x2fe0 net/netfilter/nf_conntrack_core.c:1901
 ipv6_conntrack_local+0x68/0x80 net/netfilter/nf_conntrack_proto.c:414
 nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline]
 nf_hook_slow+0x184/0x480 net/netfilter/core.c:619
 nf_hook include/linux/netfilter.h:262 [inline]
 NF_HOOK include/linux/netfilter.h:305 [inline]
 ip6_xmit+0x27b6/0x2880 net/ipv6/ip6_output.c:324
 sctp_v6_xmit+0xd84/0x19b0 net/sctp/ipv6.c:250
 sctp_packet_transmit+0x438f/0x45a0 net/sctp/output.c:652
 sctp_packet_singleton+0x3d8/0x580 net/sctp/outqueue.c:777
 sctp_outq_flush_ctrl net/sctp/outqueue.c:908 [inline]
 sctp_outq_flush+0x667/0x5eb0 net/sctp/outqueue.c:1202
 sctp_outq_uncork+0x105/0x120 net/sctp/outqueue.c:758
 sctp_side_effects net/sctp/sm_sideeffect.c:1195 [inline]
 sctp_do_sm+0x946f/0x9b50 net/sctp/sm_sideeffect.c:1166
 sctp_primitive_ASSOCIATE+0x172/0x1a0 net/sctp/primitive.c:73
 sctp_sendmsg_to_asoc+0x143f/0x1f90 net/sctp/socket.c:1837
 sctp_sendmsg+0x3eaa/0x5460 net/sctp/socket.c:2027
 inet_sendmsg+0x15b/0x1d0 net/ipv4/af_inet.c:819
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 ____sys_sendmsg+0xe11/0x12c0 net/socket.c:2409
 ___sys_sendmsg net/socket.c:2463 [inline]
 __sys_sendmsg+0x704/0x840 net/socket.c:2492
 __compat_sys_sendmsg net/compat.c:347 [inline]
 __do_compat_sys_sendmsg net/compat.c:354 [inline]
 __se_compat_sys_sendmsg net/compat.c:351 [inline]
 __ia32_compat_sys_sendmsg+0xed/0x130 net/compat.c:351
 do_syscall_32_irqs_on arch/x86/entry/common.c:114 [inline]
 __do_fast_syscall_32+0x96/0xf0 arch/x86/entry/common.c:180
 do_fast_syscall_32+0x34/0x70 arch/x86/entry/common.c:205
 do_SYSENTER_32+0x1b/0x20 arch/x86/entry/common.c:248
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 nf_ct_get_tuple_ports net/netfilter/nf_conntrack_core.c:255 [inline]
 nf_ct_get_tuple+0x1500/0x1730 net/netfilter/nf_conntrack_core.c:327
 resolve_normal_ct net/netfilter/nf_conntrack_core.c:1722 [inline]
 nf_conntrack_in+0x74d/0x2fe0 net/netfilter/nf_conntrack_core.c:1901
 ipv6_conntrack_local+0x68/0x80 net/netfilter/nf_conntrack_proto.c:414
 nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline]
 nf_hook_slow+0x184/0x480 net/netfilter/core.c:619
 nf_hook include/linux/netfilter.h:262 [inline]
 NF_HOOK include/linux/netfilter.h:305 [inline]
 ip6_xmit+0x27b6/0x2880 net/ipv6/ip6_output.c:324
 sctp_v6_xmit+0xd84/0x19b0 net/sctp/ipv6.c:250
 sctp_packet_transmit+0x438f/0x45a0 net/sctp/output.c:652
 sctp_packet_singleton+0x3d8/0x580 net/sctp/outqueue.c:777
 sctp_outq_flush_ctrl net/sctp/outqueue.c:908 [inline]
 sctp_outq_flush+0x667/0x5eb0 net/sctp/outqueue.c:1202
 sctp_outq_uncork+0x105/0x120 net/sctp/outqueue.c:758
 sctp_side_effects net/sctp/sm_sideeffect.c:1195 [inline]
 sctp_do_sm+0x946f/0x9b50 net/sctp/sm_sideeffect.c:1166
 sctp_primitive_ASSOCIATE+0x172/0x1a0 net/sctp/primitive.c:73
 sctp_sendmsg_to_asoc+0x143f/0x1f90 net/sctp/socket.c:1837
 sctp_sendmsg+0x3eaa/0x5460 net/sctp/socket.c:2027
 inet_sendmsg+0x15b/0x1d0 net/ipv4/af_inet.c:819
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 ____sys_sendmsg+0xe11/0x12c0 net/socket.c:2409
 ___sys_sendmsg net/socket.c:2463 [inline]
 __sys_sendmsg+0x704/0x840 net/socket.c:2492
 __compat_sys_sendmsg net/compat.c:347 [inline]
 __do_compat_sys_sendmsg net/compat.c:354 [inline]
 __se_compat_sys_sendmsg net/compat.c:351 [inline]
 __ia32_compat_sys_sendmsg+0xed/0x130 net/compat.c:351
 do_syscall_32_irqs_on arch/x86/entry/common.c:114 [inline]
 __do_fast_syscall_32+0x96/0xf0 arch/x86/entry/common.c:180
 do_fast_syscall_32+0x34/0x70 arch/x86/entry/common.c:205
 do_SYSENTER_32+0x1b/0x20 arch/x86/entry/common.c:248
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was stored to memory at:
 pskb_expand_head+0x3c9/0x1ca0 net/core/skbuff.c:1710
 skb_expand_head+0x561/0x970 net/core/skbuff.c:1828
 ip6_xmit+0xb97/0x2880 net/ipv6/ip6_output.c:266
 sctp_v6_xmit+0xd84/0x19b0 net/sctp/ipv6.c:250
 sctp_packet_transmit+0x438f/0x45a0 net/sctp/output.c:652
 sctp_packet_singleton+0x3d8/0x580 net/sctp/outqueue.c:777
 sctp_outq_flush_ctrl net/sctp/outqueue.c:908 [inline]
 sctp_outq_flush+0x667/0x5eb0 net/sctp/outqueue.c:1202
 sctp_outq_uncork+0x105/0x120 net/sctp/outqueue.c:758
 sctp_side_effects net/sctp/sm_sideeffect.c:1195 [inline]
 sctp_do_sm+0x946f/0x9b50 net/sctp/sm_sideeffect.c:1166
 sctp_primitive_ASSOCIATE+0x172/0x1a0 net/sctp/primitive.c:73
 sctp_sendmsg_to_asoc+0x143f/0x1f90 net/sctp/socket.c:1837
 sctp_sendmsg+0x3eaa/0x5460 net/sctp/socket.c:2027
 inet_sendmsg+0x15b/0x1d0 net/ipv4/af_inet.c:819
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 ____sys_sendmsg+0xe11/0x12c0 net/socket.c:2409
 ___sys_sendmsg net/socket.c:2463 [inline]
 __sys_sendmsg+0x704/0x840 net/socket.c:2492
 __compat_sys_sendmsg net/compat.c:347 [inline]
 __do_compat_sys_sendmsg net/compat.c:354 [inline]
 __se_compat_sys_sendmsg net/compat.c:351 [inline]
 __ia32_compat_sys_sendmsg+0xed/0x130 net/compat.c:351
 do_syscall_32_irqs_on arch/x86/entry/common.c:114 [inline]
 __do_fast_syscall_32+0x96/0xf0 arch/x86/entry/common.c:180
 do_fast_syscall_32+0x34/0x70 arch/x86/entry/common.c:205
 do_SYSENTER_32+0x1b/0x20 arch/x86/entry/common.c:248
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

Uninit was created at:
 slab_post_alloc_hook mm/slab.h:524 [inline]
 slab_alloc_node mm/slub.c:3251 [inline]
 __kmalloc_node_track_caller+0xe0c/0x1510 mm/slub.c:4974
 kmalloc_reserve net/core/skbuff.c:354 [inline]
 __alloc_skb+0x545/0xf90 net/core/skbuff.c:426
 alloc_skb include/linux/skbuff.h:1126 [inline]
 sctp_packet_transmit+0x528/0x45a0 net/sctp/output.c:597
 sctp_packet_singleton+0x3d8/0x580 net/sctp/outqueue.c:777
 sctp_outq_flush_ctrl net/sctp/outqueue.c:908 [inline]
 sctp_outq_flush+0x667/0x5eb0 net/sctp/outqueue.c:1202
 sctp_outq_uncork+0x105/0x120 net/sctp/outqueue.c:758
 sctp_side_effects net/sctp/sm_sideeffect.c:1195 [inline]
 sctp_do_sm+0x946f/0x9b50 net/sctp/sm_sideeffect.c:1166
 sctp_primitive_ASSOCIATE+0x172/0x1a0 net/sctp/primitive.c:73
 sctp_sendmsg_to_asoc+0x143f/0x1f90 net/sctp/socket.c:1837
 sctp_sendmsg+0x3eaa/0x5460 net/sctp/socket.c:2027
 inet_sendmsg+0x15b/0x1d0 net/ipv4/af_inet.c:819
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 ____sys_sendmsg+0xe11/0x12c0 net/socket.c:2409
 ___sys_sendmsg net/socket.c:2463 [inline]
 __sys_sendmsg+0x704/0x840 net/socket.c:2492
 __compat_sys_sendmsg net/compat.c:347 [inline]
 __do_compat_sys_sendmsg net/compat.c:354 [inline]
 __se_compat_sys_sendmsg net/compat.c:351 [inline]
 __ia32_compat_sys_sendmsg+0xed/0x130 net/compat.c:351
 do_syscall_32_irqs_on arch/x86/entry/common.c:114 [inline]
 __do_fast_syscall_32+0x96/0xf0 arch/x86/entry/common.c:180
 do_fast_syscall_32+0x34/0x70 arch/x86/entry/common.c:205
 do_SYSENTER_32+0x1b/0x20 arch/x86/entry/common.c:248
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c

CPU: 0 PID: 21099 Comm: syz-executor.2 Not tainted 5.16.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
=====================================================


---
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 syzkaller@googlegroups.com.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [syzbot] KMSAN: uninit-value in nf_nat_setup_info (2)
  2022-01-07 16:51 [syzbot] KMSAN: uninit-value in nf_nat_setup_info (2) syzbot
@ 2022-02-18 21:34 ` syzbot
  0 siblings, 0 replies; 2+ messages in thread
From: syzbot @ 2022-02-18 21:34 UTC (permalink / raw)
  To: coreteam, davem, fw, glider, kadlec, kuba, linux-kernel, netdev,
	netfilter-devel, pablo, syzkaller-bugs

syzbot has found a reproducer for the following issue on:

HEAD commit:    724946410067 x86: kmsan: enable KMSAN builds for x86
git tree:       https://github.com/google/kmsan.git master
console output: https://syzkaller.appspot.com/x/log.txt?x=17b02532700000
kernel config:  https://syzkaller.appspot.com/x/.config?x=76f99026248b24e4
dashboard link: https://syzkaller.appspot.com/bug?extid=cbcd154fce7c6d953d1c
compiler:       clang version 14.0.0 (/usr/local/google/src/llvm-git-monorepo 2b554920f11c8b763cd9ed9003f4e19b919b8e1f), GNU ld (GNU Binutils for Debian) 2.35.2
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=1659ab4c700000
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=1621cbf2700000

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

=====================================================
BUG: KMSAN: uninit-value in get_unique_tuple net/netfilter/nf_nat_core.c:548 [inline]
BUG: KMSAN: uninit-value in nf_nat_setup_info+0x628/0x4a40 net/netfilter/nf_nat_core.c:642
 get_unique_tuple net/netfilter/nf_nat_core.c:548 [inline]
 nf_nat_setup_info+0x628/0x4a40 net/netfilter/nf_nat_core.c:642
 nfnetlink_parse_nat_setup+0xb86/0xcf0
 ctnetlink_parse_nat_setup+0xde/0x390 net/netfilter/nf_conntrack_netlink.c:1845
 ctnetlink_setup_nat net/netfilter/nf_conntrack_netlink.c:1920 [inline]
 ctnetlink_create_conntrack net/netfilter/nf_conntrack_netlink.c:2325 [inline]
 ctnetlink_new_conntrack+0x1d5d/0x4240 net/netfilter/nf_conntrack_netlink.c:2452
 nfnetlink_rcv_msg+0xe0a/0xf80 net/netfilter/nfnetlink.c:296
 netlink_rcv_skb+0x40c/0x7e0 net/netlink/af_netlink.c:2494
 nfnetlink_rcv+0x667/0x4740 net/netfilter/nfnetlink.c:654
 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline]
 netlink_unicast+0x1093/0x1360 net/netlink/af_netlink.c:1343
 netlink_sendmsg+0x14d9/0x1720 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:705 [inline]
 sock_sendmsg net/socket.c:725 [inline]
 ____sys_sendmsg+0xe11/0x12c0 net/socket.c:2413
 ___sys_sendmsg net/socket.c:2467 [inline]
 __sys_sendmsg+0x704/0x840 net/socket.c:2496
 __do_sys_sendmsg net/socket.c:2505 [inline]
 __se_sys_sendmsg net/socket.c:2503 [inline]
 __x64_sys_sendmsg+0xe2/0x120 net/socket.c:2503
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x54/0xd0 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Uninit was created at:
 __alloc_pages+0xbbf/0x1090 mm/page_alloc.c:5429
 alloc_pages+0xa08/0xd50
 alloc_slab_page mm/slub.c:1816 [inline]
 allocate_slab+0x29e/0x1b00 mm/slub.c:1961
 new_slab mm/slub.c:2021 [inline]
 ___slab_alloc+0xb52/0x1da0 mm/slub.c:3035
 __slab_alloc mm/slub.c:3122 [inline]
 slab_alloc_node mm/slub.c:3213 [inline]
 slab_alloc mm/slub.c:3255 [inline]
 kmem_cache_alloc+0xbb3/0x11c0 mm/slub.c:3260
 __nf_conntrack_alloc+0x232/0x7f0 net/netfilter/nf_conntrack_core.c:1553
 init_conntrack+0x29b/0x24c0 net/netfilter/nf_conntrack_core.c:1634
 resolve_normal_ct net/netfilter/nf_conntrack_core.c:1745 [inline]
 nf_conntrack_in+0x1abc/0x3130 net/netfilter/nf_conntrack_core.c:1903
 ipv4_conntrack_in+0x68/0x80 net/netfilter/nf_conntrack_proto.c:191
 nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline]
 nf_hook_slow net/netfilter/core.c:619 [inline]
 nf_hook_slow_list+0x358/0xb40 net/netfilter/core.c:657
 NF_HOOK_LIST include/linux/netfilter.h:343 [inline]
 ip_sublist_rcv+0x1411/0x14a0 net/ipv4/ip_input.c:607
 ip_list_rcv+0x930/0x970 net/ipv4/ip_input.c:644
 __netif_receive_skb_list_ptype net/core/dev.c:5394 [inline]
 __netif_receive_skb_list_core+0xdf9/0x11f0 net/core/dev.c:5442
 __netif_receive_skb_list+0x7e3/0x940 net/core/dev.c:5494
 netif_receive_skb_list_internal+0x848/0xdc0 net/core/dev.c:5585
 gro_normal_list include/net/gro.h:425 [inline]
 napi_complete_done+0x579/0xdc0 net/core/dev.c:5932
 virtqueue_napi_complete drivers/net/virtio_net.c:339 [inline]
 virtnet_poll+0x17a4/0x2340 drivers/net/virtio_net.c:1554
 __napi_poll+0x14c/0xc00 net/core/dev.c:6365
 napi_poll net/core/dev.c:6432 [inline]
 net_rx_action+0x7e2/0x1820 net/core/dev.c:6519
 __do_softirq+0x1ee/0x7c5 kernel/softirq.c:558

CPU: 1 PID: 3471 Comm: syz-executor142 Not tainted 5.17.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
=====================================================


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-18 21:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-07 16:51 [syzbot] KMSAN: uninit-value in nf_nat_setup_info (2) syzbot
2022-02-18 21:34 ` syzbot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.