syzbot


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

Status: auto-closed as invalid on 2021/03/04 09:19
First crash: 814d, last: 791d
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 1015d 1015d 0/24 closed as invalid on 2020/06/18 14:13
upstream KCSAN: data-race in iput / writeback_sb_inodes (3) 1 995d 995d 0/24 auto-closed as invalid on 2020/08/11 19:26
upstream KCSAN: data-race in iput / writeback_sb_inodes (7) 1 581d 581d 0/24 auto-closed as invalid on 2021/09/29 17:35
upstream KCSAN: data-race in iput / writeback_sb_inodes (6) 2 653d 660d 0/24 auto-closed as invalid on 2021/07/20 06:50
upstream KCSAN: data-race in iput / writeback_sb_inodes (8) 1 356d 356d 0/24 auto-closed as invalid on 2022/05/13 10:29
upstream KCSAN: data-race in iput / writeback_sb_inodes 1 1116d 1116d 0/24 auto-closed as invalid on 2020/05/18 05:32
upstream KCSAN: data-race in iput / writeback_sb_inodes (4) 7 878d 843d 0/24 auto-closed as invalid on 2020/12/21 11:42
upstream KCSAN: data-race in iput / writeback_sb_inodes (9) 2 238d 252d 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 0xffff888009a7c1d8 of 8 bytes by task 370 on cpu 1:
 writeback_sb_inodes+0x494/0x1020 fs/fs-writeback.c:1712
 wb_writeback+0x27d/0x660 fs/fs-writeback.c:1896
 wb_do_writeback+0x101/0x5d0 fs/fs-writeback.c:2041
 wb_workfn+0xb8/0x410 fs/fs-writeback.c:2082
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275
 worker_thread+0x64a/0xaa0 kernel/workqueue.c:2421
 kthread+0x1fd/0x220 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

read to 0xffff888009a7c1d8 of 8 bytes by task 8458 on cpu 0:
 iput+0x2e/0x510 fs/inode.c:1669
 dentry_unlink_inode+0x1f3/0x210 fs/dcache.c:374
 d_delete+0x70/0xa0 fs/dcache.c:2477
 vfs_unlink+0x38f/0x3b0 fs/namei.c:3849
 do_unlinkat+0x28a/0x4d0 fs/namei.c:3899
 __do_sys_unlink fs/namei.c:3945 [inline]
 __se_sys_unlink fs/namei.c:3943 [inline]
 __x64_sys_unlink+0x2c/0x30 fs/namei.c:3943
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 8458 Comm: syz-executor.4 Not tainted 5.11.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (4):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2021/01/28 09:14 upstream 76c057c84d28 eefc07f2 .config console log report info KCSAN: data-race in iput / writeback_sb_inodes
ci2-upstream-kcsan-gce 2021/01/19 05:51 upstream 1e2a199f6ccd 63631df1 .config console log report info KCSAN: data-race in iput / writeback_sb_inodes
ci2-upstream-kcsan-gce 2021/01/04 22:34 upstream 36bbbd0e234d 2a28ff1f .config console log report info
ci2-upstream-kcsan-gce 2021/01/04 20:03 upstream 36bbbd0e234d 79264ae3 .config console log report info
* Struck through repros no longer work on HEAD.