syzbot


KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds (4)

Status: auto-closed as invalid on 2021/11/18 03:13
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 608d, last: 410d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds (3) 4 666d 696d 0/24 auto-closed as invalid on 2021/03/06 23:28
upstream KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds (2) 15 731d 721d 0/24 auto-closed as invalid on 2021/01/01 01:41
upstream KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds 1 908d 908d 0/24 closed as invalid on 2020/06/18 14:13

Sample crash report:
==================================================================
BUG: KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds

write to 0xffffffff841669b8 of 8 bytes by task 11514 on cpu 0:
 tk_set_xtime kernel/time/timekeeping.c:138 [inline]
 do_settimeofday64+0x404/0x5a0 kernel/time/timekeeping.c:1319
 do_sys_settimeofday64+0x17b/0x1a0 kernel/time/time.c:195
 posix_clock_realtime_set+0x13/0x20 kernel/time/posix-timers.c:185
 __do_sys_clock_settime kernel/time/posix-timers.c:1079 [inline]
 __se_sys_clock_settime kernel/time/posix-timers.c:1067 [inline]
 __x64_sys_clock_settime+0x163/0x190 kernel/time/posix-timers.c:1067
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffffffff841669b8 of 8 bytes by task 11513 on cpu 1:
 ktime_get_real_seconds+0x11/0x20 kernel/time/timekeeping.c:1008
 recently_deleted fs/ext4/ialloc.c:706 [inline]
 find_inode_bit+0x1f9/0x330 fs/ext4/ialloc.c:731
 __ext4_new_inode+0xc9a/0x2fd0 fs/ext4/ialloc.c:1066
 ext4_symlink+0x2cc/0x700 fs/ext4/namei.c:3293
 vfs_symlink+0x23f/0x350 fs/namei.c:4250
 do_symlinkat+0x104/0x380 fs/namei.c:4279
 __do_sys_symlink fs/namei.c:4301 [inline]
 __se_sys_symlink fs/namei.c:4299 [inline]
 __x64_sys_symlink+0x52/0x60 fs/namei.c:4299
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000061679e16 -> 0x0000000077359400

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 11513 Comm: syz-executor.2 Not tainted 5.15.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (34):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/10/14 03:04 upstream 348949d9a444 5462d470 .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/10/13 11:50 upstream f4d0cc426f77 9d56e7dd .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/10/12 08:55 upstream fa5878760579 838e7e2c .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/10/02 10:11 upstream 53d5fc89d66a db0f5787 .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/09/21 13:32 upstream d9fb678414c0 169724fe .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/09/11 10:39 upstream 926de8c4326c 3ce60af8 .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/09/08 12:37 upstream ac08b1c68d1b e2776ee4 .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/08/22 07:25 upstream 9ff50bf2f2ff b599f2fc .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/08/20 02:34 upstream f87d64319e6f b599f2fc .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/08/16 00:45 upstream ecf93431963a 2489ab88 .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/08/11 19:33 upstream 761c6d7ec820 6972b106 .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/08/09 03:44 upstream 66745863ecde 6972b106 .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/08/05 16:42 upstream 251a1524293d d2d6e680 .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/08/02 07:15 upstream d4affd6b6e81 6c236867 .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/07/31 14:55 upstream c7d102232649 6c236867 .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/07/27 13:52 upstream ff1176468d36 fd511809 .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/07/24 22:06 upstream f0fddcec6b62 4d1b57d4 .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/07/17 11:54 upstream d980cc0620ae f115ae98 .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/07/08 07:57 upstream 3dbdb38e2869 1aade754 .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/06/29 22:53 upstream c54b245d0118 a4fccb01 .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/06/13 15:16 upstream 8ecfa36cd4db 1ba81399 .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/05/12 07:09 upstream 88b06399c9c7 86294427 .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/05/11 02:21 upstream 1140ab592e2e ca873091 .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/05/04 19:08 upstream 5e321ded302d 06c27ff5 .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/04/28 06:15 upstream e359bce39d90 77e2b668 .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/04/25 09:56 upstream 2a1d7946fa53 36c88236 .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/04/19 22:14 upstream bf05bf16c76b 4285c989 .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/04/19 12:48 upstream bf05bf16c76b 50f523d7 .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/04/17 07:55 upstream 9cdbf6467424 7e2b734b .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/04/16 17:25 upstream 7e25f40eab52 7e2b734b .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/04/12 21:38 upstream d434405aaab7 6a81331a .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/04/11 11:06 upstream 52e44129fba5 6a81331a .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/04/08 12:32 upstream 454859c552da 6a81331a .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
ci2-upstream-kcsan-gce 2021/03/29 22:21 upstream 1e43c377a79f 6a81331a .config log report info KCSAN: data-race in do_settimeofday64 / ktime_get_real_seconds
* Struck through repros no longer work on HEAD.