syzbot


KMSAN: uninit-value in __inet6_bind

Status: fixed on 2019/01/11 01:22
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+c56449ed3652e6720f30@syzkaller.appspotmail.com
Fix commit: fb2427454631 ipv6: explicitly initialize udp6_addr in udp_sock_create6()
First crash: 1905d, last: 1875d
Discussions (7)
Title Replies (including bot) Last reply
[PATCH 3.18 00/47] 3.18.132-stable review 52 (52) 2019/01/13 07:44
[PATCH 4.4 00/88] 4.4.170-stable review 102 (102) 2019/01/12 17:42
[PATCH 4.19 000/170] 4.19.14-stable review 194 (194) 2019/01/11 07:09
[PATCH 4.14 000/101] 4.14.92-stable review 130 (130) 2019/01/09 15:47
[PATCH 4.9 00/71] 4.9.149-stable review 85 (85) 2019/01/09 10:46
[Patch net] ipv6: explicitly initialize udp6_addr in udp_sock_create6() 2 (2) 2018/12/19 20:10
KMSAN: uninit-value in __inet6_bind 5 (7) 2018/12/17 07:14

Sample crash report:
audit: type=1800 audit(1545030606.944:30): pid=6407 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rmnologin" dev="sda1" ino=2423 res=0
Started in network mode
Own node identity fe8000000000000000000000000000bb, cluster identity 4711
==================================================================
BUG: KMSAN: uninit-value in __inet6_bind+0xb35/0x1a30 net/ipv6/af_inet6.c:340
CPU: 1 PID: 6557 Comm: syz-executor447 Not tainted 4.20.0-rc5+ #2
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+0x1c9/0x220 lib/dump_stack.c:113
 kmsan_report+0x12d/0x290 mm/kmsan/kmsan.c:682
 __msan_warning+0x76/0xc0 mm/kmsan/kmsan_instr.c:316
 __inet6_bind+0xb35/0x1a30 net/ipv6/af_inet6.c:340
 inet6_bind+0x206/0x300 net/ipv6/af_inet6.c:441
 kernel_bind+0xc6/0xf0 net/socket.c:3230
 udp_sock_create6+0x2ee/0x890 net/ipv6/ip6_udp_tunnel.c:39
 udp_sock_create include/net/udp_tunnel.h:61 [inline]
 tipc_udp_enable+0x166f/0x1d70 net/tipc/udp_media.c:742
 tipc_enable_bearer net/tipc/bearer.c:302 [inline]
 __tipc_nl_bearer_enable+0x1213/0x1da0 net/tipc/bearer.c:897
 tipc_nl_bearer_enable+0x6c/0xb0 net/tipc/bearer.c:905
 genl_family_rcv_msg net/netlink/genetlink.c:601 [inline]
 genl_rcv_msg+0x185f/0x1a60 net/netlink/genetlink.c:626
 netlink_rcv_skb+0x444/0x640 net/netlink/af_netlink.c:2477
 genl_rcv+0x63/0x80 net/netlink/genetlink.c:637
 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline]
 netlink_unicast+0xf80/0x1060 net/netlink/af_netlink.c:1336
 netlink_sendmsg+0x129d/0x1310 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:621 [inline]
 sock_sendmsg net/socket.c:631 [inline]
 ___sys_sendmsg+0xdbc/0x11d0 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+0xcd/0x110 arch/x86/entry/common.c:291
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
RIP: 0033:0x444199
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 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 1b d8 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffe96b1eb28 EFLAGS: 00000213 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 0000000000444199
RDX: 0000000000000000 RSI: 00000000200008c0 RDI: 0000000000000003
RBP: 00000000006ce018 R08: 0000000000000000 R09: 00000000004002e0
R10: 0000000000000000 R11: 0000000000000213 R12: 0000000000401e40
R13: 0000000000401ed0 R14: 0000000000000000 R15: 0000000000000000

