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: 453d, last: 453d
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 1002d 1002d 0/27 auto-closed as invalid on 2022/01/16 16:04
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (11) ext4 3 614d 657d 0/27 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 1555d 1775d 0/27 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (3) ext4 2 1115d 1118d 0/27 auto-closed as invalid on 2021/09/25 11:37
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (7) ext4 2 844d 876d 0/27 auto-closed as invalid on 2022/06/23 15:49
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (14) ext4 15 144d 275d 0/27 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 103d 103d 0/27 auto-obsoleted due to no activity on 2024/07/04 02:24
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (2) ext4 70 1182d 1407d 0/27 auto-closed as invalid on 2021/07/20 20:13
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (4) ext4 2 1055d 1076d 0/27 auto-closed as invalid on 2021/11/25 03:42
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (8) fs 2 799d 808d 0/27 auto-closed as invalid on 2022/08/07 13:58
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (10) ext4 1 702d 702d 0/27 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 761d 761d 0/27 auto-closed as invalid on 2022/09/14 22:08
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (12) ext4 1 533d 533d 0/27 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 932d 932d 0/27 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.