syzbot


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

Status: auto-closed as invalid on 2020/12/21 11:42
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+738021518a55e3fd2572@syzkaller.appspotmail.com
First crash: 1552d, last: 1474d
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 1610d 1610d 0/28 closed as invalid on 2020/06/18 14:13
upstream KCSAN: data-race in iput / writeback_sb_inodes (3) fs 1 1591d 1591d 0/28 auto-closed as invalid on 2020/08/11 19:26
upstream KCSAN: data-race in iput / writeback_sb_inodes (7) fs 1 1177d 1177d 0/28 auto-closed as invalid on 2021/09/29 17:35
upstream KCSAN: data-race in iput / writeback_sb_inodes (6) fs 2 1248d 1256d 0/28 auto-closed as invalid on 2021/07/20 06:50
upstream KCSAN: data-race in iput / writeback_sb_inodes (8) fs 1 951d 951d 0/28 auto-closed as invalid on 2022/05/13 10:29
upstream KCSAN: data-race in iput / writeback_sb_inodes fs 1 1711d 1711d 0/28 auto-closed as invalid on 2020/05/18 05:32
upstream KCSAN: data-race in iput / writeback_sb_inodes (11) fs 1 254d 254d 0/28 auto-obsoleted due to no activity on 2024/04/09 08:02
upstream KCSAN: data-race in iput / writeback_sb_inodes (5) fs 4 1386d 1410d 0/28 auto-closed as invalid on 2021/03/04 09:19
upstream KCSAN: data-race in iput / writeback_sb_inodes (9) fs 2 833d 848d 0/28 auto-closed as invalid on 2022/09/08 05:08
upstream KCSAN: data-race in iput / writeback_sb_inodes (10) fs 1 568d 568d 0/28 auto-obsoleted due to no activity on 2023/05/31 14:58

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

read-write to 0xffff88810d5d3bd8 of 8 bytes by task 26 on cpu 0:
 inode_sync_complete fs/fs-writeback.c:1210 [inline]
 writeback_sb_inodes+0xb29/0x1020 fs/fs-writeback.c:1749
 wb_writeback+0x27d/0x660 fs/fs-writeback.c:1894
 wb_do_writeback+0x101/0x5d0 fs/fs-writeback.c:2039
 wb_workfn+0xb8/0x410 fs/fs-writeback.c:2080
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2272
 worker_thread+0x635/0xb90 kernel/workqueue.c:2418
 kthread+0x1fa/0x220 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

read to 0xffff88810d5d3bd8 of 8 bytes by task 8457 on cpu 1:
 iput+0x2e/0x510 fs/inode.c:1670
 do_unlinkat+0x2c9/0x4d0 fs/namei.c:3903
 __do_sys_unlink fs/namei.c:3943 [inline]
 __se_sys_unlink fs/namei.c:3941 [inline]
 __x64_sys_unlink+0x2c/0x30 fs/namei.c:3941
 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: 1 PID: 8457 Comm: syz-executor.3 Not tainted 5.10.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/01 20:17 upstream 31f020064f9d 8bc4594f .config console log report info ci2-upstream-kcsan-gce
2020/09/30 14:24 upstream 02de58b24d2e 8516f6d3 .config console log report info ci2-upstream-kcsan-gce
2020/09/18 02:04 upstream 4cbffc461ec9 8247808b .config console log report info ci2-upstream-kcsan-gce
2020/09/05 21:30 upstream 9322c47b21b9 abf9ba4f .config console log report ci2-upstream-kcsan-gce
2020/09/04 04:52 upstream e28f0104343d abf9ba4f .config console log report ci2-upstream-kcsan-gce
2020/08/18 05:26 upstream 06a4ec1d9dc6 5ce13532 .config console log report ci2-upstream-kcsan-gce
2020/08/15 16:33 upstream 410520d07f5c 5ce13532 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.