syzbot


KCSAN: data-race in iput / writeback_sb_inodes (7)

Status: auto-closed as invalid on 2021/09/29 17:35
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 457d, last: 457d
similar bugs (8):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in iput / writeback_sb_inodes (2) 1 891d 891d 0/24 closed as invalid on 2020/06/18 14:13
upstream KCSAN: data-race in iput / writeback_sb_inodes (3) 1 871d 871d 0/24 auto-closed as invalid on 2020/08/11 19:26
upstream KCSAN: data-race in iput / writeback_sb_inodes (6) 2 529d 536d 0/24 auto-closed as invalid on 2021/07/20 06:50
upstream KCSAN: data-race in iput / writeback_sb_inodes (8) 1 231d 231d 0/24 auto-closed as invalid on 2022/05/13 10:29
upstream KCSAN: data-race in iput / writeback_sb_inodes 1 992d 992d 0/24 auto-closed as invalid on 2020/05/18 05:32
upstream KCSAN: data-race in iput / writeback_sb_inodes (5) 4 666d 690d 0/24 auto-closed as invalid on 2021/03/04 09:19
upstream KCSAN: data-race in iput / writeback_sb_inodes (4) 7 754d 718d 0/24 auto-closed as invalid on 2020/12/21 11:42
upstream KCSAN: data-race in iput / writeback_sb_inodes (9) 2 114d 128d 0/24 auto-closed as invalid on 2022/09/08 05:08

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

write to 0xffff8881017afcf8 of 8 bytes by task 7157 on cpu 0:
 writeback_sb_inodes+0x3cd/0xd10 fs/fs-writeback.c:1867
 wb_writeback+0x28e/0x700 fs/fs-writeback.c:2051
 wb_do_writeback+0x101/0x510 fs/fs-writeback.c:2196
 wb_workfn+0xc8/0x520 fs/fs-writeback.c:2237
 process_one_work+0x3e9/0x8f0 kernel/workqueue.c:2276
 worker_thread+0x636/0xae0 kernel/workqueue.c:2422
 kthread+0x262/0x280 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295

read to 0xffff8881017afcf8 of 8 bytes by task 23186 on cpu 1:
 iput+0x2e/0x580 fs/inode.c:1676
 dentry_unlink_inode+0x23a/0x260 fs/dcache.c:376
 d_delete+0x78/0xe0 fs/dcache.c:2505
 vfs_rmdir+0x2a6/0x2c0 fs/namei.c:3919
 do_rmdir+0x14a/0x2e0 fs/namei.c:3968
 __do_sys_rmdir fs/namei.c:3986 [inline]
 __se_sys_rmdir fs/namei.c:3984 [inline]
 __x64_sys_rmdir+0x2c/0x30 fs/namei.c:3984
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000020001 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 23186 Comm: syz-executor.4 Tainted: G        W         5.14.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/08/25 17:33 upstream 6e764bcd1cf7 b599f2fc .config log report info KCSAN: data-race in iput / writeback_sb_inodes
* Struck through repros no longer work on HEAD.