syzbot


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

Status: auto-closed as invalid on 2022/08/08 10:34
Subsystems: mm
[Documentation on labels]
First crash: 695d, last: 691d
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 378d 425d 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 85d 85d 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 509d 533d 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 1111d 1111d 0/26 auto-closed as invalid on 2021/06/14 12:51
upstream KCSAN: data-race in shmem_file_read_iter / shmem_setattr (5) mm 1 631d 631d 0/26 auto-closed as invalid on 2022/10/07 03:18
upstream KCSAN: data-race in shmem_file_read_iter / shmem_setattr (6) mm 2 573d 577d 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 960d 960d 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 1219d 1254d 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 0xffff888123983778 of 8 bytes by task 2533 on cpu 1:
 i_size_write include/linux/fs.h:871 [inline]
 shmem_setattr+0x29c/0x410 mm/shmem.c:1100
 notify_change+0x8e6/0xa00 fs/attr.c:424
 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+0x46/0xb0

read to 0xffff888123983778 of 8 bytes by task 2527 on cpu 0:
 i_size_read include/linux/fs.h:849 [inline]
 shmem_file_read_iter+0x370/0x6a0 mm/shmem.c:2542
 call_read_iter include/linux/fs.h:2052 [inline]
 generic_file_splice_read+0x1de/0x2c0 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x2ac/0x660 fs/splice.c:870
 do_splice_direct+0xfb/0x180 fs/splice.c:979
 do_sendfile+0x3ad/0x900 fs/read_write.c:1262
 __do_sys_sendfile64 fs/read_write.c:1321 [inline]
 __se_sys_sendfile64 fs/read_write.c:1313 [inline]
 __x64_sys_sendfile64+0xb9/0x150 fs/read_write.c:1313
 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+0x46/0xb0

value changed: 0x00000000002e8ece -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 2527 Comm: syz-executor.1 Not tainted 5.19.0-rc5-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/07/04 10:31 upstream 88084a3df167 1434eec0 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_setattr
2022/07/02 10:24 upstream 089866061428 1434eec0 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in shmem_file_read_iter / shmem_setattr
2022/06/30 18:11 upstream 1a0e93df1e10 1434eec0 .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.