syzbot


KCSAN: data-race in __writeback_single_inode / vfs_fsync_range (2)

Status: auto-closed as invalid on 2020/02/12 06:26
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 990d, last: 989d
similar bugs (6):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __writeback_single_inode / vfs_fsync_range 2 1013d 1015d 0/23 closed as invalid on 2019/11/19 14:44
upstream KCSAN: data-race in __writeback_single_inode / vfs_fsync_range (7) 1 163d 163d 0/23 auto-closed as invalid on 2022/04/13 08:14
upstream KCSAN: data-race in __writeback_single_inode / vfs_fsync_range (6) 1 479d 479d 0/23 auto-closed as invalid on 2021/06/01 07:24
upstream KCSAN: data-race in __writeback_single_inode / vfs_fsync_range (5) 2 557d 573d 0/23 auto-closed as invalid on 2021/03/15 14:17
upstream KCSAN: data-race in __writeback_single_inode / vfs_fsync_range (3) 2 751d 778d 0/23 auto-closed as invalid on 2020/09/02 05:07
upstream KCSAN: data-race in __writeback_single_inode / vfs_fsync_range (4) 1 711d 711d 0/23 auto-closed as invalid on 2020/10/12 03:20

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __writeback_single_inode / vfs_fsync_range

write to 0xffff88812554fac0 of 8 bytes by task 8361 on cpu 0:
 __writeback_single_inode+0x328/0x8e0 fs/fs-writeback.c:1486
 writeback_sb_inodes+0x4ba/0xa50 fs/fs-writeback.c:1716
 __writeback_inodes_wb+0xe8/0x1b0 fs/fs-writeback.c:1785
 wb_writeback+0x557/0x6a0 fs/fs-writeback.c:1894
 wb_check_background_flush fs/fs-writeback.c:1962 [inline]
 wb_do_writeback fs/fs-writeback.c:2050 [inline]
 wb_workfn+0x696/0x970 fs/fs-writeback.c:2078
 process_one_work+0x3d4/0x890 kernel/workqueue.c:2269
 worker_thread+0xa0/0x800 kernel/workqueue.c:2415
 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

read to 0xffff88812554fac0 of 8 bytes by task 25629 on cpu 1:
 vfs_fsync_range+0xdb/0x150 fs/sync.c:195
 generic_write_sync include/linux/fs.h:2853 [inline]
 ext4_file_write_iter+0x45b/0xa00 fs/ext4/file.c:279
 call_write_iter include/linux/fs.h:1895 [inline]
 do_iter_readv_writev+0x487/0x5b0 fs/read_write.c:693
 do_iter_write fs/read_write.c:970 [inline]
 do_iter_write+0x13b/0x3c0 fs/read_write.c:951
 vfs_iter_write+0x5c/0x80 fs/read_write.c:983
 iter_file_splice_write+0x4c0/0x7f0 fs/splice.c:746
 do_splice_from fs/splice.c:848 [inline]
 direct_splice_actor+0xa0/0xc0 fs/splice.c:1020
 splice_direct_to_actor+0x215/0x510 fs/splice.c:975
 do_splice_direct+0x161/0x1e0 fs/splice.c:1063
 do_sendfile+0x384/0x7f0 fs/read_write.c:1464
 __do_sys_sendfile64 fs/read_write.c:1519 [inline]
 __se_sys_sendfile64 fs/read_write.c:1511 [inline]
 __x64_sys_sendfile64+0xbe/0x140 fs/read_write.c:1511
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 25629 Comm: syz-executor.0 Not tainted 5.4.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2019/12/04 06:24 https://github.com/google/ktsan.git kcsan ef798c30ba4e 0ecb9746 .config log report
ci2-upstream-kcsan-gce 2019/12/02 20:33 https://github.com/google/ktsan.git kcsan ef798c30ba4e ab342da3 .config log report