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: 20d, last: 6h44m
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 1845d 1855d 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 873d 1444d 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 1617d 1821d 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 65d 349d 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 0xffff888106627c38 of 4 bytes by task 6131 on cpu 1:
 __mark_inode_dirty+0x24e/0x7e0 fs/fs-writeback.c:2546
 generic_update_time fs/inode.c:2113 [inline]
 inode_update_time fs/inode.c:2126 [inline]
 __file_update_time fs/inode.c:2354 [inline]
 file_modified_flags+0x2ec/0x320 fs/inode.c:2425
 file_modified+0x17/0x20 fs/inode.c:2441
 ext4_write_checks fs/ext4/file.c:279 [inline]
 ext4_buffered_write_iter+0x1cc/0x370 fs/ext4/file.c:295
 ext4_file_write_iter+0x383/0xf20
 iter_file_splice_write+0x5f1/0x980 fs/splice.c:743
 do_splice_from fs/splice.c:941 [inline]
 direct_splice_actor+0x160/0x2c0 fs/splice.c:1164
 splice_direct_to_actor+0x302/0x670 fs/splice.c:1108
 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 0xffff888106627c38 of 4 bytes by task 6133 on cpu 0:
 __mark_inode_dirty+0x198/0x7e0 fs/fs-writeback.c:2537
 generic_update_time fs/inode.c:2113 [inline]
 inode_update_time fs/inode.c:2126 [inline]
 touch_atime+0x230/0x350 fs/inode.c:2198
 file_accessed include/linux/fs.h:2539 [inline]
 filemap_splice_read+0x8a5/0x910 mm/filemap.c:2979
 ext4_file_splice_read+0x8f/0xb0 fs/ext4/file.c:158
 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 -> 0x00000028

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 6133 Comm: syz.3.1069 Not tainted 6.12.0-syzkaller-01892-g8f7c8b88bda4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
==================================================================

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.