syzbot


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

Status: auto-obsoleted due to no activity on 2023/07/30 18:33
Subsystems: exfat
[Documentation on labels]
First crash: 295d, last: 295d
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 1400d 1431d 0/26 closed as invalid on 2020/06/18 14:13
upstream KCSAN: data-race in __mpage_writepage / generic_write_end (2) exfat 9 1319d 1384d 0/26 auto-closed as invalid on 2020/10/09 21:50
upstream KCSAN: data-race in __mpage_writepage / generic_write_end (5) exfat 1 709d 709d 0/26 auto-closed as invalid on 2022/06/11 23:17
upstream KCSAN: data-race in __mpage_writepage / generic_write_end (7) exfat 1 336d 336d 0/26 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 393d 471d 0/26 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 1229d 1225d 0/26 auto-closed as invalid on 2021/01/07 12:23
upstream KCSAN: data-race in __mpage_writepage / generic_write_end (9) exfat 47 73d 129d 0/26 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 766d 800d 0/26 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 0xffff888109ee10e8 of 8 bytes by task 12850 on cpu 0:
 i_size_write include/linux/fs.h:905 [inline]
 generic_write_end+0xb4/0x360 fs/buffer.c:2241
 fat_write_end+0x4e/0x160 fs/fat/inode.c:244
 cont_expand_zero fs/buffer.c:2466 [inline]
 cont_write_begin+0x2d4/0x6f0 fs/buffer.c:2524
 fat_write_begin+0x61/0xf0 fs/fat/inode.c:230
 generic_cont_expand_simple+0xad/0x140 fs/buffer.c:2425
 fat_cont_expand+0x3a/0x160 fs/fat/file.c:223
 fat_fallocate+0x182/0x1d0 fs/fat/file.c:301
 vfs_fallocate+0x369/0x3d0 fs/open.c:324
 ksys_fallocate fs/open.c:347 [inline]
 __do_sys_fallocate fs/open.c:355 [inline]
 __se_sys_fallocate fs/open.c:353 [inline]
 __x64_sys_fallocate+0x79/0xc0 fs/open.c:353
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888109ee10e8 of 8 bytes by task 12852 on cpu 1:
 i_size_read include/linux/fs.h:883 [inline]
 __mpage_writepage+0xc3/0xdb0 fs/mpage.c:489
 write_cache_pages+0x3a1/0x760 mm/page-writeback.c:2473
 mpage_writepages+0x72/0xe0 fs/mpage.c:679
 fat_writepages+0x24/0x30 fs/fat/inode.c:200
 do_writepages+0x1c5/0x340 mm/page-writeback.c:2551
 filemap_fdatawrite_wbc+0xdb/0xf0 mm/filemap.c:390
 __filemap_fdatawrite_range mm/filemap.c:423 [inline]
 filemap_write_and_wait_range+0xe6/0x220 mm/filemap.c:678
 generic_file_read_iter+0x103/0x320 mm/filemap.c:2811
 call_read_iter include/linux/fs.h:1862 [inline]
 aio_read+0x1df/0x2f0 fs/aio.c:1564
 io_submit_one+0xb74/0x12c0 fs/aio.c:2023
 __do_sys_io_submit fs/aio.c:2082 [inline]
 __se_sys_io_submit+0xf5/0x280 fs/aio.c:2052
 __x64_sys_io_submit+0x43/0x50 fs/aio.c:2052
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000000241000 -> 0x0000000000242000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 12852 Comm: syz-executor.5 Not tainted 6.4.0-rc7-syzkaller-00234-g547cc9be86f4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/25 18:24 upstream 547cc9be86f4 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mpage_writepage / generic_write_end
* Struck through repros no longer work on HEAD.