syzbot


KMSAN: uninit-value in inotify_read

Status: closed as invalid on 2018/04/16 10:01
Subsystems: gfs2
[Documentation on labels]
First crash: 2696d, last: 2696d

Sample crash report:
==================================================================
BUG: KMSAN: uninit-value in copy_to_user include/linux/uaccess.h:184 [inline]
BUG: KMSAN: uninit-value in copy_event_to_user fs/notify/inotify/inotify_user.c:196 [inline]
BUG: KMSAN: uninit-value in inotify_read+0x855/0xd40 fs/notify/inotify/inotify_user.c:245
CPU: 0 PID: 1859 Comm: udevd Not tainted 4.16.0+ #82
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x185/0x1d0 lib/dump_stack.c:53
 kmsan_report+0x142/0x240 mm/kmsan/kmsan.c:1067
 kmsan_internal_check_memory+0x125/0x1d0 mm/kmsan/kmsan.c:1157
 kmsan_copy_to_user+0x69/0x160 mm/kmsan/kmsan.c:1199
 copy_to_user include/linux/uaccess.h:184 [inline]
 copy_event_to_user fs/notify/inotify/inotify_user.c:196 [inline]
 inotify_read+0x855/0xd40 fs/notify/inotify/inotify_user.c:245
 __vfs_read+0x19f/0x8e0 fs/read_write.c:411
 vfs_read+0x36c/0x6c0 fs/read_write.c:447
 SYSC_read+0x172/0x360 fs/read_write.c:573
 SyS_read+0x55/0x80 fs/read_write.c:566
 do_syscall_64+0x309/0x430 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x3d/0xa2
RIP: 0033:0x7fd1dbdeb310
RSP: 002b:00007ffe1627ef98 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00000000006254a0 RCX: 00007fd1dbdeb310
RDX: 0000000000000060 RSI: 00000000008fa3a0 RDI: 0000000000000006
RBP: 0000000000a23340 R08: 00000000008fa390 R09: 00007fd1dbe40c20
R10: 000000000000001c R11: 0000000000000246 R12: 0000000000002710
R13: 0000000000000000 R14: 00000000008fa3a0 R15: 000000000082e250

Local variable description: ----inotify_event.i@inotify_read
Variable was created at:
 inotify_read+0xa1/0xd40 fs/notify/inotify/inotify_user.c:223
 __vfs_read+0x19f/0x8e0 fs/read_write.c:411

Byte 4 of 16 is uninitialized
==================================================================

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