syzbot


KMSAN: uninit-value in nf_nat_setup_info

Status: auto-closed as invalid on 2019/09/07 17:17
Subsystems: netfilter
[Documentation on labels]
First crash: 2153d, last: 2044d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in nf_nat_setup_info (2) netfilter C 764 931d 1011d 0/28 auto-obsoleted due to no activity on 2022/09/28 07:28

Sample crash report:
==================================================================
BUG: KMSAN: uninit-value in nf_inet_addr_cmp include/linux/netfilter.h:27 [inline]
BUG: KMSAN: uninit-value in find_best_ips_proto net/netfilter/nf_nat_core.c:296 [inline]
BUG: KMSAN: uninit-value in get_unique_tuple net/netfilter/nf_nat_core.c:502 [inline]
BUG: KMSAN: uninit-value in nf_nat_setup_info+0x700/0x3b00 net/netfilter/nf_nat_core.c:566
CPU: 1 PID: 12810 Comm: syz-executor.2 Not tainted 5.0.0+ #11
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:600
 __msan_warning+0x82/0xf0 mm/kmsan/kmsan_instr.c:313
 nf_inet_addr_cmp include/linux/netfilter.h:27 [inline]
 find_best_ips_proto net/netfilter/nf_nat_core.c:296 [inline]
 get_unique_tuple net/netfilter/nf_nat_core.c:502 [inline]
 nf_nat_setup_info+0x700/0x3b00 net/netfilter/nf_nat_core.c:566
 __nf_nat_alloc_null_binding net/netfilter/nf_nat_core.c:625 [inline]
 nf_nat_alloc_null_binding net/netfilter/nf_nat_core.c:631 [inline]
 nf_nat_inet_fn+0x106c/0x11f0 net/netfilter/nf_nat_core.c:727
 nf_nat_ipv4_fn net/ipv4/netfilter/nf_nat_l3proto_ipv4.c:247 [inline]
 nf_nat_ipv4_local_fn+0x2bf/0x870 net/ipv4/netfilter/nf_nat_l3proto_ipv4.c:306
 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+0x8a7/0xde0 net/ipv4/ip_tunnel_core.c:91
 ip_tunnel_xmit+0x357d/0x3ca0 net/ipv4/ip_tunnel.c:784
 __gre_xmit net/ipv4/ip_gre.c:444 [inline]
 ipgre_xmit+0x1098/0x11c0 net/ipv4/ip_gre.c:702
 __netdev_start_xmit include/linux/netdevice.h:4385 [inline]
 netdev_start_xmit include/linux/netdevice.h:4394 [inline]
 xmit_one net/core/dev.c:3278 [inline]
 dev_hard_start_xmit+0x604/0xc40 net/core/dev.c:3294
 __dev_queue_xmit+0x2e48/0x3b80 net/core/dev.c:3864
 dev_queue_xmit+0x4b/0x60 net/core/dev.c:3897
 packet_snd net/packet/af_packet.c:2933 [inline]
 packet_sendmsg+0x7d3a/0x8d30 net/packet/af_packet.c:2958
 sock_sendmsg_nosec net/socket.c:622 [inline]
 sock_sendmsg net/socket.c:632 [inline]
 ___sys_sendmsg+0xdb9/0x11b0 net/socket.c:2115
 __sys_sendmsg net/socket.c:2153 [inline]
 __do_sys_sendmsg net/socket.c:2162 [inline]
 __se_sys_sendmsg+0x305/0x460 net/socket.c:2160
 __x64_sys_sendmsg+0x4a/0x70 net/socket.c:2160
 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:291
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
RIP: 0033:0x457f29
Code: ad b8 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 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f6426638c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457f29
RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000000000005
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f64266396d4
R13: 00000000004c5561 R14: 00000000004d9408 R15: 00000000ffffffff

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

