syzbot


KCSAN: data-race in compact_zone / isolate_migratepages_block

Status: auto-closed as invalid on 2021/02/06 01:09
Subsystems: mm
[Documentation on labels]
First crash: 1403d, last: 1403d
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 (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
upstream KCSAN: data-race in compact_zone / isolate_migratepages_block (3) mm 2 310d 329d 0/28 auto-obsoleted due to no activity on 2024/02/03 18:40

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

write to 0xffff88813fffbc18 of 8 bytes by task 29881 on cpu 0:
 update_cached_migrate mm/compaction.c:438 [inline]
 isolate_migratepages_block+0x19f9/0x1cb0 mm/compaction.c:1126
 isolate_migratepages mm/compaction.c:1892 [inline]
 compact_zone+0x1476/0x1d30 mm/compaction.c:2334
 compact_node+0xe4/0x1e0 mm/compaction.c:2633
 compact_nodes mm/compaction.c:2649 [inline]
 sysctl_compaction_handler+0x47/0x90 mm/compaction.c:2670
 proc_sys_call_handler+0x329/0x4e0 fs/proc/proc_sysctl.c:591
 proc_sys_write+0x1e/0x30 fs/proc/proc_sysctl.c:617
 call_write_iter include/linux/fs.h:1901 [inline]
 new_sync_write fs/read_write.c:518 [inline]
 vfs_write+0x6d4/0x7c0 fs/read_write.c:605
 ksys_write+0xce/0x180 fs/read_write.c:658
 __do_sys_write fs/read_write.c:670 [inline]
 __se_sys_write fs/read_write.c:667 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:667
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88813fffbc18 of 8 bytes by task 29879 on cpu 1:
 update_cached_migrate mm/compaction.c:437 [inline]
 isolate_migratepages mm/compaction.c:1887 [inline]
 compact_zone+0x13cd/0x1d30 mm/compaction.c:2334
 compact_node+0xe4/0x1e0 mm/compaction.c:2633
 compact_nodes mm/compaction.c:2649 [inline]
 sysctl_compaction_handler+0x47/0x90 mm/compaction.c:2670
 proc_sys_call_handler+0x329/0x4e0 fs/proc/proc_sysctl.c:591
 proc_sys_write+0x1e/0x30 fs/proc/proc_sysctl.c:617
 call_write_iter include/linux/fs.h:1901 [inline]
 new_sync_write fs/read_write.c:518 [inline]
 vfs_write+0x6d4/0x7c0 fs/read_write.c:605
 ksys_write+0xce/0x180 fs/read_write.c:658
 __do_sys_write fs/read_write.c:670 [inline]
 __se_sys_write fs/read_write.c:667 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:667
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 29879 Comm: syz-executor.5 Not tainted 5.11.0-rc1-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/01/02 01:02 upstream eda809aef534 79264ae3 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.