syzbot


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

Status: auto-closed as invalid on 2021/04/27 17:19
Subsystems: mm
[Documentation on labels]
First crash: 1101d, last: 1101d
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 1008d 1008d 0/26 auto-closed as invalid on 2021/07/30 06:37
upstream KCSAN: data-race in shmem_getpage_gfp / shmem_setattr (5) mm 1 680d 680d 0/26 auto-closed as invalid on 2022/06/22 18:08
upstream KCSAN: data-race in shmem_getpage_gfp / shmem_setattr (6) mm 1 644d 644d 0/26 auto-closed as invalid on 2022/07/29 03:11
upstream KCSAN: data-race in shmem_getpage_gfp / shmem_setattr mm 3 1139d 1156d 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 595d 595d 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 1056d 1056d 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 0xffff888027102760 of 8 bytes by task 10258 on cpu 1:
 i_size_write include/linux/fs.h:872 [inline]
 shmem_setattr+0x2d7/0x5b0 mm/shmem.c:1082
 notify_change+0x88f/0xa80 fs/attr.c:398
 do_truncate+0xe8/0x130 fs/open.c:64
 handle_truncate fs/namei.c:3018 [inline]
 do_open fs/namei.c:3369 [inline]
 path_openat+0x1b78/0x21b0 fs/namei.c:3498
 do_filp_open+0xbd/0x1d0 fs/namei.c:3525
 do_sys_openat2+0xa3/0x250 fs/open.c:1187
 do_sys_open fs/open.c:1203 [inline]
 __do_sys_open fs/open.c:1211 [inline]
 __se_sys_open fs/open.c:1207 [inline]
 __x64_sys_open+0xe2/0x110 fs/open.c:1207
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888027102760 of 8 bytes by task 10253 on cpu 0:
 i_size_read include/linux/fs.h:850 [inline]
 shmem_getpage_gfp+0x227/0x1980 mm/shmem.c:1814
 shmem_getpage mm/shmem.c:155 [inline]
 shmem_file_read_iter+0x1b8/0x760 mm/shmem.c:2607
 call_read_iter include/linux/fs.h:1971 [inline]
 new_sync_read fs/read_write.c:415 [inline]
 vfs_read+0x565/0x5d0 fs/read_write.c:496
 ksys_read+0xce/0x180 fs/read_write.c:634
 __do_sys_read fs/read_write.c:644 [inline]
 __se_sys_read fs/read_write.c:642 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:642
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 10253 Comm: syz-executor.0 Tainted: G        W         5.12.0-rc4-syzkaller #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
2021/03/23 17:10 upstream 84196390620a e613994b .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.