syzbot


KCSAN: data-race in __mark_inode_dirty / redirty_tail_locked (8)

Status: auto-obsoleted due to no activity on 2024/09/11 16:13
Subsystems: exfat
[Documentation on labels]
Reported-by: syzbot+cef90a0a0c181ce034c5@syzkaller.appspotmail.com
First crash: 35d, last: 35d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __mark_inode_dirty / redirty_tail_locked (4) ext4 1 281d 280d 0/27 auto-obsoleted due to no activity on 2024/01/09 20:12
upstream KCSAN: data-race in __mark_inode_dirty / redirty_tail_locked (7) ext4 1 94d 94d 0/27 auto-obsoleted due to no activity on 2024/07/15 04:44
upstream KCSAN: data-race in __mark_inode_dirty / redirty_tail_locked (2) ext4 10 384d 519d 0/27 auto-obsoleted due to no activity on 2023/09/29 00:10
upstream KCSAN: data-race in __mark_inode_dirty / redirty_tail_locked (5) ext4 1 226d 226d 0/27 auto-obsoleted due to no activity on 2024/03/05 08:43
upstream KCSAN: data-race in __mark_inode_dirty / redirty_tail_locked (3) ext4 3 320d 345d 0/27 auto-obsoleted due to no activity on 2023/12/02 13:09
upstream KCSAN: data-race in __mark_inode_dirty / redirty_tail_locked (6) ext4 1 166d 166d 0/27 auto-obsoleted due to no activity on 2024/05/04 07:48
upstream KCSAN: data-race in __mark_inode_dirty / redirty_tail_locked ext4 1 587d 587d 0/27 auto-obsoleted due to no activity on 2023/03/31 02:53

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

read-write to 0xffff8881080df728 of 8 bytes by task 6995 on cpu 0:
 redirty_tail_locked+0x56/0x270 fs/fs-writeback.c:1346
 requeue_inode fs/fs-writeback.c:1609 [inline]
 writeback_sb_inodes+0x903/0xb20 fs/fs-writeback.c:1976
 wb_writeback+0x25e/0x720 fs/fs-writeback.c:2127
 wb_do_writeback fs/fs-writeback.c:2274 [inline]
 wb_workfn+0x1a8/0x940 fs/fs-writeback.c:2314
 process_one_work kernel/workqueue.c:3231 [inline]
 process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3312
 worker_thread+0x526/0x700 kernel/workqueue.c:3390
 kthread+0x1d1/0x210 kernel/kthread.c:389
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

read to 0xffff8881080df728 of 8 bytes by task 8922 on cpu 1:
 __mark_inode_dirty+0x19f/0x7e0 fs/fs-writeback.c:2508
 mark_inode_dirty include/linux/fs.h:2426 [inline]
 generic_write_end+0x172/0x230 fs/buffer.c:2315
 fat_write_end+0x4e/0x160 fs/fat/inode.c:243
 cont_expand_zero fs/buffer.c:2519 [inline]
 cont_write_begin+0x2ca/0x6b0 fs/buffer.c:2577
 fat_write_begin+0x61/0xf0 fs/fat/inode.c:229
 generic_cont_expand_simple+0xaa/0x150 fs/buffer.c:2478
 fat_cont_expand+0x3a/0x160 fs/fat/file.c:223
 fat_setattr+0x2aa/0x840 fs/fat/file.c:513
 notify_change+0x814/0x8a0 fs/attr.c:495
 do_truncate fs/open.c:65 [inline]
 do_ftruncate+0x3e1/0x470 fs/open.c:181
 do_sys_ftruncate fs/open.c:199 [inline]
 __do_sys_ftruncate fs/open.c:207 [inline]
 __se_sys_ftruncate fs/open.c:205 [inline]
 __x64_sys_ftruncate+0x6a/0xc0 fs/open.c:205
 x64_sys_call+0x8e5/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:78
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0000000000020087 -> 0x0000000000000007

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 8922 Comm: syz.2.1395 Tainted: G        W          6.11.0-rc2-syzkaller-00013-gd4560686726f #0
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
==================================================================
FAT-fs (loop2): error, fat_get_cluster: invalid cluster chain (i_pos 1050)
FAT-fs (loop2): Filesystem has been set read-only
FAT-fs (loop2): error, fat_get_cluster: invalid cluster chain (i_pos 1050)
FAT-fs (loop2): error, fat_get_cluster: invalid cluster chain (i_pos 1050)

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/07 16:12 upstream d4560686726f 109d2082 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mark_inode_dirty / redirty_tail_locked
* Struck through repros no longer work on HEAD.