syzbot


KMSAN: uninit-value in __nf_conntrack_find_get (2)

Status: auto-closed as invalid on 2019/06/27 00:46
Subsystems: netfilter
[Documentation on labels]
First crash: 2029d, last: 2029d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in __nf_conntrack_find_get netfilter C 67 2186d 2193d 8/27 fixed on 2018/08/08 18:10

Sample crash report:
audit: type=1326 audit(1546043427.473:38): auid=4294967295 uid=0 gid=0 ses=4294967295 subj==unconfined pid=13722 comm="syz-executor0" exe="/root/syz-executor0" sig=31 arch=c000003e syscall=228 compat=0 ip=0x45a81a code=0xffff0000
==================================================================
BUG: KMSAN: uninit-value in nf_inet_addr_cmp include/linux/netfilter.h:27 [inline]
BUG: KMSAN: uninit-value in __nf_ct_tuple_dst_equal include/net/netfilter/nf_conntrack_tuple.h:135 [inline]
BUG: KMSAN: uninit-value in nf_ct_tuple_equal include/net/netfilter/nf_conntrack_tuple.h:144 [inline]
BUG: KMSAN: uninit-value in nf_ct_key_equal net/netfilter/nf_conntrack_core.c:629 [inline]
BUG: KMSAN: uninit-value in ____nf_conntrack_find net/netfilter/nf_conntrack_core.c:689 [inline]
BUG: KMSAN: uninit-value in __nf_conntrack_find_get+0x1023/0x22f0 net/netfilter/nf_conntrack_core.c:715
CPU: 1 PID: 13762 Comm: syz-executor1 Not tainted 4.20.0-rc7+ #15
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x173/0x1d0 lib/dump_stack.c:113
 kmsan_report+0x12e/0x2a0 mm/kmsan/kmsan.c:613
 __msan_warning+0x82/0xf0 mm/kmsan/kmsan_instr.c:295
 nf_inet_addr_cmp include/linux/netfilter.h:27 [inline]
 __nf_ct_tuple_dst_equal include/net/netfilter/nf_conntrack_tuple.h:135 [inline]
 nf_ct_tuple_equal include/net/netfilter/nf_conntrack_tuple.h:144 [inline]
 nf_ct_key_equal net/netfilter/nf_conntrack_core.c:629 [inline]
 ____nf_conntrack_find net/netfilter/nf_conntrack_core.c:689 [inline]
 __nf_conntrack_find_get+0x1023/0x22f0 net/netfilter/nf_conntrack_core.c:715
 resolve_normal_ct net/netfilter/nf_conntrack_core.c:1461 [inline]
 nf_conntrack_in+0xdf4/0x1cea net/netfilter/nf_conntrack_core.c:1569
 ipv4_conntrack_local+0x1e2/0x370 net/netfilter/nf_conntrack_proto.c:447
 nf_hook_entry_hookfn include/linux/netfilter.h:119 [inline]
 nf_hook_slow+0x176/0x3d0 net/netfilter/core.c:511
 nf_hook include/linux/netfilter.h:244 [inline]
 __ip_local_out+0x6dc/0x800 net/ipv4/ip_output.c:113
 ip_local_out+0xa4/0x1d0 net/ipv4/ip_output.c:122
 iptunnel_xmit+0x8d1/0xe00 net/ipv4/ip_tunnel_core.c:91
 ip_tunnel_xmit+0x37c6/0x3b90 net/ipv4/ip_tunnel.c:787
 __gre_xmit net/ipv4/ip_gre.c:451 [inline]
 ipgre_xmit+0xdd8/0xec0 net/ipv4/ip_gre.c:705
 __netdev_start_xmit include/linux/netdevice.h:4356 [inline]
 netdev_start_xmit include/linux/netdevice.h:4365 [inline]
 xmit_one net/core/dev.c:3257 [inline]
 dev_hard_start_xmit+0x607/0xc40 net/core/dev.c:3273
 __dev_queue_xmit+0x2e42/0x3bc0 net/core/dev.c:3843
 dev_queue_xmit+0x4b/0x60 net/core/dev.c:3876
 packet_snd net/packet/af_packet.c:2928 [inline]
 packet_sendmsg+0x8306/0x8f30 net/packet/af_packet.c:2953
 sock_sendmsg_nosec net/socket.c:621 [inline]
 sock_sendmsg net/socket.c:631 [inline]
 ___sys_sendmsg+0xdb9/0x11b0 net/socket.c:2116
 __sys_sendmsg net/socket.c:2154 [inline]
 __do_sys_sendmsg net/socket.c:2163 [inline]
 __se_sys_sendmsg+0x305/0x460 net/socket.c:2161
 __x64_sys_sendmsg+0x4a/0x70 net/socket.c:2161
 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:291
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
RIP: 0033:0x4579b9
Code: fd b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 cb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f1326c9bc78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000004579b9
RDX: 0000000000000000 RSI: 0000000020001540 RDI: 0000000000000004
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f1326c9c6d4
R13: 00000000004c4d3b R14: 00000000004d84a8 R15: 00000000ffffffff

Uninit was created at:
No stack
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/12/29 00:30 https://github.com/google/kmsan.git master 79fc24ff6184 e33ad0f1 .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.