syzbot


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

Status: auto-closed as invalid on 2021/02/28 05:27
Subsystems: fs
[Documentation on labels]
First crash: 1180d, last: 1180d
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 1083d 1083d 0/26 auto-closed as invalid on 2021/06/05 14:49
upstream KCSAN: data-race in atime_needs_update / file_remove_privs (2) fs 1 1306d 1306d 0/26 auto-closed as invalid on 2020/10/25 20:28
upstream KCSAN: data-race in atime_needs_update / file_remove_privs fs 3 1354d 1375d 0/26 auto-closed as invalid on 2020/09/07 22:38

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

read-write to 0xffff88810cdc8c3c of 4 bytes by task 16441 on cpu 1:
 inode_has_no_xattr include/linux/fs.h:3391 [inline]
 file_remove_privs+0x2ce/0x370 fs/inode.c:1944
 __generic_file_write_iter+0xda/0x330 mm/filemap.c:3483
 generic_file_write_iter+0x75/0x130 mm/filemap.c:3569
 call_write_iter include/linux/fs.h:1901 [inline]
 new_sync_write fs/read_write.c:518 [inline]
 vfs_write+0x6d4/0x7c0 fs/read_write.c:605
 ksys_write+0xce/0x180 fs/read_write.c:658
 __do_sys_write fs/read_write.c:670 [inline]
 __se_sys_write fs/read_write.c:667 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:667
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88810cdc8c3c of 4 bytes by task 16462 on cpu 0:
 atime_needs_update+0x29/0x370 fs/inode.c:1793
 touch_atime+0x55/0x2d0 fs/inode.c:1829
 file_accessed include/linux/fs.h:2218 [inline]
 splice_direct_to_actor+0x562/0x650 fs/splice.c:906
 do_splice_direct+0xf5/0x170 fs/splice.c:976
 do_sendfile+0x5db/0xca0 fs/read_write.c:1257
 __do_sys_sendfile64 fs/read_write.c:1312 [inline]
 __se_sys_sendfile64 fs/read_write.c:1304 [inline]
 __x64_sys_sendfile64+0xa9/0x130 fs/read_write.c:1304
 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: 0 PID: 16462 Comm: syz-executor.1 Not tainted 5.11.0-rc4-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
2021/01/24 05:21 upstream e1ae4b0be158 52e37319 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in atime_needs_update / file_remove_privs
* Struck through repros no longer work on HEAD.