syzbot


KCSAN: data-race in evict / writeback_sb_inodes (3)

Status: auto-closed as invalid on 2021/04/17 10:46
Subsystems: fs
[Documentation on labels]
First crash: 1139d, last: 1139d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in evict / writeback_sb_inodes (4) fs 1 1066d 1066d 0/26 auto-closed as invalid on 2021/06/29 12:32
upstream KCSAN: data-race in evict / writeback_sb_inodes (2) fs 1 1219d 1219d 0/26 auto-closed as invalid on 2021/01/27 13:06
upstream KCSAN: data-race in evict / writeback_sb_inodes fs 3 1306d 1334d 0/26 auto-closed as invalid on 2020/11/01 12:53

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

write to 0xffff88810744fb58 of 8 bytes by task 8 on cpu 0:
 inode_sync_complete fs/fs-writeback.c:1210 [inline]
 writeback_sb_inodes+0xb27/0xff0 fs/fs-writeback.c:1760
 wb_writeback+0x27d/0x660 fs/fs-writeback.c:1905
 wb_do_writeback+0x101/0x5d0 fs/fs-writeback.c:2050
 wb_workfn+0xc8/0x430 fs/fs-writeback.c:2091
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275
 worker_thread+0x616/0xa70 kernel/workqueue.c:2421
 kthread+0x20b/0x230 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

read to 0xffff88810744fb58 of 8 bytes by task 8400 on cpu 1:
 evict+0x42/0x410 fs/inode.c:561
 iput_final fs/inode.c:1654 [inline]
 iput+0x3fd/0x520 fs/inode.c:1680
 do_unlinkat+0x2e9/0x4f0 fs/namei.c:4103
 __do_sys_unlink fs/namei.c:4143 [inline]
 __se_sys_unlink fs/namei.c:4141 [inline]
 __x64_sys_unlink+0x2c/0x30 fs/namei.c:4141
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 8400 Comm: syz-executor.2 Not tainted 5.12.0-rc2-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/03/13 10:45 upstream f296bfd5cd04 4a003785 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in evict / writeback_sb_inodes
* Struck through repros no longer work on HEAD.