syzbot


KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (13)

Status: auto-obsoleted due to no activity on 2023/07/20 04:17
Subsystems: fs
[Documentation on labels]
First crash: 350d, last: 350d
Similar bugs (14)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (5) ext4 1 900d 900d 0/26 auto-closed as invalid on 2022/01/16 16:04
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (11) ext4 3 511d 554d 0/26 auto-obsoleted due to no activity on 2023/02/11 11:55
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes ext4 38 1452d 1673d 0/26 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (3) ext4 2 1013d 1015d 0/26 auto-closed as invalid on 2021/09/25 11:37
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (7) ext4 2 742d 774d 0/26 auto-closed as invalid on 2022/06/23 15:49
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (14) ext4 15 42d 172d 0/26 auto-obsoleted due to no activity on 2024/05/23 18:37
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (15) ext4 1 17h12m 17h12m 0/26 moderation: reported on 2024/05/30 02:24
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (2) ext4 70 1079d 1305d 0/26 auto-closed as invalid on 2021/07/20 20:13
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (4) ext4 2 952d 974d 0/26 auto-closed as invalid on 2021/11/25 03:42
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (8) fs 2 697d 706d 0/26 auto-closed as invalid on 2022/08/07 13:58
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (10) ext4 1 600d 600d 0/26 auto-obsoleted due to no activity on 2022/11/12 17:32
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (9) ext4 1 658d 658d 0/26 auto-closed as invalid on 2022/09/14 22:08
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (12) ext4 1 430d 430d 0/26 auto-obsoleted due to no activity on 2023/05/01 00:45
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (6) ext4 1 829d 829d 0/26 auto-closed as invalid on 2022/03/28 07:47

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes

write to 0xffff888109dc5240 of 8 bytes by task 32193 on cpu 1:
 writeback_sb_inodes+0x2d7/0xaa0 fs/fs-writeback.c:1883
 __writeback_inodes_wb+0x9a/0x1a0 fs/fs-writeback.c:1965
 wb_writeback+0x24d/0x6c0 fs/fs-writeback.c:2070
 wb_check_background_flush fs/fs-writeback.c:2136 [inline]
 wb_do_writeback fs/fs-writeback.c:2224 [inline]
 wb_workfn+0x67f/0x8d0 fs/fs-writeback.c:2251
 process_one_work+0x3e6/0x750 kernel/workqueue.c:2405
 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2552
 kthread+0x1d7/0x210 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

read to 0xffff888109dc5240 of 8 bytes by task 3074 on cpu 0:
 __mark_inode_dirty+0x58/0x7d0 fs/fs-writeback.c:2406
 generic_update_time fs/inode.c:1859 [inline]
 inode_update_time fs/inode.c:1872 [inline]
 touch_atime+0x1e2/0x310 fs/inode.c:1944
 file_accessed include/linux/fs.h:2198 [inline]
 iterate_dir+0x347/0x390 fs/readdir.c:70
 __do_sys_getdents64 fs/readdir.c:369 [inline]
 __se_sys_getdents64+0x88/0x1a0 fs/readdir.c:354
 __x64_sys_getdents64+0x43/0x50 fs/readdir.c:354
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000000020007 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3074 Comm: syz-executor.4 Not tainted 6.4.0-rc6-syzkaller-00037-gb6dad5178cea #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/15 04:08 upstream b6dad5178cea 76decb82 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes
* Struck through repros no longer work on HEAD.