================================================================== BUG: KCSAN: data-race in shmem_file_read_iter / shmem_write_end write to 0xffff888158041270 of 8 bytes by task 4340 on cpu 0: i_size_write include/linux/fs.h:932 [inline] shmem_write_end+0x9a/0x470 mm/shmem.c:2743 generic_perform_write+0x267/0x410 mm/filemap.c:3938 shmem_file_write_iter+0xc8/0xe0 mm/shmem.c:2895 call_write_iter include/linux/fs.h:2020 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x48a/0x790 fs/read_write.c:584 ksys_write+0xeb/0x1a0 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x42/0x50 fs/read_write.c:646 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b read to 0xffff888158041270 of 8 bytes by task 4341 on cpu 1: i_size_read include/linux/fs.h:910 [inline] shmem_file_read_iter+0x3b0/0x550 mm/shmem.c:2779 __kernel_read+0x1c2/0x410 fs/read_write.c:428 kernel_read+0xae/0x170 fs/read_write.c:446 kernel_read_file+0x35b/0x4e0 fs/kernel_read_file.c:93 init_module_from_file kernel/module/main.c:3129 [inline] idempotent_init_module kernel/module/main.c:3166 [inline] __do_sys_finit_module kernel/module/main.c:3186 [inline] __se_sys_finit_module+0x2d1/0x4f0 kernel/module/main.c:3169 __x64_sys_finit_module+0x43/0x50 kernel/module/main.c:3169 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x0000000000c5a000 -> 0x0000000000c5f000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 4341 Comm: syz-executor.5 Not tainted 6.7.0-rc8-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 ================================================================== Invalid ELF header magic: != ELF