syzbot


KCSAN: data-race in isolate_migratepages_block / move_to_new_page

Status: auto-closed as invalid on 2021/04/27 09:07
Subsystems: mm
[Documentation on labels]
First crash: 1129d, last: 1129d

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

write to 0xffffea0004287598 of 8 bytes by task 24549 on cpu 0:
 move_to_new_page+0x3b8/0x6c0 mm/migrate.c:1012
 __unmap_and_move+0x437/0x6a0 mm/migrate.c:1133
 unmap_and_move+0x131/0x690 mm/migrate.c:1200
 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

read to 0xffffea0004287598 of 8 bytes by task 24570 on cpu 1:
 __PageMovable include/linux/page-flags.h:489 [inline]
 isolate_migratepages_block+0x727/0x1c90 mm/compaction.c:952
 isolate_migratepages mm/compaction.c:1892 [inline]
 compact_zone+0x1597/0x1e60 mm/compaction.c:2342
 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: 24570 Comm: syz-executor.4 Not tainted 5.12.0-rc4-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/03/23 09:01 upstream 84196390620a 8092f30d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in isolate_migratepages_block / move_to_new_page
* Struck through repros no longer work on HEAD.