syzbot


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

Status: auto-closed as invalid on 2022/03/15 02:24
Subsystems: ext4
[Documentation on labels]
First crash: 806d, last: 806d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in move_expired_inodes / vfs_fsync_range ext4 3 1179d 1212d 0/26 auto-closed as invalid on 2021/03/06 22:37

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

write to 0xffff8881354fec10 of 8 bytes by task 3309 on cpu 1:
 move_expired_inodes+0x1ca/0x4a0 fs/fs-writeback.c:1408
 queue_io+0xe1/0x2b0 fs/fs-writeback.c:1455
 wb_writeback+0x243/0x650 fs/fs-writeback.c:2062
 wb_do_writeback+0x101/0x560 fs/fs-writeback.c:2207
 wb_workfn+0xc8/0x440 fs/fs-writeback.c:2248
 process_one_work+0x3f6/0x960 kernel/workqueue.c:2307
 worker_thread+0x616/0xa70 kernel/workqueue.c:2454
 kthread+0x1bf/0x1e0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30

read to 0xffff8881354fec10 of 8 bytes by task 29392 on cpu 0:
 vfs_fsync_range+0x98/0x120 fs/sync.c:186
 generic_write_sync include/linux/fs.h:2884 [inline]
 ext4_buffered_write_iter+0x243/0x290 fs/ext4/file.c:275
 ext4_file_write_iter+0x227/0xda0
 call_write_iter include/linux/fs.h:2074 [inline]
 do_iter_readv_writev+0x2de/0x380 fs/read_write.c:725
 do_iter_write+0x192/0x5c0 fs/read_write.c:851
 vfs_iter_write+0x4c/0x70 fs/read_write.c:892
 iter_file_splice_write+0x43a/0x790 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/0x650 fs/splice.c:891
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x675/0xc40 fs/read_write.c:1245
 __do_sys_sendfile64 fs/read_write.c:1304 [inline]
 __se_sys_sendfile64 fs/read_write.c:1296 [inline]
 __x64_sys_sendfile64+0xb9/0x140 fs/read_write.c:1296
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000000007 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 29392 Comm: syz-executor.0 Not tainted 5.17.0-rc3-syzkaller-00013-g2ade8eef993c-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/02/08 02:24 upstream 2ade8eef993c a7dab638 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in move_expired_inodes / vfs_fsync_range
* Struck through repros no longer work on HEAD.