syzbot


KCSAN: data-race in block_write_full_page / truncate_setsize (2)

Status: auto-obsoleted due to no activity on 2023/06/19 22:52
Subsystems: exfat
[Documentation on labels]
First crash: 357d, last: 357d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in block_write_full_page / truncate_setsize exfat 1 1575d 1575d 0/26 auto-closed as invalid on 2020/03/24 10:39

Sample crash report:
==================================================================
BUG: KCSAN: data-race in block_write_full_page / truncate_setsize

read-write to 0xffff888109fe4d68 of 8 bytes by task 12443 on cpu 0:
 i_size_write include/linux/fs.h:905 [inline]
 truncate_setsize+0x21/0xb0 mm/truncate.c:766
 fat_setattr+0x71f/0x840 fs/fat/file.c:550
 notify_change+0x8c3/0x930 fs/attr.c:483
 do_truncate+0x116/0x150 fs/open.c:66
 handle_truncate fs/namei.c:3295 [inline]
 do_open fs/namei.c:3640 [inline]
 path_openat+0x1984/0x1d00 fs/namei.c:3791
 do_filp_open+0xf6/0x200 fs/namei.c:3818
 do_sys_openat2+0xb5/0x2a0 fs/open.c:1356
 do_sys_open fs/open.c:1372 [inline]
 __do_sys_openat fs/open.c:1388 [inline]
 __se_sys_openat fs/open.c:1383 [inline]
 __x64_sys_openat+0xf3/0x120 fs/open.c:1383
 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 0xffff888109fe4d68 of 8 bytes by task 12438 on cpu 1:
 i_size_read include/linux/fs.h:883 [inline]
 block_write_full_page+0x46/0x200 fs/buffer.c:2681
 __mpage_writepage+0x761/0xdb0 fs/mpage.c:652
 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]
 file_write_and_wait_range+0xfa/0x190 mm/filemap.c:781
 __generic_file_fsync+0x4c/0x140 fs/libfs.c:1127
 fat_file_fsync+0x4c/0x100 fs/fat/file.c:191
 vfs_fsync_range+0x10b/0x120 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2469 [inline]
 generic_file_write_iter+0x191/0x1c0 mm/filemap.c:4087
 call_write_iter include/linux/fs.h:1868 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x47b/0x780 fs/read_write.c:584
 ksys_write+0xeb/0x1a0 fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __x64_sys_write+0x42/0x50 fs/read_write.c:646
 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: 0x0000000000005000 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 12438 Comm: syz-executor.2 Not tainted 6.4.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/15 22:46 upstream f1fcbaa18b28 c4d362e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in block_write_full_page / truncate_setsize
* Struck through repros no longer work on HEAD.