syzbot


KCSAN: data-race in vfs_fsync_range / writeback_sb_inodes

Status: auto-closed as invalid on 2020/05/04 19:15
Subsystems: ext4
[Documentation on labels]
First crash: 1579d, last: 1521d

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

write to 0xffff888128e81b70 of 8 bytes by task 992 on cpu 1:
 writeback_sb_inodes+0x38d/0xa50 fs/fs-writeback.c:1705
 __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+0x6a6/0x9b0 fs/fs-writeback.c:2078
 process_one_work+0x413/0x8f0 kernel/workqueue.c:2264
 worker_thread+0xa0/0x800 kernel/workqueue.c:2410
 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

read to 0xffff888128e81b70 of 8 bytes by task 18214 on cpu 0:
 vfs_fsync_range+0xdb/0x150 fs/sync.c:195
 generic_write_sync include/linux/fs.h:2867 [inline]
 ext4_buffered_write_iter+0x222/0x290 fs/ext4/file.c:277
 ext4_file_write_iter+0xfa/0xd70 fs/ext4/file.c:642
 call_write_iter include/linux/fs.h:1901 [inline]
 do_iter_readv_writev+0x487/0x5b0 fs/read_write.c:693
 do_iter_write fs/read_write.c:998 [inline]
 do_iter_write+0x13b/0x3c0 fs/read_write.c:979
 vfs_iter_write+0x5c/0x80 fs/read_write.c:1039
 iter_file_splice_write+0x536/0x850 fs/splice.c:760
 do_splice_from fs/splice.c:863 [inline]
 direct_splice_actor+0xa0/0xc0 fs/splice.c:1037
 splice_direct_to_actor+0x22b/0x540 fs/splice.c:992
 do_splice_direct+0x161/0x1e0 fs/splice.c:1080
 do_sendfile+0x384/0x7f0 fs/read_write.c:1520
 __do_sys_sendfile64 fs/read_write.c:1575 [inline]
 __se_sys_sendfile64 fs/read_write.c:1567 [inline]
 __x64_sys_sendfile64+0xbe/0x140 fs/read_write.c:1567
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/24 19:05 https://github.com/google/ktsan.git kcsan 766d004d1b85 1253d6f0 .config console log report ci2-upstream-kcsan-gce
2019/12/28 19:20 https://github.com/google/ktsan.git kcsan 245a43005292 af6b8ef8 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.