syzbot


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

Status: auto-closed as invalid on 2022/06/22 18:08
Subsystems: mm
[Documentation on labels]
First crash: 698d, last: 698d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in shmem_getpage_gfp / shmem_setattr (4) mm 1 1026d 1026d 0/26 auto-closed as invalid on 2021/07/30 06:37
upstream KCSAN: data-race in shmem_getpage_gfp / shmem_setattr (2) mm 1 1119d 1119d 0/26 auto-closed as invalid on 2021/04/27 17:19
upstream KCSAN: data-race in shmem_getpage_gfp / shmem_setattr (6) mm 1 662d 662d 0/26 auto-closed as invalid on 2022/07/29 03:11
upstream KCSAN: data-race in shmem_getpage_gfp / shmem_setattr mm 3 1158d 1175d 0/26 auto-closed as invalid on 2021/03/20 09:15
upstream KCSAN: data-race in shmem_getpage_gfp / shmem_setattr (7) mm 1 614d 614d 0/26 auto-closed as invalid on 2022/09/15 11:44
upstream KCSAN: data-race in shmem_getpage_gfp / shmem_setattr (3) mm 1 1074d 1074d 0/26 auto-closed as invalid on 2021/06/11 21:53

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

write to 0xffff88813128bcd8 of 8 bytes by task 12855 on cpu 0:
 i_size_write include/linux/fs.h:878 [inline]
 shmem_setattr+0x29c/0x410 mm/shmem.c:1100
 notify_change+0x9c3/0xa30 fs/attr.c:410
 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+0x44/0xae

read to 0xffff88813128bcd8 of 8 bytes by task 12840 on cpu 1:
 i_size_read include/linux/fs.h:856 [inline]
 shmem_getpage_gfp+0x17c/0x16c0 mm/shmem.c:1805
 shmem_getpage mm/shmem.c:149 [inline]
 shmem_file_read_iter+0x151/0x6a0 mm/shmem.c:2526
 call_read_iter include/linux/fs.h:2044 [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:1246
 __do_sys_sendfile64 fs/read_write.c:1305 [inline]
 __se_sys_sendfile64 fs/read_write.c:1297 [inline]
 __x64_sys_sendfile64+0xb9/0x150 fs/read_write.c:1297
 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+0x44/0xae

value changed: 0x000000000000046d -> 0x0000000000000004

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 12840 Comm: syz-executor.2 Not tainted 5.18.0-rc7-syzkaller-00015-gef1302160bfb-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/05/18 18:05 upstream ef1302160bfb 50c53f39 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in shmem_getpage_gfp / shmem_setattr
* Struck through repros no longer work on HEAD.