syzbot


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

Status: auto-obsoleted due to no activity on 2024/03/16 00:02
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+72946170a52e6207a749@syzkaller.appspotmail.com
First crash: 81d, last: 81d
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 684d 684d 0/26 auto-closed as invalid on 2022/07/21 10:59
upstream KCSAN: data-race in iput / move_expired_inodes (8) fs 1 299d 299d 0/26 auto-obsoleted due to no activity on 2023/08/10 09:55
upstream KCSAN: data-race in iput / move_expired_inodes (7) fs 1 430d 430d 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 118d 140d 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 1255d 1240d 0/26 auto-closed as invalid on 2020/12/27 22:09
upstream KCSAN: data-race in iput / move_expired_inodes (3) fs 3 1093d 1138d 0/26 auto-closed as invalid on 2021/06/07 20:37
upstream KCSAN: data-race in iput / move_expired_inodes (4) fs 1 964d 964d 0/26 auto-closed as invalid on 2021/10/15 01:41
upstream KCSAN: data-race in iput / move_expired_inodes (6) fs 1 475d 475d 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 1204d 1204d 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 0xffff8881064eef60 of 8 bytes by task 11 on cpu 0:
 move_expired_inodes+0x17b/0x410 fs/fs-writeback.c:1405
 queue_io+0xe1/0x2e0 fs/fs-writeback.c:1457
 wb_writeback+0x22a/0x6e0 fs/fs-writeback.c:2090
 wb_do_writeback fs/fs-writeback.c:2239 [inline]
 wb_workfn+0x1a8/0x8d0 fs/fs-writeback.c:2279
 process_one_work kernel/workqueue.c:2633 [inline]
 process_scheduled_works+0x5b8/0xa40 kernel/workqueue.c:2706
 worker_thread+0x525/0x730 kernel/workqueue.c:2787
 kthread+0x1d7/0x210 kernel/kthread.c:388
 ret_from_fork+0x48/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242

read to 0xffff8881064eef60 of 8 bytes by task 3090 on cpu 1:
 iput+0x32/0x5c0 fs/inode.c:1755
 dentry_unlink_inode+0x22a/0x240 fs/dcache.c:400
 d_delete+0x76/0xf0 fs/dcache.c:2389
 d_delete_notify include/linux/fsnotify.h:299 [inline]
 vfs_rmdir+0x1a0/0x2f0 fs/namei.c:4218
 do_rmdir+0x194/0x320 fs/namei.c:4264
 __do_sys_unlinkat fs/namei.c:4440 [inline]
 __se_sys_unlinkat fs/namei.c:4434 [inline]
 __x64_sys_unlinkat+0xa4/0xb0 fs/namei.c:4434
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x0000000000000001 -> 0x0000000000020080

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3090 Comm: syz-executor.4 Not tainted 6.8.0-rc3-syzkaller-00215-ge6f39a90de92 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/10 00:02 upstream e6f39a90de92 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in iput / move_expired_inodes
* Struck through repros no longer work on HEAD.