Local variable description: ----udp6_addr@udp_sock_create6
Variable was created at:
 udp_sock_create6+0x80/0x890 net/ipv6/ip6_udp_tunnel.c:17
 udp_sock_create include/net/udp_tunnel.h:61 [inline]
 tipc_udp_enable+0x166f/0x1d70 net/tipc/udp_media.c:742
==================================================================

Crashes (56):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/12/17 07:13 https://github.com/google/kmsan.git master 0a602458c72c def91db3 .config console log report syz C ci-upstream-kmsan-gce
2019/01/09 19:35 https://github.com/google/kmsan.git master a6846a32c96d 45c0c1b1 .config console log report ci-upstream-kmsan-gce
2019/01/09 14:28 https://github.com/google/kmsan.git master 48128c3ca084 45c0c1b1 .config console log report ci-upstream-kmsan-gce
2019/01/08 03:29 https://github.com/google/kmsan.git master 48128c3ca084 69d69aa9 .config console log report ci-upstream-kmsan-gce
2019/01/07 19:56 https://github.com/google/kmsan.git master 48128c3ca084 69d69aa9 .config console log report ci-upstream-kmsan-gce
2019/01/05 12:47 https://github.com/google/kmsan.git master 11587f6ee534 53be0a37 .config console log report ci-upstream-kmsan-gce
2019/01/04 07:43 https://github.com/google/kmsan.git master 68006459ade0 7da23925 .config console log report ci-upstream-kmsan-gce
2019/01/04 06:32 https://github.com/google/kmsan.git master 68006459ade0 7da23925 .config console log report ci-upstream-kmsan-gce
2019/01/03 17:37 https://github.com/google/kmsan.git master 68006459ade0 66fcd29b .config console log report ci-upstream-kmsan-gce
2019/01/02 04:15 https://github.com/google/kmsan.git master 8ba10281f9e5 3d85f48c .config console log report ci-upstream-kmsan-gce
2018/12/30 19:38 https://github.com/google/kmsan.git master 8ba10281f9e5 9942de5f .config console log report ci-upstream-kmsan-gce
2018/12/30 18:23 https://github.com/google/kmsan.git master 8ba10281f9e5 9942de5f .config console log report ci-upstream-kmsan-gce
2018/12/30 18:23 https://github.com/google/kmsan.git master 8ba10281f9e5 9942de5f .config console log report ci-upstream-kmsan-gce
2018/12/30 16:45 https://github.com/google/kmsan.git master 8ba10281f9e5 9942de5f .config console log report ci-upstream-kmsan-gce
2018/12/28 06:08 https://github.com/google/kmsan.git master 79fc24ff6184 af317504 .config console log report ci-upstream-kmsan-gce
2018/12/27 07:38 https://github.com/google/kmsan.git master 79fc24ff6184 e747ec98 .config console log report ci-upstream-kmsan-gce
2018/12/25 12:39 https://github.com/google/kmsan.git master 79fc24ff6184 8a41a0ad .config console log report ci-upstream-kmsan-gce
2018/12/25 11:43 https://github.com/google/kmsan.git master 79fc24ff6184 8a41a0ad .config console log report ci-upstream-kmsan-gce
2018/12/25 11:01 https://github.com/google/kmsan.git master 79fc24ff6184 8a41a0ad .config console log report ci-upstream-kmsan-gce
2018/12/24 15:51 https://github.com/google/kmsan.git master e9021948e109 be79df56 .config console log report ci-upstream-kmsan-gce
2018/12/24 15:49 https://github.com/google/kmsan.git master e9021948e109 be79df56 .config console log report ci-upstream-kmsan-gce
2018/12/23 19:45 https://github.com/google/kmsan.git master 75b3ad224f19 e3bd7ab8 .config console log report ci-upstream-kmsan-gce
2018/12/23 00:00 https://github.com/google/kmsan.git master 75b3ad224f19 e3bd7ab8 .config console log report ci-upstream-kmsan-gce
2018/12/22 23:46 https://github.com/google/kmsan.git master 75b3ad224f19 e3bd7ab8 .config console log report ci-upstream-kmsan-gce
2018/12/22 23:38 https://github.com/google/kmsan.git master 75b3ad224f19 e3bd7ab8 .config console log report ci-upstream-kmsan-gce
2018/12/21 03:30 https://github.com/google/kmsan.git master 52848d85e630 2b497001 .config console log report ci-upstream-kmsan-gce
2018/12/18 16:15 https://github.com/google/kmsan.git master 49d30e29c6d8 4edaba93 .config console log report ci-upstream-kmsan-gce
2018/12/17 18:44 https://github.com/google/kmsan.git master 0a602458c72c def91db3 .config console log report ci-upstream-kmsan-gce
2018/12/16 18:51 https://github.com/google/kmsan.git master 0a602458c72c def91db3 .config console log report ci-upstream-kmsan-gce
2018/12/16 18:34 https://github.com/google/kmsan.git master 0a602458c72c def91db3 .config console log report ci-upstream-kmsan-gce
2018/12/15 06:19 https://github.com/google/kmsan.git master 0a602458c72c 7624ddd6 .config console log report ci-upstream-kmsan-gce
2018/12/15 05:55 https://github.com/google/kmsan.git master 0a602458c72c 7624ddd6 .config console log report ci-upstream-kmsan-gce
2018/12/15 05:55 https://github.com/google/kmsan.git master 0a602458c72c 7624ddd6 .config console log report ci-upstream-kmsan-gce
2018/12/15 02:44 https://github.com/google/kmsan.git master 0a602458c72c 7624ddd6 .config console log report ci-upstream-kmsan-gce
2018/12/14 06:45 https://github.com/google/kmsan.git master 0a602458c72c fe7127be .config console log report ci-upstream-kmsan-gce
2018/12/14 05:51 https://github.com/google/kmsan.git master 0a602458c72c fe7127be .config console log report ci-upstream-kmsan-gce
2018/12/14 05:45 https://github.com/google/kmsan.git master 0a602458c72c fe7127be .config console log report ci-upstream-kmsan-gce
2018/12/14 05:43 https://github.com/google/kmsan.git master 0a602458c72c fe7127be .config console log report ci-upstream-kmsan-gce
2018/12/13 11:52 https://github.com/google/kmsan.git master 42db043be545 f3d9d594 .config console log report ci-upstream-kmsan-gce
2018/12/12 21:14 https://github.com/google/kmsan.git master 42db043be545 c3b10a5d .config console log report ci-upstream-kmsan-gce
2018/12/11 12:37 https://github.com/google/kmsan.git master 3f06bda61398 7795ae03 .config console log report ci-upstream-kmsan-gce
2018/12/11 12:35 https://github.com/google/kmsan.git master 3f06bda61398 7795ae03 .config console log report ci-upstream-kmsan-gce
2018/12/11 06:15 https://github.com/google/kmsan.git master 3f06bda61398 4093e33b .config console log report ci-upstream-kmsan-gce
2018/12/11 05:59 https://github.com/google/kmsan.git master 3f06bda61398 4093e33b .config console log report ci-upstream-kmsan-gce
2018/12/11 05:48 https://github.com/google/kmsan.git master 3f06bda61398 4093e33b .config console log report ci-upstream-kmsan-gce
2018/12/10 21:02 https://github.com/google/kmsan.git master 3f06bda61398 6565f24d .config console log report ci-upstream-kmsan-gce
2018/12/10 20:56 https://github.com/google/kmsan.git master 3f06bda61398 6565f24d .config console log report ci-upstream-kmsan-gce
2018/12/10 20:47 https://github.com/google/kmsan.git master 3f06bda61398 6565f24d .config console log report ci-upstream-kmsan-gce
2018/12/10 20:46 https://github.com/google/kmsan.git master 3f06bda61398 6565f24d .config console log report ci-upstream-kmsan-gce
2018/12/10 19:52 https://github.com/google/kmsan.git master 3f06bda61398 6565f24d .config console log report ci-upstream-kmsan-gce
2018/12/10 18:59 https://github.com/google/kmsan.git master 3f06bda61398 6565f24d .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.