syzbot


KCSAN: data-race in dnotify_flush / pid_update_inode

Status: auto-closed as invalid on 2020/04/16 13:58
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+5cf7401a38c3b93ddcef@syzkaller.appspotmail.com
First crash: 1665d, last: 1541d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in dnotify_flush / pid_update_inode

read to 0xffff8881256b0588 of 2 bytes by task 14231 on cpu 0:
 dnotify_flush+0x3a/0x210 fs/notify/dnotify/dnotify.c:151
 filp_close+0xd5/0x120 fs/open.c:1177
 __close_fd+0xef/0x140 fs/file.c:636
 __do_sys_close fs/open.c:1193 [inline]
 __se_sys_close fs/open.c:1191 [inline]
 __x64_sys_close+0x49/0xb0 fs/open.c:1191
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff8881256b0588 of 2 bytes by task 14229 on cpu 1:
 pid_update_inode+0x51/0x70 fs/proc/base.c:1820
 pid_revalidate+0x91/0x120 fs/proc/base.c:1841
 d_revalidate fs/namei.c:758 [inline]
 d_revalidate fs/namei.c:755 [inline]
 lookup_fast+0x612/0x6c0 fs/namei.c:1618
 do_last fs/namei.c:3291 [inline]
 path_openat+0x2ac/0x3580 fs/namei.c:3537
 do_filp_open+0x11e/0x1b0 fs/namei.c:3567
 do_sys_open+0x3b3/0x4f0 fs/open.c:1097
 __do_sys_open fs/open.c:1115 [inline]
 __se_sys_open fs/open.c:1110 [inline]
 __x64_sys_open+0x55/0x70 fs/open.c:1110
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14229 Comm: ps Not tainted 5.5.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/06 13:57 https://github.com/google/ktsan.git kcsan 245a43005292 5be3a391 .config console log report ci2-upstream-kcsan-gce
2020/01/05 12:40 https://github.com/google/ktsan.git kcsan 245a43005292 d646e21f .config console log report ci2-upstream-kcsan-gce
2019/12/20 17:00 https://github.com/google/ktsan.git kcsan 245a43005292 34011c05 .config console log report ci2-upstream-kcsan-gce
2019/11/09 22:52 https://github.com/google/ktsan.git kcsan 94c006602e13 dc438b91 .config console log report ci2-upstream-kcsan-gce
2019/10/05 02:26 https://github.com/google/ktsan.git kcsan c1c7521f03c7 f3f7d9c8 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.