syzbot


KCSAN: data-race in shmem_fallocate / shmem_fault (4)

Status: auto-obsoleted due to no activity on 2023/01/13 18:30
Subsystems: mm
[Documentation on labels]
First crash: 511d, last: 511d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in shmem_fallocate / shmem_fault (6) mm 1 266d 266d 0/26 auto-obsoleted due to no activity on 2023/09/08 14:27
upstream KCSAN: data-race in shmem_fallocate / shmem_fault (2) mm 2 1102d 1107d 0/26 auto-closed as invalid on 2021/05/24 18:53
upstream KCSAN: data-race in shmem_fallocate / shmem_fault (3) mm 2 902d 920d 0/26 auto-closed as invalid on 2021/12/11 00:12
upstream KCSAN: data-race in shmem_fallocate / shmem_fault mm 1 1301d 1301d 0/26 auto-closed as invalid on 2020/11/07 06:23
upstream KCSAN: data-race in shmem_fallocate / shmem_fault (5) mm 1 394d 394d 0/26 auto-obsoleted due to no activity on 2023/05/03 07:41
upstream KCSAN: data-race in shmem_fallocate / shmem_fault (7) mm 7 121d 138d 0/26 auto-obsoleted due to no activity on 2024/01/31 00:24

Sample crash report:
==================================================================
BUG: KCSAN: data-race in shmem_fallocate / shmem_fault

write to 0xffff8881774102f0 of 8 bytes by task 14770 on cpu 1:
 shmem_fallocate+0x244/0x880 mm/shmem.c:2753
 vfs_fallocate+0x355/0x3d0 fs/open.c:323
 madvise_remove+0x11a/0x1d0 mm/madvise.c:991
 madvise_vma_behavior mm/madvise.c:1015 [inline]
 madvise_walk_vmas mm/madvise.c:1250 [inline]
 do_madvise+0x6b7/0x1ac0 mm/madvise.c:1429
 __do_sys_madvise mm/madvise.c:1442 [inline]
 __se_sys_madvise mm/madvise.c:1440 [inline]
 __x64_sys_madvise+0x5d/0x70 mm/madvise.c:1440
 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 0xffff8881774102f0 of 8 bytes by task 14761 on cpu 0:
 shmem_fault+0x8f/0x3d0 mm/shmem.c:2086
 __do_fault mm/memory.c:4203 [inline]
 do_shared_fault mm/memory.c:4609 [inline]
 do_fault+0x5c7/0xaf0 mm/memory.c:4687
 handle_pte_fault mm/memory.c:4955 [inline]
 __handle_mm_fault mm/memory.c:5097 [inline]
 handle_mm_fault+0x877/0xa80 mm/memory.c:5218
 do_user_addr_fault+0x4a1/0x980 arch/x86/mm/fault.c:1428
 handle_page_fault arch/x86/mm/fault.c:1519 [inline]
 exc_page_fault+0x60/0x160 arch/x86/mm/fault.c:1575
 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570
 copy_user_short_string+0xd/0x40 arch/x86/lib/copy_user_64.S:232
 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline]
 raw_copy_to_user arch/x86/include/asm/uaccess_64.h:58 [inline]
 _copy_to_user+0x72/0x90 lib/usercopy.c:34
 copy_to_user include/linux/uaccess.h:169 [inline]
 put_timespec64+0x51/0x90 kernel/time/time.c:812
 nanosleep_copyout+0x47/0xc0 kernel/time/hrtimer.c:2026
 do_cpu_nanosleep+0x2b7/0x310 kernel/time/posix-cpu-timers.c:1533
 posix_cpu_nsleep_restart+0x52/0x70 kernel/time/posix-cpu-timers.c:1575
 __do_sys_restart_syscall+0x2d/0x40 kernel/signal.c:3001
 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: 0x0000000000000000 -> 0xffffc90000c1fca8

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 14761 Comm: syz-executor.1 Not tainted 6.1.0-rc7-syzkaller-00123-ga4412fdd49dc-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/02 17:51 upstream a4412fdd49dc e080de16 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_fallocate / shmem_fault
* Struck through repros no longer work on HEAD.