syzbot


KCSAN: data-race in iput / move_expired_inodes (3)

Status: auto-closed as invalid on 2021/06/07 20:37
Subsystems: fs
[Documentation on labels]
First crash: 1155d, last: 1110d
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 702d 702d 0/26 auto-closed as invalid on 2022/07/21 10:59
upstream KCSAN: data-race in iput / move_expired_inodes (8) fs 1 317d 317d 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 98d 98d 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 447d 447d 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 135d 157d 0/26 auto-obsoleted due to no activity on 2024/02/07 16:43
upstream KCSAN: data-race in iput / move_expired_inodes fs 5 1272d 1257d 0/26 auto-closed as invalid on 2020/12/27 22:09
upstream KCSAN: data-race in iput / move_expired_inodes (4) fs 1 981d 981d 0/26 auto-closed as invalid on 2021/10/15 01:41
upstream KCSAN: data-race in iput / move_expired_inodes (6) fs 1 492d 492d 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 1221d 1221d 0/26 auto-closed as invalid on 2021/02/16 20:27

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

write to 0xffff8881061d8318 of 8 bytes by task 1792 on cpu 0:
 move_expired_inodes+0x1ca/0x4c0 fs/fs-writeback.c:1257
 queue_io+0xe1/0x280 fs/fs-writeback.c:1304
 wb_writeback+0x265/0x700 fs/fs-writeback.c:1903
 wb_check_start_all fs/fs-writeback.c:2031 [inline]
 wb_do_writeback+0x330/0x510 fs/fs-writeback.c:2057
 wb_workfn+0xc8/0x520 fs/fs-writeback.c:2091
 process_one_work+0x3e9/0x8f0 kernel/workqueue.c:2275
 worker_thread+0x636/0xae0 kernel/workqueue.c:2421
 kthread+0x1d0/0x1f0 kernel/kthread.c:313
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

read to 0xffff8881061d8318 of 8 bytes by task 1783 on cpu 1:
 iput+0x2e/0x590 fs/inode.c:1669
 dentry_unlink_inode+0x23a/0x260 fs/dcache.c:376
 d_delete+0x78/0xe0 fs/dcache.c:2505
 vfs_rmdir+0x2a6/0x2c0 fs/namei.c:3909
 do_rmdir+0x14a/0x2e0 fs/namei.c:3958
 __do_sys_rmdir fs/namei.c:3976 [inline]
 __se_sys_rmdir fs/namei.c:3974 [inline]
 __x64_sys_rmdir+0x2c/0x30 fs/namei.c:3974
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1783 Comm: syz-executor.5 Not tainted 5.12.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/03 20:29 upstream 6f8ee8d36d07 ad61f371 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in iput / move_expired_inodes
2021/03/24 20:29 upstream 4ee998b0ef8b 607e3baf .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in iput / move_expired_inodes
2021/03/19 23:30 upstream 8b12a62a4e3e 3d01c4de .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in iput / move_expired_inodes
* Struck through repros no longer work on HEAD.