syzbot


KMSAN: uninit-value in rds_connect

Status: fixed on 2019/05/27 12:48
Subsystems: rds
[Documentation on labels]
Reported-by: syzbot+0049bebbf3042dbd2e8f@syzkaller.appspotmail.com
Fix commit: dd3ac9a68435 net/rds: Check address length before reading address family
First crash: 2276d, last: 2033d
Discussions (5)
Title Replies (including bot) Last reply
[PATCH 5.0 00/89] 5.0.11-stable review 106 (106) 2019/05/03 11:48
[PATCH 4.19 000/100] 4.19.38-stable review 108 (108) 2019/05/02 05:30
[PATCH 1/9] net/rds: Check address length before reading address family 3 (3) 2019/04/12 17:25
[PATCH] net: socket: Always initialize family field at move_addr_to_kernel(). 8 (8) 2019/04/12 00:24
KMSAN: uninit-value in rds_connect 1 (3) 2018/08/31 01:25

Sample crash report:
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
==================================================================
BUG: KMSAN: uninit-value in rds_connect+0x213/0x950 net/rds/af_rds.c:511
CPU: 0 PID: 4780 Comm: syz-executor239 Not tainted 4.19.0-rc1+ #38
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+0x14b/0x190 lib/dump_stack.c:113
 kmsan_report+0x183/0x2b0 mm/kmsan/kmsan.c:956
 __msan_warning+0x70/0xc0 mm/kmsan/kmsan_instr.c:645
 rds_connect+0x213/0x950 net/rds/af_rds.c:511
 __sys_connect+0x64e/0x750 net/socket.c:1662
 __do_sys_connect net/socket.c:1673 [inline]
 __se_sys_connect net/socket.c:1670 [inline]
 __x64_sys_connect+0xd8/0x120 net/socket.c:1670
 do_syscall_64+0x15b/0x220 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
RIP: 0033:0x440199
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 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fff5f41c118 EFLAGS: 00000213 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440199
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000213 R12: 0000000000401a20
R13: 0000000000401ab0 R14: 0000000000000000 R15: 0000000000000000

Local variable description: ----address@__sys_connect
Variable was created at:
 __sys_connect+0x6a/0x750 net/socket.c:1645
 __do_sys_connect net/socket.c:1673 [inline]
 __se_sys_connect net/socket.c:1670 [inline]
 __x64_sys_connect+0xd8/0x120 net/socket.c:1670
==================================================================

Crashes (952):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/08/31 01:24 https://github.com/google/kmsan.git master 25114c64b719 938220fd .config console log report syz C ci-upstream-kmsan-gce
2019/04/29 20:32 https://github.com/google/kmsan.git master d00d85b733bd b617407b .config console log report ci-upstream-kmsan-gce
2019/04/29 16:48 https://github.com/google/kmsan.git master d00d85b733bd b617407b .config console log report ci-upstream-kmsan-gce
2019/04/29 14:53 https://github.com/google/kmsan.git master d00d85b733bd b617407b .config console log report ci-upstream-kmsan-gce
2019/04/29 12:17 https://github.com/google/kmsan.git master d00d85b733bd b617407b .config console log report ci-upstream-kmsan-gce
2019/04/29 10:01 https://github.com/google/kmsan.git master d00d85b733bd b617407b .config console log report ci-upstream-kmsan-gce
2019/04/29 03:17 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/29 00:02 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/28 19:31 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/28 15:48 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/28 13:32 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/28 08:29 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/28 03:49 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/28 00:32 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/27 22:18 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/27 21:02 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/27 19:12 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/27 12:45 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/27 09:36 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/26 22:23 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/26 21:05 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/26 17:58 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/26 17:47 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/26 12:38 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/26 09:56 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/26 08:19 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/26 07:16 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/26 05:32 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/26 04:28 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/26 02:21 https://github.com/google/kmsan.git master 199a02db1f61 f46aabc8 .config console log report ci-upstream-kmsan-gce
2019/04/26 00:04 https://github.com/google/kmsan.git master 199a02db1f61 f46aabc8 .config console log report ci-upstream-kmsan-gce
2019/04/25 21:27 https://github.com/google/kmsan.git master 199a02db1f61 f46aabc8 .config console log report ci-upstream-kmsan-gce
2019/04/25 21:27 https://github.com/google/kmsan.git master 199a02db1f61 f46aabc8 .config console log report ci-upstream-kmsan-gce
2019/04/25 21:25 https://github.com/google/kmsan.git master 199a02db1f61 f46aabc8 .config console log report ci-upstream-kmsan-gce
2019/04/25 20:14 https://github.com/google/kmsan.git master 199a02db1f61 f46aabc8 .config console log report ci-upstream-kmsan-gce
2019/04/25 17:41 https://github.com/google/kmsan.git master 199a02db1f61 f46aabc8 .config console log report ci-upstream-kmsan-gce
2019/04/25 16:19 https://github.com/google/kmsan.git master 199a02db1f61 f46aabc8 .config console log report ci-upstream-kmsan-gce
2019/04/25 12:33 https://github.com/google/kmsan.git master 199a02db1f61 8e3c52b1 .config console log report ci-upstream-kmsan-gce
2019/04/25 09:20 https://github.com/google/kmsan.git master 199a02db1f61 8e3c52b1 .config console log report ci-upstream-kmsan-gce
2019/04/25 07:11 https://github.com/google/kmsan.git master 199a02db1f61 8e3c52b1 .config console log report ci-upstream-kmsan-gce
2019/04/25 05:23 https://github.com/google/kmsan.git master 199a02db1f61 8e3c52b1 .config console log report ci-upstream-kmsan-gce
2019/04/25 03:31 https://github.com/google/kmsan.git master 199a02db1f61 8e3c52b1 .config console log report ci-upstream-kmsan-gce
2018/08/29 02:34 https://github.com/google/kmsan.git master 2dca2cbde67a b771b17e .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.