syzbot


KCSAN: data-race in __writeback_single_inode / inode_io_list_del

Status: auto-closed as invalid on 2020/12/26 08:23
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+909b30f513c13ccb9e7e@syzkaller.appspotmail.com
First crash: 1487d, last: 1448d
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (6) fs 4 978d 1059d 0/28 auto-closed as invalid on 2022/04/10 08:05
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (4) fs 3 1157d 1183d 0/28 auto-closed as invalid on 2021/10/13 08:56
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (8) fs 1 692d 692d 0/28 auto-obsoleted due to no activity on 2023/02/11 03:08
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (9) fs 1 594d 594d 0/28 auto-obsoleted due to no activity on 2023/04/29 11:24
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (11) fs 1 319d 319d 0/28 auto-obsoleted due to no activity on 2024/01/29 08:54
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (10) fs 1 412d 412d 0/28 auto-obsoleted due to no activity on 2023/10/28 20:31
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (2) fs 1 1410d 1410d 0/28 auto-closed as invalid on 2021/02/02 10:05
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (3) fs 7 1234d 1306d 0/28 auto-closed as invalid on 2021/07/28 16:39
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (5) fs 1 1114d 1114d 0/28 auto-closed as invalid on 2021/11/25 13:43
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (7) fs 2 757d 765d 0/28 auto-obsoleted due to no activity on 2022/11/17 07:22

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __writeback_single_inode / inode_io_list_del

read-write to 0xffff88800997a6b8 of 8 bytes by task 8463 on cpu 0:
 inode_io_list_del_locked fs/fs-writeback.c:148 [inline]
 inode_io_list_del+0x91/0x240 fs/fs-writeback.c:1127
 evict+0xac/0x470 fs/inode.c:565
 iput_final fs/inode.c:1654 [inline]
 iput+0x421/0x510 fs/inode.c:1680
 dentry_unlink_inode+0x1f3/0x210 fs/dcache.c:374
 d_delete+0x70/0xa0 fs/dcache.c:2470
 vfs_rmdir+0x271/0x290 fs/namei.c:3727
 do_rmdir+0x16e/0x300 fs/namei.c:3774
 __do_sys_rmdir fs/namei.c:3792 [inline]
 __se_sys_rmdir fs/namei.c:3790 [inline]
 __x64_sys_rmdir+0x2c/0x30 fs/namei.c:3790
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88800997a6b8 of 8 bytes by task 304 on cpu 1:
 __writeback_single_inode+0x45/0x560 fs/fs-writeback.c:1457
 writeback_sb_inodes+0x6a0/0x1020 fs/fs-writeback.c:1721
 wb_writeback+0x27d/0x660 fs/fs-writeback.c:1894
 wb_do_writeback+0x101/0x5d0 fs/fs-writeback.c:2039
 wb_workfn+0xb8/0x410 fs/fs-writeback.c:2080
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2272
 worker_thread+0x635/0xb90 kernel/workqueue.c:2418
 kthread+0x1fa/0x220 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 304 Comm: kworker/u4:3 Not tainted 5.10.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: writeback wb_workfn (flush-8:0)
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/21 08:22 upstream 27bba9c532a8 68068804 .config console log report info ci2-upstream-kcsan-gce
2020/10/30 17:47 upstream 07e088730245 a6e3ac3b .config console log report info ci2-upstream-kcsan-gce
2020/10/13 12:11 upstream 865c50e1d279 bd69ee0d .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.