syzbot


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

Status: auto-closed as invalid on 2021/11/25 13:43
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 407d, last: 407d
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 741d 725d 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 271d 352d 0/24 auto-closed as invalid on 2022/04/10 08:05
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (4) 3 450d 476d 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 703d 703d 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 527d 599d 0/24 auto-closed as invalid on 2021/07/28 16:39
upstream KCSAN: data-race in __writeback_single_inode / inode_io_list_del (7) 2 50d 58d 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 0xffff888104af0270 of 8 bytes by task 501 on cpu 1:
 inode_io_list_del+0xdc/0x2b0 fs/fs-writeback.c:1273
 evict+0xac/0x3c0 fs/inode.c:575
 iput_final fs/inode.c:1664 [inline]
 iput+0x430/0x580 fs/inode.c:1690
 do_unlinkat+0x2d4/0x540 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+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888104af0270 of 8 bytes by task 57 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+0x27d/0x6d0 fs/fs-writeback.c:2053
 wb_do_writeback+0x101/0x530 fs/fs-writeback.c:2196
 wb_workfn+0xc8/0x540 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: 57 Comm: kworker/u4:2 Not tainted 5.15.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: writeback wb_workfn (flush-8:0)
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/10/21 13:36 upstream 2f111a6fd5b5 c5cb7da8 .config log report info KCSAN: data-race in __writeback_single_inode / inode_io_list_del
* Struck through repros no longer work on HEAD.