syzbot


KCSAN: data-race in compact_finished / compaction_alloc

Status: auto-closed as invalid on 2021/02/05 19:39
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 593d, last: 582d
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) 1 535d 535d 0/23 auto-closed as invalid on 2021/03/25 00:19
upstream KCSAN: data-race in compact_finished / compaction_alloc (3) 1 482d 482d 0/23 auto-closed as invalid on 2021/05/17 10:01

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

write to 0xffff88823fff9288 of 8 bytes by task 12411 on cpu 1:
 reset_cached_positions mm/compaction.c:235 [inline]
 __compact_finished mm/compaction.c:2000 [inline]
 compact_finished+0x169/0x640 mm/compaction.c:2105
 compact_zone+0x17db/0x1d30 mm/compaction.c:2316
 compact_node+0x128/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 0xffff88823fff9288 of 8 bytes by task 12413 on cpu 0:
 update_pageblock_skip mm/compaction.c:459 [inline]
 isolate_freepages mm/compaction.c:1571 [inline]
 compaction_alloc+0x127e/0x1540 mm/compaction.c:1624
 unmap_and_move+0x113/0x690 mm/migrate.c:1189
 migrate_pages+0x2ad/0xee0 mm/migrate.c:1459
 compact_zone+0x1500/0x1d30 mm/compaction.c:2357
 compact_node+0x128/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: 0 PID: 12413 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 (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/01/01 19:35 upstream f6e1ea196492 79264ae3 .config log report info
ci2-upstream-kcsan-gce 2020/12/21 23:15 upstream 8653b778e454 04201c06 .config log report info