syzbot


KCSAN: data-race in iput / writeback_sb_inodes (5)

Status: auto-closed as invalid on 2021/03/04 09:19
Subsystems: fs
[Documentation on labels]
First crash: 1207d, last: 1183d
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in iput / writeback_sb_inodes (2) fs 1 1408d 1408d 0/26 closed as invalid on 2020/06/18 14:13
upstream KCSAN: data-race in iput / writeback_sb_inodes (3) fs 1 1388d 1388d 0/26 auto-closed as invalid on 2020/08/11 19:26
upstream KCSAN: data-race in iput / writeback_sb_inodes (7) fs 1 974d 974d 0/26 auto-closed as invalid on 2021/09/29 17:35
upstream KCSAN: data-race in iput / writeback_sb_inodes (6) fs 2 1046d 1053d 0/26 auto-closed as invalid on 2021/07/20 06:50
upstream KCSAN: data-race in iput / writeback_sb_inodes (8) fs 1 748d 748d 0/26 auto-closed as invalid on 2022/05/13 10:29
upstream KCSAN: data-race in iput / writeback_sb_inodes fs 1 1509d 1509d 0/26 auto-closed as invalid on 2020/05/18 05:32
upstream KCSAN: data-race in iput / writeback_sb_inodes (11) fs 1 51d 51d 0/26 auto-obsoleted due to no activity on 2024/04/09 08:02
upstream KCSAN: data-race in iput / writeback_sb_inodes (4) fs 7 1271d 1235d 0/26 auto-closed as invalid on 2020/12/21 11:42
upstream KCSAN: data-race in iput / writeback_sb_inodes (9) fs 2 631d 645d 0/26 auto-closed as invalid on 2022/09/08 05:08
upstream KCSAN: data-race in iput / writeback_sb_inodes (10) fs 1 365d 365d 0/26 auto-obsoleted due to no activity on 2023/05/31 14:58

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

write to 0xffff888009a7c1d8 of 8 bytes by task 370 on cpu 1:
 writeback_sb_inodes+0x494/0x1020 fs/fs-writeback.c:1712
 wb_writeback+0x27d/0x660 fs/fs-writeback.c:1896
 wb_do_writeback+0x101/0x5d0 fs/fs-writeback.c:2041
 wb_workfn+0xb8/0x410 fs/fs-writeback.c:2082
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275
 worker_thread+0x64a/0xaa0 kernel/workqueue.c:2421
 kthread+0x1fd/0x220 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

read to 0xffff888009a7c1d8 of 8 bytes by task 8458 on cpu 0:
 iput+0x2e/0x510 fs/inode.c:1669
 dentry_unlink_inode+0x1f3/0x210 fs/dcache.c:374
 d_delete+0x70/0xa0 fs/dcache.c:2477
 vfs_unlink+0x38f/0x3b0 fs/namei.c:3849
 do_unlinkat+0x28a/0x4d0 fs/namei.c:3899
 __do_sys_unlink fs/namei.c:3945 [inline]
 __se_sys_unlink fs/namei.c:3943 [inline]
 __x64_sys_unlink+0x2c/0x30 fs/namei.c:3943
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 8458 Comm: syz-executor.4 Not tainted 5.11.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/28 09:14 upstream 76c057c84d28 eefc07f2 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in iput / writeback_sb_inodes
2021/01/19 05:51 upstream 1e2a199f6ccd 63631df1 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in iput / writeback_sb_inodes
2021/01/04 22:34 upstream 36bbbd0e234d 2a28ff1f .config console log report info ci2-upstream-kcsan-gce
2021/01/04 20:03 upstream 36bbbd0e234d 79264ae3 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.