syzbot


KCSAN: data-race in inode_update_timestamps / inode_update_timestamps (2)

Status: auto-obsoleted due to no activity on 2024/09/28 05:23
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+33da257fe0b2bf79265a@syzkaller.appspotmail.com
First crash: 151d, last: 50d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in inode_update_timestamps / inode_update_timestamps ext4 130 206d 309d 0/28 auto-obsoleted due to no activity on 2024/04/18 13:35
upstream KCSAN: data-race in inode_update_timestamps / inode_update_timestamps (3) fs 2 7h22m 7d20h 0/28 moderation: reported on 2024/10/06 02:38

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

write to 0xffff888120836eec of 4 bytes by task 6304 on cpu 1:
 inode_set_mtime_to_ts include/linux/fs.h:1603 [inline]
 inode_update_timestamps+0x166/0x280 fs/inode.c:1962
 generic_update_time fs/inode.c:1997 [inline]
 inode_update_time fs/inode.c:2017 [inline]
 __file_update_time fs/inode.c:2206 [inline]
 file_update_time+0x229/0x2c0 fs/inode.c:2236
 ext4_page_mkwrite+0x1a4/0xb70 fs/ext4/inode.c:6132
 do_page_mkwrite mm/memory.c:3142 [inline]
 do_shared_fault mm/memory.c:5133 [inline]
 do_fault mm/memory.c:5195 [inline]
 do_pte_missing mm/memory.c:3947 [inline]
 handle_pte_fault mm/memory.c:5521 [inline]
 __handle_mm_fault mm/memory.c:5664 [inline]
 handle_mm_fault+0x1307/0x2940 mm/memory.c:5832
 faultin_page mm/gup.c:1194 [inline]
 __get_user_pages+0x499/0x10d0 mm/gup.c:1493
 __get_user_pages_locked mm/gup.c:1760 [inline]
 faultin_page_range+0x352/0x5d0 mm/gup.c:1984
 madvise_populate mm/madvise.c:943 [inline]
 do_madvise+0x404/0x2620 mm/madvise.c:1464
 __do_sys_madvise mm/madvise.c:1484 [inline]
 __se_sys_madvise mm/madvise.c:1482 [inline]
 __x64_sys_madvise+0x61/0x70 mm/madvise.c:1482
 x64_sys_call+0x2320/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:29
 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 0xffff888120836eec of 4 bytes by task 6300 on cpu 0:
 inode_get_mtime_nsec include/linux/fs.h:1589 [inline]
 inode_get_mtime include/linux/fs.h:1595 [inline]
 inode_update_timestamps+0x84/0x280 fs/inode.c:1956
 generic_update_time fs/inode.c:1997 [inline]
 inode_update_time fs/inode.c:2017 [inline]
 __file_update_time fs/inode.c:2206 [inline]
 file_update_time+0x229/0x2c0 fs/inode.c:2236
 ext4_page_mkwrite+0x1a4/0xb70 fs/ext4/inode.c:6132
 do_page_mkwrite mm/memory.c:3142 [inline]
 do_shared_fault mm/memory.c:5133 [inline]
 do_fault mm/memory.c:5195 [inline]
 do_pte_missing mm/memory.c:3947 [inline]
 handle_pte_fault mm/memory.c:5521 [inline]
 __handle_mm_fault mm/memory.c:5664 [inline]
 handle_mm_fault+0x1307/0x2940 mm/memory.c:5832
 faultin_page mm/gup.c:1194 [inline]
 __get_user_pages+0x499/0x10d0 mm/gup.c:1493
 __get_user_pages_locked mm/gup.c:1760 [inline]
 faultin_page_range+0x352/0x5d0 mm/gup.c:1984
 madvise_populate mm/madvise.c:943 [inline]
 do_madvise+0x404/0x2620 mm/madvise.c:1464
 __do_sys_madvise mm/madvise.c:1484 [inline]
 __se_sys_madvise mm/madvise.c:1482 [inline]
 __x64_sys_madvise+0x61/0x70 mm/madvise.c:1482
 x64_sys_call+0x2320/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:29
 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: 0x1c088a5e -> 0x1ca0bd1d

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 6300 Comm: syz.1.721 Not tainted 6.11.0-rc4-syzkaller-00236-g60f0560f53e3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
==================================================================

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/24 05:22 upstream 60f0560f53e3 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in inode_update_timestamps / inode_update_timestamps
2024/08/09 08:29 upstream cf6d429eb656 61405512 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in inode_update_timestamps / inode_update_timestamps
2024/07/08 18:41 upstream 256abd8e550c cde64f7d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in inode_update_timestamps / inode_update_timestamps
2024/07/03 22:10 upstream 8a9c6c40432e f76a75f3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in inode_update_timestamps / inode_update_timestamps
2024/06/25 18:47 upstream 55027e689933 04bd2a30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in inode_update_timestamps / inode_update_timestamps
2024/06/23 22:42 upstream 7c16f0a4ed1c edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in inode_update_timestamps / inode_update_timestamps
2024/05/25 01:01 upstream 02c438bbfffe a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in inode_update_timestamps / inode_update_timestamps
2024/05/23 14:13 upstream 2a8120d7b482 4c2072ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in inode_update_timestamps / inode_update_timestamps
2024/05/15 15:33 upstream b850dc206a57 94b087b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in inode_update_timestamps / inode_update_timestamps
* Struck through repros no longer work on HEAD.