syzbot


KCSAN: data-race in compact_zone / isolate_migratepages_block (3)

Status: auto-obsoleted due to no activity on 2024/02/03 18:40
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+8d5bd9698bf066ab106d@syzkaller.appspotmail.com
First crash: 331d, last: 310d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in compact_zone / isolate_migratepages_block mm 1 1403d 1403d 0/28 auto-closed as invalid on 2021/02/06 01:09
upstream KCSAN: data-race in compact_zone / isolate_migratepages_block (4) mm 5 82d 100d 0/28 auto-obsoleted due to no activity on 2024/09/19 07:24
upstream KCSAN: data-race in compact_zone / isolate_migratepages_block (2) mm 1 1332d 1332d 0/28 auto-closed as invalid on 2021/05/17 11:16

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

read to 0xffff88823fffa8d8 of 8 bytes by task 31 on cpu 0:
 update_cached_migrate mm/compaction.c:475 [inline]
 isolate_migratepages_block+0x1da2/0x1f40 mm/compaction.c:1259
 isolate_migratepages mm/compaction.c:2052 [inline]
 compact_zone+0x1c6c/0x2720 mm/compaction.c:2508
 kcompactd_do_work mm/compaction.c:2992 [inline]
 kcompactd+0x4bf/0xfa0 mm/compaction.c:3091
 kthread+0x1d7/0x210 kernel/kthread.c:388
 ret_from_fork+0x48/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242

write to 0xffff88823fffa8d8 of 8 bytes by task 28190 on cpu 1:
 compact_zone+0x21e8/0x2720 mm/compaction.c:2516
 compact_zone_order mm/compaction.c:2668 [inline]
 try_to_compact_pages+0x39b/0x930 mm/compaction.c:2729
 __alloc_pages_direct_compact+0x75/0x1f0 mm/page_alloc.c:3525
 __alloc_pages_slowpath+0x232/0xd90 mm/page_alloc.c:4119
 __alloc_pages+0x25d/0x340 mm/page_alloc.c:4581
 alloc_pages_mpol+0xb1/0x1d0 mm/mempolicy.c:2133
 alloc_pages+0xe0/0x100 mm/mempolicy.c:2204
 __get_free_pages+0xc/0x30 mm/page_alloc.c:4615
 io_mem_alloc io_uring/io_uring.c:2789 [inline]
 io_allocate_scq_urings+0x2b8/0x360 io_uring/io_uring.c:3842
 io_uring_create+0x537/0x920 io_uring/io_uring.c:4019
 io_uring_setup io_uring/io_uring.c:4131 [inline]
 __do_sys_io_uring_setup io_uring/io_uring.c:4158 [inline]
 __se_sys_io_uring_setup+0x1ce/0x1e0 io_uring/io_uring.c:4152
 __x64_sys_io_uring_setup+0x31/0x40 io_uring/io_uring.c:4152
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x000000000005c800 -> 0x000000000005cc00

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 28190 Comm: syz-executor.2 Not tainted 6.7.0-rc7-syzkaller-00041-gf016f7547aee #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/30 18:39 upstream f016f7547aee fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in compact_zone / isolate_migratepages_block
2023/12/09 12:22 upstream f2e8a57ee903 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in compact_zone / isolate_migratepages_block
* Struck through repros no longer work on HEAD.