syzbot


KCSAN: data-race in atime_needs_update / file_remove_privs (2)

Status: auto-closed as invalid on 2020/10/25 20:28
Subsystems: fs
[Documentation on labels]
First crash: 1311d, last: 1311d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in atime_needs_update / file_remove_privs (4) ext4 1 1088d 1088d 0/26 auto-closed as invalid on 2021/06/05 14:49
upstream KCSAN: data-race in atime_needs_update / file_remove_privs fs 3 1359d 1380d 0/26 auto-closed as invalid on 2020/09/07 22:38
upstream KCSAN: data-race in atime_needs_update / file_remove_privs (3) fs 1 1186d 1186d 0/26 auto-closed as invalid on 2021/02/28 05:27

Sample crash report:
==================================================================
BUG: KCSAN: data-race in atime_needs_update / file_remove_privs

write to 0xffff888120c046dc of 4 bytes by task 4913 on cpu 0:
 inode_has_no_xattr include/linux/fs.h:3456 [inline]
 file_remove_privs+0x2e0/0x370 fs/inode.c:1943
 __generic_file_write_iter+0xda/0x330 mm/filemap.c:3576
 generic_file_write_iter+0x2f3/0x3e0 mm/filemap.c:3662
 call_write_iter include/linux/fs.h:1882 [inline]
 do_iter_readv_writev+0x32e/0x3d0 fs/read_write.c:713
 do_iter_write+0x112/0x4b0 fs/read_write.c:1018
 vfs_writev fs/read_write.c:1091 [inline]
 do_pwritev+0x1a4/0x2e0 fs/read_write.c:1188
 __do_sys_pwritev fs/read_write.c:1235 [inline]
 __se_sys_pwritev fs/read_write.c:1230 [inline]
 __x64_sys_pwritev+0x54/0x60 fs/read_write.c:1230
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888120c046dc of 4 bytes by task 4914 on cpu 1:
 atime_needs_update+0x29/0x370 fs/inode.c:1792
 touch_atime+0x53/0x1a0 fs/inode.c:1828
 file_accessed include/linux/fs.h:2206 [inline]
 splice_direct_to_actor+0x580/0x660 fs/splice.c:989
 do_splice_direct+0xf2/0x170 fs/splice.c:1059
 do_sendfile+0x56a/0xba0 fs/read_write.c:1540
 __do_sys_sendfile64 fs/read_write.c:1601 [inline]
 __se_sys_sendfile64 fs/read_write.c:1587 [inline]
 __x64_sys_sendfile64+0xf2/0x130 fs/read_write.c:1587
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 4914 Comm: syz-executor.4 Not tainted 5.9.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/09/20 20:28 upstream bdcf11de8f77 9564d2e9 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.