syzbot


KCSAN: data-race in __mpage_writepage / generic_write_end (5)

Status: auto-closed as invalid on 2022/06/11 23:17
Subsystems: exfat
[Documentation on labels]
First crash: 888d, last: 888d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __mpage_writepage / generic_write_end exfat 7 1579d 1610d 0/28 closed as invalid on 2020/06/18 14:13
upstream KCSAN: data-race in __mpage_writepage / generic_write_end (8) exfat 1 474d 474d 0/28 auto-obsoleted due to no activity on 2023/07/30 18:33
upstream KCSAN: data-race in __mpage_writepage / generic_write_end (2) exfat 9 1498d 1563d 0/28 auto-closed as invalid on 2020/10/09 21:50
upstream KCSAN: data-race in __mpage_writepage / generic_write_end (7) exfat 1 515d 515d 0/28 auto-obsoleted due to no activity on 2023/06/19 15:13
upstream KCSAN: data-race in __mpage_writepage / generic_write_end (6) exfat 4 572d 650d 0/28 auto-obsoleted due to no activity on 2023/04/23 23:08
upstream KCSAN: data-race in __mpage_writepage / generic_write_end (3) exfat 1 1408d 1404d 0/28 auto-closed as invalid on 2021/01/07 12:23
upstream KCSAN: data-race in __mpage_writepage / generic_write_end (9) exfat 47 252d 308d 0/28 auto-obsoleted due to no activity on 2024/03/08 15:44
upstream KCSAN: data-race in __mpage_writepage / generic_write_end (4) exfat 2 944d 979d 0/28 auto-closed as invalid on 2022/04/16 04:47

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

write to 0xffff888122b3e738 of 8 bytes by task 6929 on cpu 1:
 i_size_write include/linux/fs.h:878 [inline]
 generic_write_end+0x98/0x230 fs/buffer.c:2183
 fat_write_end+0x4a/0x150 fs/fat/inode.c:249
 generic_perform_write+0x26a/0x3f0 mm/filemap.c:3798
 __generic_file_write_iter+0xe3/0x280 mm/filemap.c:3915
 generic_file_write_iter+0x75/0x130 mm/filemap.c:3947
 do_iter_readv_writev+0x27b/0x300
 do_iter_write+0x16f/0x5c0 fs/read_write.c:852
 vfs_iter_write+0x4c/0x70 fs/read_write.c:893
 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:936
 splice_direct_to_actor+0x345/0x660 fs/splice.c:891
 do_splice_direct+0xfb/0x180 fs/splice.c:979
 do_sendfile+0x3ad/0x900 fs/read_write.c:1246
 __do_sys_sendfile64 fs/read_write.c:1311 [inline]
 __se_sys_sendfile64 fs/read_write.c:1297 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1297
 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+0x44/0xae

read to 0xffff888122b3e738 of 8 bytes by task 6922 on cpu 0:
 i_size_read include/linux/fs.h:856 [inline]
 __mpage_writepage+0xb8/0x1030 fs/mpage.c:466
 write_cache_pages+0x443/0xa30 mm/page-writeback.c:2243
 mpage_writepages+0x7b/0x100 fs/mpage.c:676
 fat_writepages+0x20/0x30 fs/fat/inode.c:205
 do_writepages+0x1db/0x350 mm/page-writeback.c:2352
 filemap_fdatawrite_wbc+0xd6/0xf0 mm/filemap.c:388
 __filemap_fdatawrite_range mm/filemap.c:421 [inline]
 filemap_write_and_wait_range+0xbf/0x2e0 mm/filemap.c:673
 generic_file_read_iter+0xff/0x320 mm/filemap.c:2793
 call_read_iter include/linux/fs.h:2044 [inline]
 generic_file_splice_read+0x1de/0x2c0 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x2ac/0x660 fs/splice.c:870
 do_splice_direct+0xfb/0x180 fs/splice.c:979
 do_sendfile+0x3ad/0x900 fs/read_write.c:1246
 __do_sys_sendfile64 fs/read_write.c:1311 [inline]
 __se_sys_sendfile64 fs/read_write.c:1297 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1297
 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+0x44/0xae

value changed: 0x0000000000020400 -> 0x0000000000021000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 6922 Comm: syz-executor.2 Not tainted 5.18.0-rc5-syzkaller-00178-g30c8e80f7932-dirty #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
2022/05/07 23:16 upstream 30c8e80f7932 e60b1103 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
* Struck through repros no longer work on HEAD.