syzbot


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

Status: auto-closed as invalid on 2022/09/15 11:44
Subsystems: mm
[Documentation on labels]
First crash: 982d, last: 982d
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 1394d 1394d 0/28 auto-closed as invalid on 2021/07/30 06:37
upstream KCSAN: data-race in shmem_getpage_gfp / shmem_setattr (5) mm 1 1066d 1066d 0/28 auto-closed as invalid on 2022/06/22 18:08
upstream KCSAN: data-race in shmem_getpage_gfp / shmem_setattr (2) mm 1 1487d 1487d 0/28 auto-closed as invalid on 2021/04/27 17:19
upstream KCSAN: data-race in shmem_getpage_gfp / shmem_setattr (6) mm 1 1030d 1030d 0/28 auto-closed as invalid on 2022/07/29 03:11
upstream KCSAN: data-race in shmem_getpage_gfp / shmem_setattr mm 3 1526d 1543d 0/28 auto-closed as invalid on 2021/03/20 09:15
upstream KCSAN: data-race in shmem_getpage_gfp / shmem_setattr (3) mm 1 1442d 1442d 0/28 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 0xffff88813252e790 of 8 bytes by task 15004 on cpu 0:
 i_size_write include/linux/fs.h:891 [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 0xffff88813252e790 of 8 bytes by task 15003 on cpu 1:
 i_size_read include/linux/fs.h:869 [inline]
 shmem_getpage_gfp+0x1a3/0x1750 mm/shmem.c:1851
 shmem_getpage mm/shmem.c:150 [inline]
 shmem_file_read_iter+0x161/0x6c0 mm/shmem.c:2576
 call_read_iter include/linux/fs.h:2186 [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:1317 [inline]
 __se_sys_sendfile64 fs/read_write.c:1303 [inline]
 __x64_sys_sendfile64+0x10c/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: 0x000000000400001a -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 15003 Comm: syz-executor.4 Not tainted 5.19.0-syzkaller-13666-gffcf9c5700e4-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/08/11 11:41 upstream ffcf9c5700e4 787ed7e0 .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.