syzbot


KCSAN: data-race in __writeback_single_inode / iput

Status: auto-closed as invalid on 2020/02/25 20:08
Subsystems: fs
[Documentation on labels]
First crash: 1584d, last: 1584d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __writeback_single_inode / iput (2) fs 2 1447d 1504d 0/26 auto-closed as invalid on 2020/06/18 13:23
upstream KCSAN: data-race in __writeback_single_inode / iput (3) fs 1 1028d 1028d 0/26 auto-closed as invalid on 2021/07/31 05:30
upstream KCSAN: data-race in __writeback_single_inode / iput (6) ext4 3 168d 131d 0/26 auto-obsoleted due to no activity on 2023/12/24 00:08
upstream KCSAN: data-race in __writeback_single_inode / iput (5) fs 2 586d 593d 0/26 auto-obsoleted due to no activity on 2022/10/16 04:00
upstream KCSAN: data-race in __writeback_single_inode / iput (4) fs 1 934d 934d 0/26 auto-closed as invalid on 2021/11/02 09:27

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

read to 0xffff88821af20570 of 8 bytes by task 24406 on cpu 0:
 iput+0x53/0x4e0 fs/inode.c:1579
 iterate_bdevs+0x219/0x22d fs/block_dev.c:2276
 ksys_sync+0x8c/0xf0 fs/sync.c:116
 __ia32_sys_sync+0x17/0x20 fs/sync.c:124
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff88821af20570 of 8 bytes by task 427 on cpu 1:
 __writeback_single_inode+0x345/0x8e0 fs/fs-writeback.c:1487
 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_start_all fs/fs-writeback.c:2018 [inline]
 wb_do_writeback fs/fs-writeback.c:2044 [inline]
 wb_workfn+0x748/0x970 fs/fs-writeback.c:2078
 process_one_work+0x3d4/0x890 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

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 427 Comm: kworker/u4:3 Not tainted 5.5.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: writeback wb_workfn (flush-8:0)
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/12/17 20:06 https://github.com/google/ktsan.git kcsan 245a43005292 1af3875f .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.