syzbot


KCSAN: data-race in __writeback_single_inode / inode_io_list_del (6)

Status: auto-closed as invalid on 2022/04/10 08:05
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 357d, last: 276d
similar bugs (6):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del 3 746d 730d 0/24 auto-closed as invalid on 2020/12/26 08:23
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (4) 3 455d 481d 0/24 auto-closed as invalid on 2021/10/13 08:56
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (2) 1 708d 708d 0/24 auto-closed as invalid on 2021/02/02 10:05
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (3) 7 532d 604d 0/24 auto-closed as invalid on 2021/07/28 16:39
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (5) 1 412d 412d 0/24 auto-closed as invalid on 2021/11/25 13:43
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (7) 2 55d 63d 0/24 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

write to 0xffff888132abc3f0 of 8 bytes by task 1827 on cpu 0:
 inode_io_list_del+0x62/0x200 fs/fs-writeback.c:1275
 evict+0xad/0x410 fs/inode.c:651
 iput_final fs/inode.c:1744 [inline]
 iput+0x3ef/0x580 fs/inode.c:1770
 d_delete_notify include/linux/fsnotify.h:261 [inline]
 vfs_rmdir+0x270/0x320 fs/namei.c:4032
 do_rmdir+0x18d/0x330 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+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888132abc3f0 of 8 bytes by task 26906 on cpu 1:
 __writeback_single_inode+0x10c/0x590 fs/fs-writeback.c:1638
 writeback_sb_inodes+0x677/0xdf0 fs/fs-writeback.c:1891
 wb_writeback+0x26b/0x650 fs/fs-writeback.c:2064
 wb_do_writeback+0x101/0x560 fs/fs-writeback.c:2207
 wb_workfn+0xc8/0x440 fs/fs-writeback.c:2248
 process_one_work+0x3f6/0x960 kernel/workqueue.c:2307
 worker_thread+0x616/0xa70 kernel/workqueue.c:2454
 kthread+0x1bf/0x1e0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30

value changed: 0x0000000000020081 -> 0x00000000000000a1

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 26906 Comm: kworker/u4:42 Not tainted 5.17.0-rc6-syzkaller-00242-g0014404f9c18-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: writeback wb_workfn (flush-8:0)
==================================================================

Crashes (4):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/03/06 08:01 upstream 0014404f9c18 7bdd8b2c .config log report info KCSAN: data-race in __writeback_single_inode / inode_io_list_del
ci2-upstream-kcsan-gce 2022/02/08 07:30 upstream 2ade8eef993c a7dab638 .config log report info KCSAN: data-race in __writeback_single_inode / inode_io_list_del
ci2-upstream-kcsan-gce 2022/01/05 13:36 upstream c9e6606c7fe9 0a2584dd .config log report info KCSAN: data-race in __writeback_single_inode / inode_io_list_del
ci2-upstream-kcsan-gce 2021/12/15 10:31 upstream 5472f14a3742 f752fb53 .config log report info KCSAN: data-race in __writeback_single_inode / inode_io_list_del
* Struck through repros no longer work on HEAD.