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: 34d, last: 3d14h
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 1859d 1870d 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 888d 1459d 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 1631d 1835d 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 80d 363d 0/28 auto-obsoleted due to no activity on 2024/10/21 11:55

Sample crash report:
loop5: detected capacity change from 0 to 128
==================================================================
BUG: KCSAN: data-race in __mark_inode_dirty / __mark_inode_dirty

write to 0xffff8881066fc728 of 4 bytes by task 8419 on cpu 1:
 __mark_inode_dirty+0x24e/0x7e0 fs/fs-writeback.c:2546
 fat_update_time+0x1e8/0x200 fs/fat/misc.c:357
 inode_update_time fs/inode.c:2124 [inline]
 touch_atime+0x14f/0x350 fs/inode.c:2197
 file_accessed include/linux/fs.h:2539 [inline]
 filemap_splice_read+0x8a5/0x910 mm/filemap.c:2978
 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+0x398/0x660 fs/read_write.c:1363
 __do_sys_sendfile64 fs/read_write.c:1424 [inline]
 __se_sys_sendfile64 fs/read_write.c:1410 [inline]
 __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1410
 x64_sys_call+0xfbd/0x2dc0 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 0xffff8881066fc728 of 4 bytes by task 8415 on cpu 0:
 __mark_inode_dirty+0x58/0x7e0 fs/fs-writeback.c:2497
 fat_update_time+0x1e8/0x200 fs/fat/misc.c:357
 inode_update_time fs/inode.c:2124 [inline]
 touch_atime+0x14f/0x350 fs/inode.c:2197
 file_accessed include/linux/fs.h:2539 [inline]
 filemap_splice_read+0x8a5/0x910 mm/filemap.c:2978
 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+0x398/0x660 fs/read_write.c:1363
 __do_sys_sendfile64 fs/read_write.c:1424 [inline]
 __se_sys_sendfile64 fs/read_write.c:1410 [inline]
 __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1410
 x64_sys_call+0xfbd/0x2dc0 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: 8415 Comm: syz.5.1486 Not tainted 6.12.0-syzkaller-12128-gf788b5ef1ca9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (17):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/01 23:43 upstream f788b5ef1ca9 68914665 .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/30 18:52 upstream 2ba9f676d0a2 68914665 .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/29 23:22 upstream 509f806f7f70 5df23865 .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/28 08:47 upstream b86545e02e8c 5df23865 .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/24 13:01 upstream 9f16d5e6f220 68da6d95 .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/23 04:50 upstream 06afb0f36106 68da6d95 .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/23 04:49 upstream 06afb0f36106 68da6d95 .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/23 04:49 upstream 06afb0f36106 68da6d95 .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/21 15:39 upstream 43fb83c17ba2 4b25d554 .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/20 23:42 upstream 8f7c8b88bda4 4fca1650 .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/13 02:13 upstream 3022e9d00ebe 62026c85 .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/10 05:56 upstream de2f378f2b77 6b856513 .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/07 11:13 upstream ff7afaeca1a1 df3dc63b .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/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.