syzbot


KCSAN: data-race in shmem_file_read_iter / shmem_setattr (5)

Status: auto-closed as invalid on 2022/10/07 03:18
Subsystems: mm
[Documentation on labels]
First crash: 594d, last: 594d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in shmem_file_read_iter / shmem_setattr (8) mm 5 341d 389d 0/26 auto-obsoleted due to no activity on 2023/06/17 08:48
upstream KCSAN: data-race in shmem_file_read_iter / shmem_setattr (9) mm 1 48d 48d 0/26 auto-obsoleted due to no activity on 2024/04/05 18:31
upstream KCSAN: data-race in shmem_file_read_iter / shmem_setattr (7) mm 2 472d 496d 0/26 auto-obsoleted due to no activity on 2023/02/11 12:28
upstream KCSAN: data-race in shmem_file_read_iter / shmem_setattr (2) mm 1 1074d 1074d 0/26 auto-closed as invalid on 2021/06/14 12:51
upstream KCSAN: data-race in shmem_file_read_iter / shmem_setattr (4) mm 3 654d 658d 0/26 auto-closed as invalid on 2022/08/08 10:34
upstream KCSAN: data-race in shmem_file_read_iter / shmem_setattr (6) mm 2 536d 540d 0/26 auto-obsoleted due to no activity on 2022/12/04 01:06
upstream KCSAN: data-race in shmem_file_read_iter / shmem_setattr (3) mm 1 924d 924d 0/26 auto-closed as invalid on 2021/11/11 20:26
upstream KCSAN: data-race in shmem_file_read_iter / shmem_setattr mm 3 1182d 1217d 0/26 auto-closed as invalid on 2021/02/26 05:27

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

write to 0xffff88811f208750 of 8 bytes by task 10382 on cpu 0:
 i_size_write include/linux/fs.h:886 [inline]
 shmem_setattr+0x29c/0x410 mm/shmem.c:1109
 notify_change+0x9f8/0xb20 fs/attr.c:420
 do_truncate fs/open.c:65 [inline]
 do_sys_ftruncate+0x317/0x420 fs/open.c:193
 __do_sys_ftruncate fs/open.c:204 [inline]
 __se_sys_ftruncate fs/open.c:202 [inline]
 __x64_sys_ftruncate+0x2f/0x40 fs/open.c:202
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88811f208750 of 8 bytes by task 10377 on cpu 1:
 i_size_read include/linux/fs.h:864 [inline]
 shmem_file_read_iter+0x407/0x6c0 mm/shmem.c:2581
 call_read_iter include/linux/fs.h:2181 [inline]
 generic_file_splice_read+0xde/0x2b0 fs/splice.c:309
 do_splice_to fs/splice.c:793 [inline]
 splice_direct_to_actor+0x26c/0x620 fs/splice.c:865
 do_splice_direct+0xfb/0x180 fs/splice.c:974
 do_sendfile+0x3bf/0x910 fs/read_write.c:1249
 __do_sys_sendfile64 fs/read_write.c:1311 [inline]
 __se_sys_sendfile64 fs/read_write.c:1303 [inline]
 __x64_sys_sendfile64+0xb9/0x150 fs/read_write.c:1303
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x000000000000060b -> 0x0000000000000004

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 10377 Comm: syz-executor.4 Not tainted 6.0.0-rc3-syzkaller-00107-g42e66b1cc3a0-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/02 03:10 upstream 42e66b1cc3a0 a805568e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_setattr
* Struck through repros no longer work on HEAD.