syzbot


KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block (8)

Status: auto-obsoleted due to no activity on 2024/03/19 21:54
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+562ba2e140e43692a0c2@syzkaller.appspotmail.com
First crash: 65d, last: 65d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block (3) mm 161 1090d 1228d 0/26 auto-closed as invalid on 2021/05/29 14:14
upstream KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block mm 1 1549d 1549d 0/26 auto-closed as invalid on 2020/04/01 04:50
upstream KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block (6) mm 1 361d 361d 0/26 auto-obsoleted due to no activity on 2023/05/28 14:16
upstream KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block (4) mm 1 983d 983d 0/26 auto-closed as invalid on 2021/09/14 06:37
upstream KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block (2) mm 1 1356d 1356d 0/26 auto-closed as invalid on 2020/09/05 12:48
upstream KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block (7) mm 1 205d 205d 0/26 auto-obsoleted due to no activity on 2023/10/31 19:28
upstream KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block (5) mm 1 578d 578d 0/26 auto-obsoleted due to no activity on 2022/10/24 05:31

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

read to 0xffff88823fffa8d0 of 8 bytes by task 30807 on cpu 0:
 update_cached_migrate mm/compaction.c:472 [inline]
 isolate_migratepages_block+0x1a04/0x1c70 mm/compaction.c:1278
 isolate_migratepages mm/compaction.c:2074 [inline]
 compact_zone+0x1c6c/0x2720 mm/compaction.c:2530
 compact_zone_order mm/compaction.c:2690 [inline]
 try_to_compact_pages+0x39b/0x930 mm/compaction.c:2751
 __alloc_pages_direct_compact+0x75/0x1f0 mm/page_alloc.c:3524
 __alloc_pages_slowpath+0x233/0xd50 mm/page_alloc.c:4118
 __alloc_pages+0x25f/0x340 mm/page_alloc.c:4580
 alloc_pages_mpol+0xb1/0x1d0 mm/mempolicy.c:2133
 alloc_pages+0xe0/0x100 mm/mempolicy.c:2204
 vm_area_alloc_pages mm/vmalloc.c:3063 [inline]
 __vmalloc_area_node mm/vmalloc.c:3139 [inline]
 __vmalloc_node_range+0x6ee/0xec0 mm/vmalloc.c:3320
 kvmalloc_node+0x121/0x170 mm/util.c:642
 kvmalloc include/linux/slab.h:728 [inline]
 kvmalloc_array include/linux/slab.h:746 [inline]
 kvcalloc include/linux/slab.h:751 [inline]
 xt_alloc_entry_offsets+0x43/0x50 net/netfilter/x_tables.c:968
 translate_table+0xa1/0xf60 net/ipv4/netfilter/ip_tables.c:678
 do_replace net/ipv4/netfilter/ip_tables.c:1133 [inline]
 do_ipt_set_ctl+0x13f0/0x1740 net/ipv4/netfilter/ip_tables.c:1627
 nf_setsockopt+0x18d/0x1b0 net/netfilter/nf_sockopt.c:101
 ip_setsockopt+0xe6/0x100 net/ipv4/ip_sockglue.c:1420
 udp_setsockopt+0x95/0xa0 net/ipv4/udp.c:2788
 sock_common_setsockopt+0x61/0x70 net/core/sock.c:3716
 do_sock_setsockopt net/socket.c:2311 [inline]
 __sys_setsockopt+0x1d4/0x240 net/socket.c:2334
 __do_sys_setsockopt net/socket.c:2343 [inline]
 __se_sys_setsockopt net/socket.c:2340 [inline]
 __x64_sys_setsockopt+0x66/0x80 net/socket.c:2340
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

write to 0xffff88823fffa8d0 of 8 bytes by task 30803 on cpu 1:
 update_cached_migrate mm/compaction.c:473 [inline]
 isolate_migratepages_block+0x1a28/0x1c70 mm/compaction.c:1278
 isolate_migratepages mm/compaction.c:2074 [inline]
 compact_zone+0x1c6c/0x2720 mm/compaction.c:2530
 compact_zone_order mm/compaction.c:2690 [inline]
 try_to_compact_pages+0x39b/0x930 mm/compaction.c:2751
 __alloc_pages_direct_compact+0x75/0x1f0 mm/page_alloc.c:3524
 __alloc_pages_slowpath+0x233/0xd50 mm/page_alloc.c:4118
 __alloc_pages+0x25f/0x340 mm/page_alloc.c:4580
 alloc_pages_mpol+0xb1/0x1d0 mm/mempolicy.c:2133
 alloc_pages+0xe0/0x100 mm/mempolicy.c:2204
 vm_area_alloc_pages mm/vmalloc.c:3063 [inline]
 __vmalloc_area_node mm/vmalloc.c:3139 [inline]
 __vmalloc_node_range+0x6ee/0xec0 mm/vmalloc.c:3320
 kvmalloc_node+0x121/0x170 mm/util.c:642
 kvmalloc include/linux/slab.h:728 [inline]
 kvmalloc_array include/linux/slab.h:746 [inline]
 kvcalloc include/linux/slab.h:751 [inline]
 xt_alloc_entry_offsets+0x43/0x50 net/netfilter/x_tables.c:968
 translate_table+0xa1/0xf60 net/ipv4/netfilter/ip_tables.c:678
 do_replace net/ipv4/netfilter/ip_tables.c:1133 [inline]
 do_ipt_set_ctl+0x13f0/0x1740 net/ipv4/netfilter/ip_tables.c:1627
 nf_setsockopt+0x18d/0x1b0 net/netfilter/nf_sockopt.c:101
 ip_setsockopt+0xe6/0x100 net/ipv4/ip_sockglue.c:1420
 udp_setsockopt+0x95/0xa0 net/ipv4/udp.c:2788
 sock_common_setsockopt+0x61/0x70 net/core/sock.c:3716
 do_sock_setsockopt net/socket.c:2311 [inline]
 __sys_setsockopt+0x1d4/0x240 net/socket.c:2334
 __do_sys_setsockopt net/socket.c:2343 [inline]
 __se_sys_setsockopt net/socket.c:2340 [inline]
 __x64_sys_setsockopt+0x66/0x80 net/socket.c:2340
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x0000000000012c00 -> 0x0000000000013c00

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 30803 Comm: syz-executor.0 Not tainted 6.8.0-rc4-syzkaller-00005-gc664e16bb1ba #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/13 21:54 upstream c664e16bb1ba e66542d7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block
* Struck through repros no longer work on HEAD.