syzbot


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

Status: auto-obsoleted due to no activity on 2023/08/10 09:55
Subsystems: fs
[Documentation on labels]
First crash: 461d, last: 461d
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 846d 846d 0/28 auto-closed as invalid on 2022/07/21 10:59
upstream KCSAN: data-race in iput / move_expired_inodes (10) fs 1 242d 242d 0/28 auto-obsoleted due to no activity on 2024/03/16 00:02
upstream KCSAN: data-race in iput / move_expired_inodes (7) fs 1 591d 591d 0/28 auto-obsoleted due to no activity on 2023/04/08 21:12
upstream KCSAN: data-race in iput / move_expired_inodes (9) fs 2 280d 302d 0/28 auto-obsoleted due to no activity on 2024/02/07 16:43
upstream KCSAN: data-race in iput / move_expired_inodes fs 5 1416d 1402d 0/28 auto-closed as invalid on 2020/12/27 22:09
upstream KCSAN: data-race in iput / move_expired_inodes (3) fs 3 1255d 1299d 0/28 auto-closed as invalid on 2021/06/07 20:37
upstream KCSAN: data-race in iput / move_expired_inodes (4) fs 1 1125d 1125d 0/28 auto-closed as invalid on 2021/10/15 01:41
upstream KCSAN: data-race in iput / move_expired_inodes (6) fs 1 636d 636d 0/28 auto-obsoleted due to no activity on 2023/02/22 21:07
upstream KCSAN: data-race in iput / move_expired_inodes (2) fs 1 1366d 1366d 0/28 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 0xffff88810a5e9d20 of 8 bytes by task 3123 on cpu 0:
 move_expired_inodes+0x17b/0x410 fs/fs-writeback.c:1388
 queue_io+0xe1/0x2e0 fs/fs-writeback.c:1440
 wb_writeback+0x22a/0x6e0 fs/fs-writeback.c:2068
 wb_do_writeback fs/fs-writeback.c:2217 [inline]
 wb_workfn+0x1a8/0x8d0 fs/fs-writeback.c:2257
 process_one_work+0x434/0x860 kernel/workqueue.c:2597
 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2748
 kthread+0x1d7/0x210 kernel/kthread.c:389
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

read to 0xffff88810a5e9d20 of 8 bytes by task 3081 on cpu 1:
 iput+0x32/0x5b0 fs/inode.c:1805
 dentry_unlink_inode+0x22a/0x240 fs/dcache.c:401
 d_delete+0x76/0xf0 fs/dcache.c:2565
 d_delete_notify include/linux/fsnotify.h:261 [inline]
 vfs_rmdir+0x1a0/0x2f0 fs/namei.c:4213
 do_rmdir+0x194/0x310 fs/namei.c:4259
 __do_sys_unlinkat fs/namei.c:4437 [inline]
 __se_sys_unlinkat fs/namei.c:4431 [inline]
 __x64_sys_unlinkat+0xa4/0xb0 fs/namei.c:4431
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000000000001 -> 0x0000000000020080

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3081 Comm: syz-executor.5 Tainted: G        W          6.4.0-syzkaller-12069-gc17414a273b8 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/06 09:46 upstream c17414a273b8 ba5dba36 .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.