syzbot


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

Status: auto-obsoleted due to no activity on 2024/02/07 16:43
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+24744bc9f05b90d13660@syzkaller.appspotmail.com
First crash: 140d, last: 118d
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 (10) fs 1 81d 81d 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 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 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 0xffff88810616b3f0 of 8 bytes by task 42 on cpu 1:
 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_check_start_all fs/fs-writeback.c:2220 [inline]
 wb_do_writeback fs/fs-writeback.c:2246 [inline]
 wb_workfn+0x4ea/0x8d0 fs/fs-writeback.c:2279
 process_one_work kernel/workqueue.c:2627 [inline]
 process_scheduled_works+0x5b8/0xa30 kernel/workqueue.c:2700
 worker_thread+0x525/0x730 kernel/workqueue.c:2781
 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 0xffff88810616b3f0 of 8 bytes by task 3089 on cpu 0:
 iput+0x32/0x5b0 fs/inode.c:1793
 dentry_unlink_inode+0x22a/0x240 fs/dcache.c:401
 d_delete+0x76/0xf0 fs/dcache.c:2564
 d_delete_notify include/linux/fsnotify.h:260 [inline]
 vfs_rmdir+0x1a0/0x2f0 fs/namei.c:4202
 do_rmdir+0x194/0x320 fs/namei.c:4248
 __do_sys_unlinkat fs/namei.c:4424 [inline]
 __se_sys_unlinkat fs/namei.c:4418 [inline]
 __x64_sys_unlinkat+0xa4/0xb0 fs/namei.c:4418
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x0000000000000001 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3089 Comm: syz-executor.0 Not tainted 6.7.0-rc8-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/03 16:42 upstream 610a9b8f49fb fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in iput / move_expired_inodes
2023/12/12 13:36 upstream 26aff849438c ebcad15c .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.