syzbot


KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty (5)

Status: moderation: reported on 2024/10/31 20:48
Subsystems: exfat
[Documentation on labels]
Reported-by: syzbot+726ac173fbb57fd1459d@syzkaller.appspotmail.com
First crash: 6d04h, last: 13h10m
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty ext4 3 1830d 1841d 0/28 closed as invalid on 2019/11/19 13:24
upstream KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty (3) exfat 197 859d 1430d 0/28 auto-closed as invalid on 2022/08/05 09:53
upstream KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty (2) ext4 19 1603d 1806d 0/28 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty (4) ext4 exfat 199 51d 335d 0/28 auto-obsoleted due to no activity on 2024/10/21 11:55

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

write to 0xffff88810e805928 of 4 bytes by task 8037 on cpu 1:
 __mark_inode_dirty+0x24e/0x7e0 fs/fs-writeback.c:2524
 fat_update_time+0x1f5/0x210 fs/fat/misc.c:357
 inode_update_time fs/inode.c:2055 [inline]
 touch_atime+0x14f/0x350 fs/inode.c:2128
 file_accessed include/linux/fs.h:2528 [inline]
 filemap_splice_read+0x8a5/0x910 mm/filemap.c:2977
 do_splice_read fs/splice.c:985 [inline]
 splice_direct_to_actor+0x269/0x670 fs/splice.c:1089
 do_splice_direct_actor fs/splice.c:1207 [inline]
 do_splice_direct+0xd7/0x150 fs/splice.c:1233
 do_sendfile+0x39b/0x970 fs/read_write.c:1388
 __do_sys_sendfile64 fs/read_write.c:1455 [inline]
 __se_sys_sendfile64 fs/read_write.c:1441 [inline]
 __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1441
 x64_sys_call+0xed5/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:41
 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

read to 0xffff88810e805928 of 4 bytes by task 8042 on cpu 0:
 __mark_inode_dirty+0x198/0x7e0 fs/fs-writeback.c:2515
 fat_update_time+0x1f5/0x210 fs/fat/misc.c:357
 inode_update_time fs/inode.c:2055 [inline]
 touch_atime+0x14f/0x350 fs/inode.c:2128
 file_accessed include/linux/fs.h:2528 [inline]
 filemap_splice_read+0x8a5/0x910 mm/filemap.c:2977
 do_splice_read fs/splice.c:985 [inline]
 splice_direct_to_actor+0x269/0x670 fs/splice.c:1089
 do_splice_direct_actor fs/splice.c:1207 [inline]
 do_splice_direct+0xd7/0x150 fs/splice.c:1233
 do_sendfile+0x39b/0x970 fs/read_write.c:1388
 __do_sys_sendfile64 fs/read_write.c:1455 [inline]
 __se_sys_sendfile64 fs/read_write.c:1441 [inline]
 __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1441
 x64_sys_call+0xed5/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:41
 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: 0x00000000 -> 0x00000038

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 8042 Comm: syz.3.1604 Not tainted 6.12.0-rc6-syzkaller-00077-g2e1b3cc9d7f7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/06 12:17 upstream 2e1b3cc9d7f7 3a465482 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
2024/11/05 10:54 upstream 2e1b3cc9d7f7 509da429 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
2024/11/05 10:53 upstream 2e1b3cc9d7f7 509da429 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
2024/10/31 20:47 upstream 0fc810ae3ae1 96eb609f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty
* Struck through repros no longer work on HEAD.