syzbot


KCSAN: data-race in compact_finished / compaction_alloc (3)

Status: auto-closed as invalid on 2021/05/17 10:01
Subsystems: mm
[Documentation on labels]
First crash: 1109d, last: 1109d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in compact_finished / compaction_alloc (2) mm 1 1163d 1163d 0/26 auto-closed as invalid on 2021/03/25 00:19
upstream KCSAN: data-race in compact_finished / compaction_alloc mm 2 1210d 1221d 0/26 auto-closed as invalid on 2021/02/05 19:39

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

write to 0xffff88823fff9288 of 8 bytes by task 19497 on cpu 0:
 reset_cached_positions mm/compaction.c:234 [inline]
 __compact_finished mm/compaction.c:2008 [inline]
 compact_finished+0x166/0x600 mm/compaction.c:2113
 compact_zone+0x18dd/0x1e60 mm/compaction.c:2324
 compact_node+0x128/0x1e0 mm/compaction.c:2641
 compact_nodes mm/compaction.c:2657 [inline]
 sysctl_compaction_handler+0x47/0x90 mm/compaction.c:2678
 proc_sys_call_handler+0x3dd/0x530 fs/proc/proc_sysctl.c:591
 proc_sys_write+0x1e/0x30 fs/proc/proc_sysctl.c:617
 call_write_iter include/linux/fs.h:1977 [inline]
 new_sync_write fs/read_write.c:518 [inline]
 vfs_write+0x6f9/0x7e0 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/0xae

read to 0xffff88823fff9288 of 8 bytes by task 19491 on cpu 1:
 update_pageblock_skip mm/compaction.c:458 [inline]
 isolate_freepages mm/compaction.c:1574 [inline]
 compaction_alloc+0x1375/0x1670 mm/compaction.c:1627
 unmap_and_move+0x113/0x690 mm/migrate.c:1196
 migrate_pages+0x2f7/0xfb0 mm/migrate.c:1472
 compact_zone+0x1617/0x1e60 mm/compaction.c:2365
 compact_node+0x128/0x1e0 mm/compaction.c:2641
 compact_nodes mm/compaction.c:2657 [inline]
 sysctl_compaction_handler+0x47/0x90 mm/compaction.c:2678
 proc_sys_call_handler+0x3dd/0x530 fs/proc/proc_sysctl.c:591
 proc_sys_write+0x1e/0x30 fs/proc/proc_sysctl.c:617
 call_write_iter include/linux/fs.h:1977 [inline]
 new_sync_write fs/read_write.c:518 [inline]
 vfs_write+0x6f9/0x7e0 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/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 19491 Comm: syz-executor.4 Not tainted 5.12.0-rc7-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/04/12 09:40 upstream d434405aaab7 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in compact_finished / compaction_alloc
* Struck through repros no longer work on HEAD.