syzbot


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

Status: auto-closed as invalid on 2021/07/30 06:37
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 408d, last: 408d
similar bugs (5):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in shmem_getpage_gfp / shmem_setattr (5) 1 80d 80d 0/23 auto-closed as invalid on 2022/06/22 18:08
upstream KCSAN: data-race in shmem_getpage_gfp / shmem_setattr (2) 1 501d 501d 0/23 auto-closed as invalid on 2021/04/27 17:19
upstream KCSAN: data-race in shmem_getpage_gfp / shmem_setattr (6) 1 44d 44d 0/23 auto-closed as invalid on 2022/07/29 03:11
upstream KCSAN: data-race in shmem_getpage_gfp / shmem_setattr 3 540d 557d 0/23 auto-closed as invalid on 2021/03/20 09:15
upstream KCSAN: data-race in shmem_getpage_gfp / shmem_setattr (3) 1 456d 456d 0/23 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 0xffff88813026dde0 of 8 bytes by task 23753 on cpu 0:
 i_size_write include/linux/fs.h:871 [inline]
 shmem_setattr+0x299/0x450 mm/shmem.c:1082
 notify_change+0x8a3/0xa80 fs/attr.c:398
 do_truncate fs/open.c:64 [inline]
 do_sys_ftruncate+0x405/0x4c0 fs/open.c:196
 __do_sys_ftruncate fs/open.c:207 [inline]
 __se_sys_ftruncate fs/open.c:205 [inline]
 __x64_sys_ftruncate+0x2f/0x40 fs/open.c:205
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88813026dde0 of 8 bytes by task 23750 on cpu 1:
 i_size_read include/linux/fs.h:849 [inline]
 shmem_getpage_gfp+0x1a5/0x1410 mm/shmem.c:1814
 shmem_fault+0x16d/0x500 mm/shmem.c:2116
 __do_fault mm/memory.c:3721 [inline]
 do_cow_fault mm/memory.c:4054 [inline]
 do_fault mm/memory.c:4155 [inline]
 handle_pte_fault mm/memory.c:4412 [inline]
 __handle_mm_fault mm/memory.c:4547 [inline]
 handle_mm_fault+0x128f/0x1a70 mm/memory.c:4645
 do_user_addr_fault+0x609/0xc00 arch/x86/mm/fault.c:1390
 handle_page_fault arch/x86/mm/fault.c:1475 [inline]
 exc_page_fault+0x91/0x230 arch/x86/mm/fault.c:1531
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:577

value changed: 0x0000000000000000 -> 0x0000000000208200

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 23750 Comm: syz-executor.0 Tainted: G        W         5.13.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/06/25 06:28 upstream 4a09d388f2ab 0edbbe31 .config log report info KCSAN: data-race in shmem_getpage_gfp / shmem_setattr