syzbot


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

Status: auto-obsoleted due to no activity on 2023/05/28 14:16
Subsystems: mm
[Documentation on labels]
First crash: 512d, last: 512d
Similar bugs (8)
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 1241d 1379d 0/28 auto-closed as invalid on 2021/05/29 14:14
upstream KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block mm 1 1699d 1699d 0/28 auto-closed as invalid on 2020/04/01 04:50
upstream KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block (8) mm 1 215d 215d 0/28 auto-obsoleted due to no activity on 2024/03/19 21:54
upstream KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block (9) mm 6 40d 51d 0/28 auto-obsoleted due to no activity on 2024/09/10 21:33
upstream KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block (4) mm 1 1133d 1133d 0/28 auto-closed as invalid on 2021/09/14 06:37
upstream KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block (2) mm 1 1507d 1507d 0/28 auto-closed as invalid on 2020/09/05 12:48
upstream KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block (7) mm 1 356d 356d 0/28 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 728d 728d 0/28 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 29148 on cpu 1:
 update_cached_migrate mm/compaction.c:424 [inline]
 isolate_migratepages_block+0x2770/0x2ba0 mm/compaction.c:1184
 isolate_migratepages mm/compaction.c:1952 [inline]
 compact_zone+0x18f9/0x2340 mm/compaction.c:2397
 compact_zone_order mm/compaction.c:2554 [inline]
 try_to_compact_pages+0x39b/0x930 mm/compaction.c:2617
 __alloc_pages_direct_compact+0x75/0x1f0 mm/page_alloc.c:4534
 __alloc_pages_slowpath+0x232/0xdc0 mm/page_alloc.c:5143
 __alloc_pages+0x25d/0x340 mm/page_alloc.c:5605
 alloc_pages+0x3e1/0x4e0
 vm_area_alloc_pages mm/vmalloc.c:2957 [inline]
 __vmalloc_area_node mm/vmalloc.c:3033 [inline]
 __vmalloc_node_range+0x6d2/0xeb0 mm/vmalloc.c:3205
 kvmalloc_node+0x121/0x160 mm/util.c:628
 kvmalloc include/linux/slab.h:737 [inline]
 kvmalloc_array include/linux/slab.h:755 [inline]
 kvcalloc include/linux/slab.h:760 [inline]
 xt_alloc_entry_offsets+0x43/0x50 net/netfilter/x_tables.c:968
 translate_table+0xa1/0xf60 net/ipv4/netfilter/ip_tables.c:680
 do_replace net/ipv4/netfilter/ip_tables.c:1135 [inline]
 do_ipt_set_ctl+0x13d1/0x1710 net/ipv4/netfilter/ip_tables.c:1629
 nf_setsockopt+0x18d/0x1b0 net/netfilter/nf_sockopt.c:101
 ip_setsockopt+0xe6/0x100 net/ipv4/ip_sockglue.c:1460
 udp_setsockopt+0x95/0xa0 net/ipv4/udp.c:2820
 ipv6_setsockopt+0xfc/0x130 net/ipv6/ipv6_sockglue.c:1006
 tcp_setsockopt+0x90/0xa0 net/ipv4/tcp.c:3804
 sock_common_setsockopt+0x61/0x70 net/core/sock.c:3668
 __sys_setsockopt+0x1c3/0x230 net/socket.c:2271
 __do_sys_setsockopt net/socket.c:2282 [inline]
 __se_sys_setsockopt net/socket.c:2279 [inline]
 __x64_sys_setsockopt+0x66/0x80 net/socket.c:2279
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

write to 0xffff88823fffa8d0 of 8 bytes by task 29149 on cpu 0:
 update_cached_migrate mm/compaction.c:425 [inline]
 isolate_migratepages_block+0x2794/0x2ba0 mm/compaction.c:1184
 isolate_migratepages mm/compaction.c:1952 [inline]
 compact_zone+0x18f9/0x2340 mm/compaction.c:2397
 compact_zone_order mm/compaction.c:2554 [inline]
 try_to_compact_pages+0x39b/0x930 mm/compaction.c:2617
 __alloc_pages_direct_compact+0x75/0x1f0 mm/page_alloc.c:4534
 __alloc_pages_slowpath+0x232/0xdc0 mm/page_alloc.c:5143
 __alloc_pages+0x25d/0x340 mm/page_alloc.c:5605
 alloc_pages+0x3e1/0x4e0
 vm_area_alloc_pages mm/vmalloc.c:2957 [inline]
 __vmalloc_area_node mm/vmalloc.c:3033 [inline]
 __vmalloc_node_range+0x6d2/0xeb0 mm/vmalloc.c:3205
 kvmalloc_node+0x121/0x160 mm/util.c:628
 kvmalloc include/linux/slab.h:737 [inline]
 kvmalloc_array include/linux/slab.h:755 [inline]
 kvcalloc include/linux/slab.h:760 [inline]
 xt_alloc_entry_offsets+0x43/0x50 net/netfilter/x_tables.c:968
 translate_table+0xa1/0xf60 net/ipv4/netfilter/ip_tables.c:680
 do_replace net/ipv4/netfilter/ip_tables.c:1135 [inline]
 do_ipt_set_ctl+0x13d1/0x1710 net/ipv4/netfilter/ip_tables.c:1629
 nf_setsockopt+0x18d/0x1b0 net/netfilter/nf_sockopt.c:101
 ip_setsockopt+0xe6/0x100 net/ipv4/ip_sockglue.c:1460
 udp_setsockopt+0x95/0xa0 net/ipv4/udp.c:2820
 ipv6_setsockopt+0xfc/0x130 net/ipv6/ipv6_sockglue.c:1006
 tcp_setsockopt+0x90/0xa0 net/ipv4/tcp.c:3804
 sock_common_setsockopt+0x61/0x70 net/core/sock.c:3668
 __sys_setsockopt+0x1c3/0x230 net/socket.c:2271
 __do_sys_setsockopt net/socket.c:2282 [inline]
 __se_sys_setsockopt net/socket.c:2279 [inline]
 __x64_sys_setsockopt+0x66/0x80 net/socket.c:2279
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x000000000008ba00 -> 0x000000000008d400

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 29149 Comm: syz-executor.2 Not tainted 6.3.0-rc7-syzkaller-00191-g622322f53c6d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/23 14:13 upstream 622322f53c6d 2b32bd34 .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.