syzbot


KCSAN: data-race in __mpage_writepage / generic_file_direct_write

Status: auto-obsoleted due to no activity on 2022/11/03 15:17
Subsystems: exfat
[Documentation on labels]
First crash: 567d, last: 567d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __mpage_writepage / generic_file_direct_write (2) exfat 1 264d 264d 0/26 auto-obsoleted due to no activity on 2023/09/02 16:50
upstream KCSAN: data-race in __mpage_writepage / generic_file_direct_write (3) exfat 1 162d 129d 0/26 auto-obsoleted due to no activity on 2023/12/25 00:08

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __mpage_writepage / generic_file_direct_write

write to 0xffff88812db05ce8 of 8 bytes by task 6964 on cpu 0:
 i_size_write include/linux/fs.h:886 [inline]
 generic_file_direct_write+0x391/0x400 mm/filemap.c:3689
 __generic_file_write_iter+0x11f/0x280 mm/filemap.c:3822
 generic_file_write_iter+0x79/0x1c0 mm/filemap.c:3898
 do_iter_write+0x494/0x750 fs/read_write.c:855
 vfs_iter_write+0x4c/0x70 fs/read_write.c:896
 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:686
 do_splice_from fs/splice.c:764 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:931
 splice_direct_to_actor+0x305/0x620 fs/splice.c:886
 do_splice_direct+0xfb/0x180 fs/splice.c:974
 do_sendfile+0x3bf/0x910 fs/read_write.c:1249
 __do_sys_sendfile64 fs/read_write.c:1317 [inline]
 __se_sys_sendfile64 fs/read_write.c:1303 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1303
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88812db05ce8 of 8 bytes by task 6970 on cpu 1:
 i_size_read include/linux/fs.h:864 [inline]
 __mpage_writepage+0xb8/0xda0 fs/mpage.c:469
 write_cache_pages+0x443/0xa30 mm/page-writeback.c:2359
 mpage_writepages+0x6e/0xe0 fs/mpage.c:664
 fat_writepages+0x20/0x30 fs/fat/inode.c:205
 do_writepages+0x1db/0x350 mm/page-writeback.c:2468
 filemap_fdatawrite_wbc+0xd6/0xf0 mm/filemap.c:388
 __filemap_fdatawrite_range mm/filemap.c:421 [inline]
 file_write_and_wait_range+0xd6/0x170 mm/filemap.c:773
 __generic_file_fsync+0x48/0x140 fs/libfs.c:1115
 fat_file_fsync+0x48/0x100 fs/fat/file.c:191
 vfs_fsync_range+0x107/0x120 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2869 [inline]
 generic_file_write_iter+0x18d/0x1c0 mm/filemap.c:3902
 do_iter_write+0x494/0x750 fs/read_write.c:855
 vfs_iter_write+0x4c/0x70 fs/read_write.c:896
 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:686
 do_splice_from fs/splice.c:764 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:931
 splice_direct_to_actor+0x305/0x620 fs/splice.c:886
 do_splice_direct+0xfb/0x180 fs/splice.c:974
 do_sendfile+0x3bf/0x910 fs/read_write.c:1249
 __do_sys_sendfile64 fs/read_write.c:1317 [inline]
 __se_sys_sendfile64 fs/read_write.c:1303 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1303
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x000000000002e200 -> 0x000000000002e400

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 6970 Comm: syz-executor.2 Not tainted 6.0.0-rc7-syzkaller-00081-gc3e0e1e23c70-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/29 15:11 upstream c3e0e1e23c70 45fd7169 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_file_direct_write
* Struck through repros no longer work on HEAD.