syzbot


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

Status: auto-closed as invalid on 2022/05/13 10:29
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 234d, last: 234d
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 893d 893d 0/24 closed as invalid on 2020/06/18 14:13
upstream KCSAN: data-race in iput / writeback_sb_inodes (3) 1 874d 874d 0/24 auto-closed as invalid on 2020/08/11 19:26
upstream KCSAN: data-race in iput / writeback_sb_inodes (7) 1 460d 460d 0/24 auto-closed as invalid on 2021/09/29 17:35
upstream KCSAN: data-race in iput / writeback_sb_inodes (6) 2 531d 538d 0/24 auto-closed as invalid on 2021/07/20 06:50
upstream KCSAN: data-race in iput / writeback_sb_inodes 1 994d 994d 0/24 auto-closed as invalid on 2020/05/18 05:32
upstream KCSAN: data-race in iput / writeback_sb_inodes (5) 4 669d 692d 0/24 auto-closed as invalid on 2021/03/04 09:19
upstream KCSAN: data-race in iput / writeback_sb_inodes (4) 7 756d 721d 0/24 auto-closed as invalid on 2020/12/21 11:42
upstream KCSAN: data-race in iput / writeback_sb_inodes (9) 2 116d 131d 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 0xffff88811e4713c0 of 8 bytes by task 12589 on cpu 0:
 writeback_sb_inodes+0x494/0xdd0 fs/fs-writeback.c:1843
 __writeback_inodes_wb+0xb0/0x2a0 fs/fs-writeback.c:1923
 wb_writeback+0x280/0x650 fs/fs-writeback.c:2028
 wb_check_background_flush fs/fs-writeback.c:2094 [inline]
 wb_do_writeback+0x5b3/0x600 fs/fs-writeback.c:2182
 wb_workfn+0x88/0x260 fs/fs-writeback.c:2209
 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289
 worker_thread+0x618/0xa70 kernel/workqueue.c:2436
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30

read to 0xffff88811e4713c0 of 8 bytes by task 1843 on cpu 1:
 iput+0x2e/0x580 fs/inode.c:1760
 dentry_unlink_inode+0x22a/0x240 fs/dcache.c:401
 d_delete+0x70/0xa0 fs/dcache.c:2531
 d_delete_notify include/linux/fsnotify.h:259 [inline]
 vfs_rmdir+0x19c/0x2f0 fs/namei.c:4032
 do_rmdir+0x178/0x300 fs/namei.c:4080
 __do_sys_rmdir fs/namei.c:4099 [inline]
 __se_sys_rmdir fs/namei.c:4097 [inline]
 __x64_sys_rmdir+0x2c/0x30 fs/namei.c:4097
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000020007 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1843 Comm: syz-executor.2 Not tainted 5.18.0-rc1-syzkaller-00037-g42e7a03d3bad-dirty #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 2022/04/08 10:20 upstream 42e7a03d3bad c6ff3e05 .config log report info KCSAN: data-race in iput / writeback_sb_inodes
* Struck through repros no longer work on HEAD.