syzbot


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

Status: moderation: reported on 2024/05/15 15:33
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+33da257fe0b2bf79265a@syzkaller.appspotmail.com
First crash: 61d, last: 6d22h
Similar bugs (1)
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 116d 219d 0/27 auto-obsoleted due to no activity on 2024/04/18 13:35

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

write to 0xffff888106a4db38 of 8 bytes by task 7248 on cpu 1:
 inode_set_mtime_to_ts include/linux/fs.h:1587 [inline]
 inode_update_timestamps+0x15b/0x280 fs/inode.c:1865
 generic_update_time fs/inode.c:1900 [inline]
 inode_update_time fs/inode.c:1920 [inline]
 __file_update_time fs/inode.c:2109 [inline]
 file_update_time+0x22f/0x2c0 fs/inode.c:2139
 pipe_write+0xa87/0xd30 fs/pipe.c:607
 new_sync_write fs/read_write.c:497 [inline]
 vfs_write+0x78f/0x900 fs/read_write.c:590
 ksys_write+0xeb/0x1b0 fs/read_write.c:643
 __do_sys_write fs/read_write.c:655 [inline]
 __se_sys_write fs/read_write.c:652 [inline]
 __x64_sys_write+0x42/0x50 fs/read_write.c:652
 x64_sys_call+0x27ef/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:2
 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

write to 0xffff888106a4db38 of 8 bytes by task 3165 on cpu 0:
 inode_set_mtime_to_ts include/linux/fs.h:1587 [inline]
 inode_update_timestamps+0x15b/0x280 fs/inode.c:1865
 generic_update_time fs/inode.c:1900 [inline]
 inode_update_time fs/inode.c:1920 [inline]
 __file_update_time fs/inode.c:2109 [inline]
 file_update_time+0x22f/0x2c0 fs/inode.c:2139
 pipe_write+0xa87/0xd30 fs/pipe.c:607
 __kernel_write_iter+0x24f/0x4e0 fs/read_write.c:523
 __kernel_write fs/read_write.c:543 [inline]
 kernel_write+0x1f3/0x410 fs/read_write.c:564
 p9_fd_write net/9p/trans_fd.c:432 [inline]
 p9_write_work+0x32a/0x750 net/9p/trans_fd.c:483
 process_one_work kernel/workqueue.c:3248 [inline]
 process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3329
 worker_thread+0x526/0x720 kernel/workqueue.c:3409
 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

value changed: 0x00000000668c35db -> 0x00000000668c35dc

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3165 Comm: kworker/0:7 Not tainted 6.10.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Workqueue: events p9_write_work
==================================================================

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