syzbot


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

Status: auto-closed as invalid on 2021/10/13 08:56
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 480d, last: 454d
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 745d 729d 0/24 auto-closed as invalid on 2020/12/26 08:23
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (6) 4 275d 356d 0/24 auto-closed as invalid on 2022/04/10 08:05
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (2) 1 707d 707d 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 531d 603d 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 411d 411d 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 54d 62d 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 0xffff88814e14ec50 of 8 bytes by task 807 on cpu 1:
 inode_io_list_del+0xdc/0x2b0 fs/fs-writeback.c:1273
 evict+0xac/0x3c0 fs/inode.c:573
 iput_final fs/inode.c:1662 [inline]
 iput+0x430/0x580 fs/inode.c:1688
 do_unlinkat+0x2a4/0x520 fs/namei.c:4176
 __do_sys_unlink fs/namei.c:4217 [inline]
 __se_sys_unlink fs/namei.c:4215 [inline]
 __x64_sys_unlink+0x2c/0x30 fs/namei.c:4215
 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

read to 0xffff88814e14ec50 of 8 bytes by task 1791 on cpu 0:
 __writeback_single_inode+0x46/0x440 fs/fs-writeback.c:1612
 writeback_sb_inodes+0x563/0xd30 fs/fs-writeback.c:1881
 wb_writeback+0x25d/0x6b0 fs/fs-writeback.c:2053
 wb_do_writeback+0x101/0x510 fs/fs-writeback.c:2196
 wb_workfn+0xc8/0x520 fs/fs-writeback.c:2237
 process_one_work+0x402/0x910 kernel/workqueue.c:2297
 worker_thread+0x636/0xae0 kernel/workqueue.c:2444
 kthread+0x262/0x280 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30

value changed: 0x0000000000020081 -> 0x00000000000000a1

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1791 Comm: kworker/u4:4 Not tainted 5.14.0-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):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/09/08 08:47 upstream 0bcfe68b8767 064c9eb7 .config log report info KCSAN: data-race in __writeback_single_inode / inode_io_list_del
ci2-upstream-kcsan-gce 2021/09/04 21:56 upstream a9c9a6f741cd d236a457 .config log report info KCSAN: data-race in __writeback_single_inode / inode_io_list_del
ci2-upstream-kcsan-gce 2021/08/13 07:45 upstream f8e6dfc64f61 3fd2ea69 .config log report info KCSAN: data-race in __writeback_single_inode / inode_io_list_del
* Struck through repros no longer work on HEAD.