syzbot


KCSAN: data-race in iput / move_expired_inodes

Status: auto-closed as invalid on 2020/12/27 22:09
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+f498927a394c8b4c3914@syzkaller.appspotmail.com
First crash: 1316d, last: 1243d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in iput / move_expired_inodes (5) fs 1 672d 672d 0/26 auto-closed as invalid on 2022/07/21 10:59
upstream KCSAN: data-race in iput / move_expired_inodes (8) fs 1 287d 287d 0/26 auto-obsoleted due to no activity on 2023/08/10 09:55
upstream KCSAN: data-race in iput / move_expired_inodes (10) fs 1 69d 69d 0/26 auto-obsoleted due to no activity on 2024/03/16 00:02
upstream KCSAN: data-race in iput / move_expired_inodes (7) fs 1 418d 418d 0/26 auto-obsoleted due to no activity on 2023/04/08 21:12
upstream KCSAN: data-race in iput / move_expired_inodes (9) fs 2 106d 128d 0/26 auto-obsoleted due to no activity on 2024/02/07 16:43
upstream KCSAN: data-race in iput / move_expired_inodes (3) fs 3 1081d 1126d 0/26 auto-closed as invalid on 2021/06/07 20:37
upstream KCSAN: data-race in iput / move_expired_inodes (4) fs 1 952d 952d 0/26 auto-closed as invalid on 2021/10/15 01:41
upstream KCSAN: data-race in iput / move_expired_inodes (6) fs 1 463d 463d 0/26 auto-obsoleted due to no activity on 2023/02/22 21:07
upstream KCSAN: data-race in iput / move_expired_inodes (2) fs 1 1192d 1192d 0/26 auto-closed as invalid on 2021/02/16 20:27

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

read-write to 0xffff88810d79fb18 of 8 bytes by task 324 on cpu 0:
 move_expired_inodes+0x1bf/0x490 fs/fs-writeback.c:1257
 queue_io+0xe1/0x2b0 fs/fs-writeback.c:1304
 wb_writeback+0x255/0x660 fs/fs-writeback.c:1892
 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 0xffff88810d79fb18 of 8 bytes by task 8459 on cpu 1:
 iput+0x2e/0x510 fs/inode.c:1670
 dentry_unlink_inode+0x1f3/0x210 fs/dcache.c:374
 d_delete+0x70/0xa0 fs/dcache.c:2470
 vfs_unlink+0x38f/0x3b0 fs/namei.c:3847
 do_unlinkat+0x28a/0x4d0 fs/namei.c:3897
 __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: 8459 Comm: syz-executor.2 Not tainted 5.10.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/22 22:08 upstream 68d3fa235fd8 0d27f508 .config console log report info ci2-upstream-kcsan-gce
2020/11/10 21:23 upstream 407ab579637c cca87986 .config console log report info ci2-upstream-kcsan-gce
2020/10/24 15:52 upstream f11901ed723d a1839e81 .config console log report info ci2-upstream-kcsan-gce
2020/10/03 23:40 upstream 22fbc037cd32 1a3f9408 .config console log report info ci2-upstream-kcsan-gce
2020/09/10 11:01 upstream 7fe10096c150 ac7ca78e .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.