syzbot


KMSAN: uninit-value in rds_bind

Status: fixed on 2019/05/27 12:48
Subsystems: rds
[Documentation on labels]
Reported-by: syzbot+915c9f99f3dbc4bd6cd1@syzkaller.appspotmail.com
Fix commit: dd3ac9a68435 net/rds: Check address length before reading address family
First crash: 2279d, last: 2035d
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_bind 3 (4) 2018/08/30 21:05

Sample crash report:
==================================================================
BUG: KMSAN: uninit-value in rds_bind+0x1ad/0x2520 net/rds/bind.c:176
CPU: 0 PID: 11108 Comm: syz-executor924 Not tainted 5.1.0-rc4+ #1
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+0x131/0x2a0 mm/kmsan/kmsan.c:619
 __msan_warning+0x7a/0xf0 mm/kmsan/kmsan_instr.c:310
 rds_bind+0x1ad/0x2520 net/rds/bind.c:176
 __sys_bind+0x60b/0x7c0 net/socket.c:1627
 __do_sys_bind net/socket.c:1638 [inline]
 __se_sys_bind+0x8d/0xb0 net/socket.c:1636
 __x64_sys_bind+0x4a/0x70 net/socket.c:1636
 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:291
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
RIP: 0033:0x440179
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:00007fffafa1f8f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000031
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440179
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a00
R13: 0000000000401a90 R14: 0000000000000000 R15: 0000000000000000

Local variable description: ----address@__sys_bind
Variable was created at:
 __sys_bind+0x87/0x7c0 net/socket.c:1614
 __do_sys_bind net/socket.c:1638 [inline]
 __se_sys_bind+0x8d/0xb0 net/socket.c:1636
==================================================================

Crashes (6202):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/04/22 11:48 https://github.com/google/kmsan.git master 199a02db1f61 0a77c33c .config console log report syz C ci-upstream-kmsan-gce
2018/08/29 01:24 https://github.com/google/kmsan.git master 2dca2cbde67a b771b17e .config console log report syz C ci-upstream-kmsan-gce
2019/04/29 21:20 https://github.com/google/kmsan.git master d00d85b733bd b617407b .config console log report ci-upstream-kmsan-gce
2019/04/29 20:12 https://github.com/google/kmsan.git master d00d85b733bd b617407b .config console log report ci-upstream-kmsan-gce
2019/04/29 19:00 https://github.com/google/kmsan.git master d00d85b733bd b617407b .config console log report ci-upstream-kmsan-gce
2019/04/29 17:43 https://github.com/google/kmsan.git master d00d85b733bd b617407b .config console log report ci-upstream-kmsan-gce
2019/04/29 16:33 https://github.com/google/kmsan.git master d00d85b733bd b617407b .config console log report ci-upstream-kmsan-gce
2019/04/29 14:55 https://github.com/google/kmsan.git master d00d85b733bd b617407b .config console log report ci-upstream-kmsan-gce
2019/04/29 13:53 https://github.com/google/kmsan.git master d00d85b733bd b617407b .config console log report ci-upstream-kmsan-gce
2019/04/29 13:38 https://github.com/google/kmsan.git master d00d85b733bd b617407b .config console log report ci-upstream-kmsan-gce
2019/04/29 12:29 https://github.com/google/kmsan.git master d00d85b733bd b617407b .config console log report ci-upstream-kmsan-gce
2019/04/29 11:07 https://github.com/google/kmsan.git master d00d85b733bd b617407b .config console log report ci-upstream-kmsan-gce
2019/04/29 09:59 https://github.com/google/kmsan.git master d00d85b733bd b617407b .config console log report ci-upstream-kmsan-gce
2019/04/29 03:20 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/29 01:04 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/29 00:03 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/28 21:00 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/28 19:02 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/28 16:56 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/28 15:06 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/28 14:04 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/28 12:45 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/28 12:09 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/28 10:33 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/28 09:07 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/28 06:50 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/28 04:35 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/28 03:29 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/28 02:04 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/28 00:30 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/27 23:27 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/27 22:21 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/27 18:53 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/27 17:37 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/27 16:54 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/27 15:46 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/27 14:06 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/27 10:50 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/27 09:05 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/27 07:10 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/27 05:48 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/27 04:55 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/27 03:12 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2018/08/28 20:07 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.