syzbot


KMSAN: uninit-value in put_timespec64

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

Sample crash report:
==================================================================
BUG: KMSAN: uninit-value in copy_to_user include/linux/uaccess.h:184 [inline]
BUG: KMSAN: uninit-value in put_timespec64+0x159/0x200 kernel/time/time.c:867
CPU: 0 PID: 7196 Comm: syz-executor2 Not tainted 4.16.0+ #83
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]
 put_timespec64+0x159/0x200 kernel/time/time.c:867
 SYSC_clock_gettime+0x289/0x2f0 kernel/time/posix-timers.c:1069
 SyS_clock_gettime+0x45/0x70 kernel/time/posix-timers.c:1057
 do_syscall_64+0x309/0x430 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x3d/0xa2
RIP: 0033:0x45813a
RSP: 002b:0000000000a3e948 EFLAGS: 00000246 ORIG_RAX: 00000000000000e4
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000045813a
RDX: 000000000072ca20 RSI: 0000000000a3e950 RDI: 0000000000000001
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000a3e940 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000002 R14: 000000000072ca20 R15: 000000000001663d

Local variable description: ----kts@put_timespec64
Variable was created at:
 put_timespec64+0x54/0x200 kernel/time/time.c:862
 SYSC_clock_gettime+0x289/0x2f0 kernel/time/posix-timers.c:1069

Bytes 8-12 of 16 are uninitialized
==================================================================

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/04/14 15:53 https://github.com/google/kmsan.git master 35ff515e4bda 7a67784c .config console log report ci-upstream-kmsan-gce
2018/04/14 00:01 https://github.com/google/kmsan.git master 35ff515e4bda 7a67784c .config console log report ci-upstream-kmsan-gce
2018/04/11 20:35 https://github.com/google/kmsan.git master 35ff515e4bda 9cd56d71 .config console log report ci-upstream-kmsan-gce
2018/04/11 01:30 https://github.com/google/kmsan.git master 35ff515e4bda 8b8de427 .config console log report ci-upstream-kmsan-gce
2018/04/09 20:38 https://github.com/google/kmsan.git master e2ab7e8abba4 b9f65507 .config console log report ci-upstream-kmsan-gce
2018/04/08 09:51 https://github.com/google/kmsan.git master e2ab7e8abba4 66f22a7f .config console log report ci-upstream-kmsan-gce
2018/04/07 12:26 https://github.com/google/kmsan.git master e2ab7e8abba4 66f22a7f .config console log report ci-upstream-kmsan-gce
2018/04/07 11:08 https://github.com/google/kmsan.git master e2ab7e8abba4 10a8987f .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.