syzbot


KCSAN: data-race in dnotify_flush / setattr_copy

Status: auto-closed as invalid on 2020/08/22 18:57
Subsystems: fs
[Documentation on labels]
First crash: 1348d, last: 1348d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in dnotify_flush / setattr_copy (2) fs 1 975d 975d 0/26 auto-closed as invalid on 2021/09/03 03:38

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

write to 0xffff888120d7e170 of 2 bytes by task 19 on cpu 0:
 setattr_copy+0x19d/0x1b0 fs/attr.c:198
 shmem_setattr+0xc4/0x580 mm/shmem.c:1082
 notify_change+0x7d4/0xa20 fs/attr.c:336
 handle_remove drivers/base/devtmpfs.c:330 [inline]
 handle drivers/base/devtmpfs.c:378 [inline]
 devtmpfsd+0x87c/0x970 drivers/base/devtmpfs.c:413
 kthread+0x20d/0x230 kernel/kthread.c:291
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:293

read to 0xffff888120d7e170 of 2 bytes by task 10260 on cpu 1:
 dnotify_flush+0x2e/0x2f0 fs/notify/dnotify/dnotify.c:151
 filp_close+0xa9/0xf0 fs/open.c:1285
 __close_fd+0x173/0x190 fs/file.c:641
 __do_sys_close fs/open.c:1301 [inline]
 __se_sys_close fs/open.c:1299 [inline]
 __x64_sys_close+0x3b/0x80 fs/open.c:1299
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/07/18 18:56 upstream 6cf7ccba29dc 9c812472 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.