syzbot


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

Status: auto-closed as invalid on 2020/06/18 13:23
Subsystems: fs
[Documentation on labels]
First crash: 1525d, last: 1468d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __writeback_single_inode / iput (3) fs 1 1049d 1049d 0/26 auto-closed as invalid on 2021/07/31 05:30
upstream KCSAN: data-race in __writeback_single_inode / iput (6) ext4 3 190d 152d 0/26 auto-obsoleted due to no activity on 2023/12/24 00:08
upstream KCSAN: data-race in __writeback_single_inode / iput fs 1 1606d 1606d 0/26 auto-closed as invalid on 2020/02/25 20:08
upstream KCSAN: data-race in __writeback_single_inode / iput (5) fs 2 607d 615d 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 955d 955d 0/26 auto-closed as invalid on 2021/11/02 09:27

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

write to 0xffff8880bb44bc00 of 8 bytes by task 7130 on cpu 1:
 iput_final fs/inode.c:1567 [inline]
 iput+0x2e6/0x4d0 fs/inode.c:1598
 do_unlinkat+0x388/0x550 fs/namei.c:3879
 __do_sys_unlink fs/namei.c:3920 [inline]
 __se_sys_unlink fs/namei.c:3918 [inline]
 __x64_sys_unlink+0x38/0x50 fs/namei.c:3918
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880bb44bc00 of 8 bytes by task 29 on cpu 0:
 __writeback_single_inode+0x60/0x910 fs/fs-writeback.c:1448
 writeback_sb_inodes+0x4c8/0xa10 fs/fs-writeback.c:1716
 wb_writeback+0x1f9/0x6a0 fs/fs-writeback.c:1892
 wb_do_writeback fs/fs-writeback.c:2037 [inline]
 wb_workfn+0x215/0x970 fs/fs-writeback.c:2078
 process_one_work+0x424/0x930 kernel/workqueue.c:2268
 worker_thread+0x9a/0x7e0 kernel/workqueue.c:2414
 kthread+0x203/0x230 kernel/kthread.c:268
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 29 Comm: kworker/u4:2 Not tainted 5.7.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 (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/02 22:42 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 5457883a .config console log report ci2-upstream-kcsan-gce
2020/03/07 10:24 https://github.com/google/ktsan.git kcsan 941e0d917bbf 2e9971bb .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.