syzbot


KCSAN: data-race in compact_finished / compact_zone

Status: auto-closed as invalid on 2021/08/26 08:54
Subsystems: mm
[Documentation on labels]
First crash: 1007d, last: 1007d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in compact_finished / compact_zone (2) mm 1 671d 671d 0/26 auto-closed as invalid on 2022/07/29 03:22

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

write to 0xffff88823fffa8d0 of 8 bytes by task 19556 on cpu 1:
 reset_cached_positions mm/compaction.c:232 [inline]
 __compact_finished mm/compaction.c:2041 [inline]
 compact_finished+0x10e/0x560 mm/compaction.c:2146
 compact_zone+0x186b/0x1ce0 mm/compaction.c:2358
 compact_zone_order mm/compaction.c:2519 [inline]
 try_to_compact_pages+0x317/0x840 mm/compaction.c:2585
 __alloc_pages_direct_compact+0x61/0x330 mm/page_alloc.c:4370
 __alloc_pages_slowpath+0x29a/0xb90 mm/page_alloc.c:4954
 __alloc_pages+0x25b/0x320 mm/page_alloc.c:5401
 alloc_pages+0x2e8/0x340 mm/mempolicy.c:2244
 __get_free_pages+0x8/0x30 mm/page_alloc.c:5425
 io_mem_alloc fs/io_uring.c:8122 [inline]
 io_allocate_scq_urings fs/io_uring.c:9512 [inline]
 io_uring_create+0x904/0x1930 fs/io_uring.c:9648
 io_uring_setup fs/io_uring.c:9738 [inline]
 __do_sys_io_uring_setup fs/io_uring.c:9744 [inline]
 __se_sys_io_uring_setup fs/io_uring.c:9741 [inline]
 __x64_sys_io_uring_setup+0xe1/0x120 fs/io_uring.c:9741
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88823fffa8d0 of 8 bytes by task 19552 on cpu 0:
 update_cached_migrate mm/compaction.c:433 [inline]
 isolate_migratepages mm/compaction.c:1925 [inline]
 compact_zone+0x1422/0x1ce0 mm/compaction.c:2376
 compact_zone_order mm/compaction.c:2519 [inline]
 try_to_compact_pages+0x317/0x840 mm/compaction.c:2585
 __alloc_pages_direct_compact+0x61/0x330 mm/page_alloc.c:4370
 __alloc_pages_slowpath+0x29a/0xb90 mm/page_alloc.c:4954
 __alloc_pages+0x25b/0x320 mm/page_alloc.c:5401
 alloc_pages+0x2e8/0x340 mm/mempolicy.c:2244
 __get_free_pages+0x8/0x30 mm/page_alloc.c:5425
 io_mem_alloc fs/io_uring.c:8122 [inline]
 io_allocate_scq_urings fs/io_uring.c:9512 [inline]
 io_uring_create+0x904/0x1930 fs/io_uring.c:9648
 io_uring_setup fs/io_uring.c:9738 [inline]
 __do_sys_io_uring_setup fs/io_uring.c:9744 [inline]
 __se_sys_io_uring_setup fs/io_uring.c:9741 [inline]
 __x64_sys_io_uring_setup+0xe1/0x120 fs/io_uring.c:9741
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0x90 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000000000bc200 -> 0x0000000000001000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 19552 Comm: syz-executor.5 Tainted: G        W         5.14.0-rc2-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/07/22 08:53 upstream 7b6ae471e541 29c3f20f .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in compact_finished / compact_zone
* Struck through repros no longer work on HEAD.