syzbot


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

Status: auto-closed as invalid on 2021/11/02 09:27
Subsystems: fs
[Documentation on labels]
First crash: 1160d, last: 1160d
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 1674d 1730d 0/28 auto-closed as invalid on 2020/06/18 13:23
upstream KCSAN: data-race in __writeback_single_inode / iput (3) fs 1 1255d 1255d 0/28 auto-closed as invalid on 2021/07/31 05:30
upstream KCSAN: data-race in __writeback_single_inode / iput (6) ext4 3 395d 358d 0/28 auto-obsoleted due to no activity on 2023/12/24 00:08
upstream KCSAN: data-race in __writeback_single_inode / iput fs 1 1811d 1811d 0/28 auto-closed as invalid on 2020/02/25 20:08
upstream KCSAN: data-race in __writeback_single_inode / iput (5) fs 2 813d 820d 0/28 auto-obsoleted due to no activity on 2022/10/16 04:00

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

write to 0xffff88813bb3b330 of 8 bytes by task 12808 on cpu 0:
 __writeback_single_inode+0x1e9/0x440 fs/fs-writeback.c:1652
 writeback_sb_inodes+0x563/0xd30 fs/fs-writeback.c:1881
 wb_writeback+0x27d/0x6d0 fs/fs-writeback.c:2053
 wb_do_writeback+0x101/0x530 fs/fs-writeback.c:2196
 wb_workfn+0xc8/0x540 fs/fs-writeback.c:2237
 process_one_work+0x402/0x910 kernel/workqueue.c:2297
 worker_thread+0x636/0xae0 kernel/workqueue.c:2444
 kthread+0x262/0x280 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30

read to 0xffff88813bb3b330 of 8 bytes by task 27317 on cpu 1:
 iput+0x2e/0x580 fs/inode.c:1680
 wait_sb_inodes fs/fs-writeback.c:2583 [inline]
 sync_inodes_sb+0x413/0x4e0 fs/fs-writeback.c:2701
 __sync_filesystem fs/sync.c:34 [inline]
 sync_filesystem+0xe4/0x160 fs/sync.c:67
 __do_sys_syncfs fs/sync.c:172 [inline]
 __se_sys_syncfs+0x5f/0xe0 fs/sync.c:161
 __x64_sys_syncfs+0x1b/0x20 fs/sync.c:161
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000020087 -> 0x0000000000000004

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 27317 Comm: syz-executor.5 Not tainted 5.15.0-rc3-syzkaller #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
2021/09/28 09:24 upstream 0513e464f900 78494d16 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __writeback_single_inode / iput
* Struck through repros no longer work on HEAD.