syzbot


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

Status: auto-obsoleted due to no activity on 2022/11/17 07:22
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 121d, last: 113d
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 804d 788d 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 334d 415d 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 513d 539d 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 766d 766d 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 589d 662d 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 470d 470d 0/24 auto-closed as invalid on 2021/11/25 13:43

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

read-write to 0xffff88810a959c60 of 8 bytes by task 1831 on cpu 1:
 inode_io_list_del+0x4e/0x1c0 fs/fs-writeback.c:1239
 evict+0xad/0x410 fs/inode.c:651
 iput_final fs/inode.c:1747 [inline]
 iput+0x3f9/0x580 fs/inode.c:1773
 d_delete_notify include/linux/fsnotify.h:261 [inline]
 vfs_rmdir+0x270/0x2f0 fs/namei.c:4133
 do_rmdir+0x178/0x300 fs/namei.c:4181
 __do_sys_unlinkat fs/namei.c:4361 [inline]
 __se_sys_unlinkat fs/namei.c:4355 [inline]
 __x64_sys_unlinkat+0xa0/0xb0 fs/namei.c:4355
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88810a959c60 of 8 bytes by task 1843 on cpu 0:
 __writeback_single_inode+0x46/0x590 fs/fs-writeback.c:1583
 writeback_sb_inodes+0x6a0/0xdd0 fs/fs-writeback.c:1870
 __writeback_inodes_wb+0xb0/0x2a0 fs/fs-writeback.c:1941
 wb_writeback+0x280/0x650 fs/fs-writeback.c:2046
 wb_check_start_all fs/fs-writeback.c:2168 [inline]
 wb_do_writeback+0x418/0x600 fs/fs-writeback.c:2194
 wb_workfn+0x88/0x260 fs/fs-writeback.c:2227
 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289
 worker_thread+0x618/0xa70 kernel/workqueue.c:2436
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306

value changed: 0x0000000000020081 -> 0x00000000000000a1

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1843 Comm: kworker/u4:6 Not tainted 6.0.0-syzkaller-11658-ga185a0995518-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Workqueue: writeback wb_workfn (flush-8:0)
==================================================================

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2022/10/13 07:19 upstream a185a0995518 3f6b40a1 .config console log report info [disk image] [vmlinux] KCSAN: data-race in __writeback_single_inode / inode_io_list_del
ci2-upstream-kcsan-gce 2022/10/05 12:26 upstream 0326074ff465 267e3bb1 .config console log report info [disk image] [vmlinux] KCSAN: data-race in __writeback_single_inode / inode_io_list_del
* Struck through repros no longer work on HEAD.