Crashes (319):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/03/11 13:07 https://github.com/google/kmsan.git master a695dc5e929e 12365b99 .config console log report ci-upstream-kmsan-gce
2019/03/08 20:14 https://github.com/google/kmsan.git master a695dc5e929e 12365b99 .config console log report ci-upstream-kmsan-gce
2019/03/08 09:59 https://github.com/google/kmsan.git master a695dc5e929e 12365b99 .config console log report ci-upstream-kmsan-gce
2019/03/07 12:44 https://github.com/google/kmsan.git master a695dc5e929e 8c085c5e .config console log report ci-upstream-kmsan-gce
2019/03/07 10:33 https://github.com/google/kmsan.git master a695dc5e929e 8c085c5e .config console log report ci-upstream-kmsan-gce
2019/03/06 01:07 https://github.com/google/kmsan.git master 6c55aa96dcda 16559f86 .config console log report ci-upstream-kmsan-gce
2019/03/05 08:31 https://github.com/google/kmsan.git master fa1981bee40f bb91cf81 .config console log report ci-upstream-kmsan-gce
2019/03/03 13:41 https://github.com/google/kmsan.git master fa1981bee40f 1c0e457a .config console log report ci-upstream-kmsan-gce
2019/03/03 09:43 https://github.com/google/kmsan.git master fa1981bee40f 1c0e457a .config console log report ci-upstream-kmsan-gce
2019/03/03 08:01 https://github.com/google/kmsan.git master fa1981bee40f 1c0e457a .config console log report ci-upstream-kmsan-gce
2019/03/02 07:10 https://github.com/google/kmsan.git master fa1981bee40f 1c0e457a .config console log report ci-upstream-kmsan-gce
2019/03/01 19:08 https://github.com/google/kmsan.git master fa1981bee40f 68d9e495 .config console log report ci-upstream-kmsan-gce
2019/02/28 21:30 https://github.com/google/kmsan.git master fa1981bee40f 09aeeba4 .config console log report ci-upstream-kmsan-gce
2019/02/27 07:57 https://github.com/google/kmsan.git master fa1981bee40f f2468c12 .config console log report ci-upstream-kmsan-gce
2019/02/27 04:31 https://github.com/google/kmsan.git master fa1981bee40f f2468c12 .config console log report ci-upstream-kmsan-gce
2019/02/22 12:55 https://github.com/google/kmsan.git master fa1981bee40f 6a5fcca4 .config console log report ci-upstream-kmsan-gce
2019/02/22 01:05 https://github.com/google/kmsan.git master fa1981bee40f 7ff74a98 .config console log report ci-upstream-kmsan-gce
2019/02/21 14:29 https://github.com/google/kmsan.git master fa1981bee40f 3133098b .config console log report ci-upstream-kmsan-gce
2019/02/21 11:11 https://github.com/google/kmsan.git master fa1981bee40f 3133098b .config console log report ci-upstream-kmsan-gce
2019/02/21 02:08 https://github.com/google/kmsan.git master fa1981bee40f c95f0707 .config console log report ci-upstream-kmsan-gce
2019/02/20 20:11 https://github.com/google/kmsan.git master fa1981bee40f c95f0707 .config console log report ci-upstream-kmsan-gce
2019/02/20 03:01 https://github.com/google/kmsan.git master fa1981bee40f 4df543c9 .config console log report ci-upstream-kmsan-gce
2019/02/19 16:59 https://github.com/google/kmsan.git master fa1981bee40f 4df543c9 .config console log report ci-upstream-kmsan-gce
2019/02/18 19:16 https://github.com/google/kmsan.git master fa1981bee40f 59f36113 .config console log report ci-upstream-kmsan-gce
2019/02/17 17:17 https://github.com/google/kmsan.git master fa1981bee40f 3e98cc30 .config console log report ci-upstream-kmsan-gce
2019/02/16 21:23 https://github.com/google/kmsan.git master fa1981bee40f f42dee6d .config console log report ci-upstream-kmsan-gce
2019/02/16 02:30 https://github.com/google/kmsan.git master fa1981bee40f f42dee6d .config console log report ci-upstream-kmsan-gce
2019/02/15 18:42 https://github.com/google/kmsan.git master fa1981bee40f f6f233c0 .config console log report ci-upstream-kmsan-gce
2019/02/15 15:20 https://github.com/google/kmsan.git master fa1981bee40f f6f233c0 .config console log report ci-upstream-kmsan-gce
2019/02/15 12:02 https://github.com/google/kmsan.git master fa1981bee40f f6f233c0 .config console log report ci-upstream-kmsan-gce
2019/02/14 10:14 https://github.com/google/kmsan.git master fa1981bee40f 6a46f448 .config console log report ci-upstream-kmsan-gce
2019/02/14 07:06 https://github.com/google/kmsan.git master fa1981bee40f 6a46f448 .config console log report ci-upstream-kmsan-gce
2019/02/13 11:02 https://github.com/google/kmsan.git master fa1981bee40f 1eedba36 .config console log report ci-upstream-kmsan-gce
2019/02/13 03:57 https://github.com/google/kmsan.git master fa1981bee40f 1eedba36 .config console log report ci-upstream-kmsan-gce
2019/02/12 15:38 https://github.com/google/kmsan.git master fa1981bee40f 6ecc6d0f .config console log report ci-upstream-kmsan-gce
2019/02/12 00:39 https://github.com/google/kmsan.git master fa1981bee40f 65a0d619 .config console log report ci-upstream-kmsan-gce
2019/02/11 07:55 https://github.com/google/kmsan.git master fa1981bee40f b4f792e4 .config console log report ci-upstream-kmsan-gce
2019/02/08 19:46 https://github.com/google/kmsan.git master fa1981bee40f fa6c7b70 .config console log report ci-upstream-kmsan-gce
2019/02/08 03:45 https://github.com/google/kmsan.git master fa1981bee40f aa4feb03 .config console log report ci-upstream-kmsan-gce
2019/02/07 12:51 https://github.com/google/kmsan.git master fa1981bee40f aa4feb03 .config console log report ci-upstream-kmsan-gce
2019/02/06 00:32 https://github.com/google/kmsan.git master fa1981bee40f d672172c .config console log report ci-upstream-kmsan-gce
2019/02/05 01:43 https://github.com/google/kmsan.git master fa1981bee40f d672172c .config console log report ci-upstream-kmsan-gce
2019/02/03 23:47 https://github.com/google/kmsan.git master fa1981bee40f c198d5dd .config console log report ci-upstream-kmsan-gce
2019/02/03 19:17 https://github.com/google/kmsan.git master fa1981bee40f c198d5dd .config console log report ci-upstream-kmsan-gce
2019/02/03 17:43 https://github.com/google/kmsan.git master fa1981bee40f c198d5dd .config console log report ci-upstream-kmsan-gce
2019/02/03 10:59 https://github.com/google/kmsan.git master fa1981bee40f c198d5dd .config console log report ci-upstream-kmsan-gce
2019/02/01 12:05 https://github.com/google/kmsan.git master fa1981bee40f 0c07abcf .config console log report ci-upstream-kmsan-gce
2019/02/01 10:57 https://github.com/google/kmsan.git master fa1981bee40f 0c07abcf .config console log report ci-upstream-kmsan-gce
2019/02/01 06:17 https://github.com/google/kmsan.git master fa1981bee40f 0e8ea0a3 .config console log report ci-upstream-kmsan-gce
2019/01/31 18:51 https://github.com/google/kmsan.git master fa1981bee40f 0e8ea0a3 .config console log report ci-upstream-kmsan-gce
2019/01/31 13:24 https://github.com/google/kmsan.git master fa1981bee40f aa432daf .config console log report ci-upstream-kmsan-gce
2019/01/31 09:48 https://github.com/google/kmsan.git master fa1981bee40f aa432daf .config console log report ci-upstream-kmsan-gce
2019/01/30 05:04 https://github.com/google/kmsan.git master fa1981bee40f aa432daf .config console log report ci-upstream-kmsan-gce
2019/01/29 21:28 https://github.com/google/kmsan.git master fa1981bee40f aa432daf .config console log report ci-upstream-kmsan-gce
2019/01/29 01:32 https://github.com/google/kmsan.git master fa1981bee40f aa432daf .config console log report ci-upstream-kmsan-gce
2018/11/22 18:41 https://github.com/google/kmsan.git master 50031178f793 2ee77802 .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.