syzbot


KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block (7)

Status: auto-obsoleted due to no activity on 2023/10/31 19:28
Subsystems: mm
[Documentation on labels]
First crash: 218d, last: 218d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block (3) mm 161 1103d 1241d 0/26 auto-closed as invalid on 2021/05/29 14:14
upstream KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block mm 1 1561d 1561d 0/26 auto-closed as invalid on 2020/04/01 04:50
upstream KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block (8) mm 1 77d 77d 0/26 auto-obsoleted due to no activity on 2024/03/19 21:54
upstream KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block (6) mm 1 374d 374d 0/26 auto-obsoleted due to no activity on 2023/05/28 14:16
upstream KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block (4) mm 1 995d 995d 0/26 auto-closed as invalid on 2021/09/14 06:37
upstream KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block (2) mm 1 1369d 1369d 0/26 auto-closed as invalid on 2020/09/05 12:48
upstream KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block (5) mm 1 590d 590d 0/26 auto-obsoleted due to no activity on 2022/10/24 05:31

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

read to 0xffff88823fffad90 of 8 bytes by task 19023 on cpu 1:
 update_cached_migrate mm/compaction.c:473 [inline]
 isolate_migratepages_block+0x1ca3/0x1f40 mm/compaction.c:1260
 isolate_migratepages mm/compaction.c:2053 [inline]
 compact_zone+0x1baf/0x2640 mm/compaction.c:2491
 compact_zone_order mm/compaction.c:2651 [inline]
 try_to_compact_pages+0x39b/0x930 mm/compaction.c:2712
 __alloc_pages_direct_compact+0x75/0x1f0 mm/page_alloc.c:3383
 __alloc_pages_slowpath+0x232/0xd90 mm/page_alloc.c:3977
 __alloc_pages+0x25d/0x340 mm/page_alloc.c:4439
 alloc_pages+0x3e1/0x4e0
 vm_area_alloc_pages mm/vmalloc.c:3063 [inline]
 __vmalloc_area_node mm/vmalloc.c:3139 [inline]
 __vmalloc_node_range+0x6d2/0xea0 mm/vmalloc.c:3320
 kvmalloc_node+0x121/0x160 mm/util.c:632
 kvmalloc include/linux/slab.h:737 [inline]
 kvmalloc_array include/linux/slab.h:755 [inline]
 kvcalloc include/linux/slab.h:760 [inline]
 check_btf_line kernel/bpf/verifier.c:15149 [inline]
 check_btf_info+0x4e5/0x1390 kernel/bpf/verifier.c:15345
 bpf_check+0x215a/0x8290 kernel/bpf/verifier.c:19749
 bpf_prog_load+0xda6/0xf50 kernel/bpf/syscall.c:2708
 __sys_bpf+0x41c/0x780 kernel/bpf/syscall.c:5335
 __do_sys_bpf kernel/bpf/syscall.c:5439 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5437 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5437
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

write to 0xffff88823fffad90 of 8 bytes by task 19028 on cpu 0:
 update_cached_migrate mm/compaction.c:474 [inline]
 isolate_migratepages_block+0x1ccb/0x1f40 mm/compaction.c:1260
 isolate_migratepages mm/compaction.c:2053 [inline]
 compact_zone+0x1baf/0x2640 mm/compaction.c:2491
 compact_zone_order mm/compaction.c:2651 [inline]
 try_to_compact_pages+0x39b/0x930 mm/compaction.c:2712
 __alloc_pages_direct_compact+0x75/0x1f0 mm/page_alloc.c:3383
 __alloc_pages_slowpath+0x578/0xd90 mm/page_alloc.c:4060
 __alloc_pages+0x25d/0x340 mm/page_alloc.c:4439
 alloc_pages+0x3e1/0x4e0
 vm_area_alloc_pages mm/vmalloc.c:3063 [inline]
 __vmalloc_area_node mm/vmalloc.c:3139 [inline]
 __vmalloc_node_range+0x6d2/0xea0 mm/vmalloc.c:3320
 kvmalloc_node+0x121/0x160 mm/util.c:632
 kvmalloc include/linux/slab.h:737 [inline]
 kvmalloc_array include/linux/slab.h:755 [inline]
 kvcalloc include/linux/slab.h:760 [inline]
 check_btf_line kernel/bpf/verifier.c:15149 [inline]
 check_btf_info+0x4e5/0x1390 kernel/bpf/verifier.c:15345
 bpf_check+0x215a/0x8290 kernel/bpf/verifier.c:19749
 bpf_prog_load+0xda6/0xf50 kernel/bpf/syscall.c:2708
 __sys_bpf+0x41c/0x780 kernel/bpf/syscall.c:5335
 __do_sys_bpf kernel/bpf/syscall.c:5439 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5437 [inline]
 __x64_sys_bpf+0x43/0x50 kernel/bpf/syscall.c:5437
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x000000000022f200 -> 0x000000000022f600

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 19028 Comm: syz-executor.2 Not tainted 6.6.0-rc3-syzkaller-00025-g50768a425b46 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/26 19:20 upstream 50768a425b46 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block
* Struck through repros no longer work on HEAD.