syzbot


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

Status: auto-obsoleted due to no activity on 2024/01/30 17:49
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+81e9a7260235b6971461@syzkaller.appspotmail.com
First crash: 154d, last: 127d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in compact_zone / compact_zone (3) mm 2 1278d 1304d 0/26 auto-closed as invalid on 2020/12/05 18:21
upstream KCSAN: data-race in compact_zone / compact_zone mm 3 1457d 1469d 0/26 auto-closed as invalid on 2020/06/18 13:23
upstream KCSAN: data-race in compact_zone / compact_zone (5) mm 58 931d 961d 0/26 auto-closed as invalid on 2021/11/17 00:44
upstream KCSAN: data-race in compact_zone / compact_zone (2) mm 1 1382d 1382d 0/26 auto-closed as invalid on 2020/08/23 00:57
upstream KCSAN: data-race in compact_zone / compact_zone (4) mm 4 1178d 1198d 0/26 auto-closed as invalid on 2021/03/15 05:37

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

write to 0xffff88823fffad90 of 8 bytes by task 25032 on cpu 1:
 update_cached_migrate mm/compaction.c:473 [inline]
 isolate_migratepages mm/compaction.c:2047 [inline]
 compact_zone+0x1100/0x2720 mm/compaction.c:2508
 compact_zone_order mm/compaction.c:2668 [inline]
 try_to_compact_pages+0x39b/0x930 mm/compaction.c:2729
 __alloc_pages_direct_compact+0x75/0x1f0 mm/page_alloc.c:3525
 __alloc_pages_slowpath+0x232/0xd90 mm/page_alloc.c:4119
 __alloc_pages+0x25d/0x340 mm/page_alloc.c:4581
 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+0x6d2/0xea0 mm/vmalloc.c:3320
 kvmalloc_node+0x121/0x160 mm/util.c:642
 kvmalloc include/linux/slab.h:738 [inline]
 xt_alloc_table_info+0x3d/0x80 net/netfilter/x_tables.c:1192
 do_replace net/ipv4/netfilter/ip_tables.c:1122 [inline]
 do_ipt_set_ctl+0x62f/0x1730 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:1426
 udp_setsockopt+0x95/0xa0 net/ipv4/udp.c:2788
 sock_common_setsockopt+0x61/0x70 net/core/sock.c:3711
 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+0x44/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff88823fffad90 of 8 bytes by task 25033 on cpu 0:
 update_cached_migrate mm/compaction.c:472 [inline]
 isolate_migratepages mm/compaction.c:2047 [inline]
 compact_zone+0x10db/0x2720 mm/compaction.c:2508
 compact_zone_order mm/compaction.c:2668 [inline]
 try_to_compact_pages+0x39b/0x930 mm/compaction.c:2729
 __alloc_pages_direct_compact+0x75/0x1f0 mm/page_alloc.c:3525
 __alloc_pages_slowpath+0x232/0xd90 mm/page_alloc.c:4119
 __alloc_pages+0x25d/0x340 mm/page_alloc.c:4581
 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+0x6d2/0xea0 mm/vmalloc.c:3320
 kvmalloc_node+0x121/0x160 mm/util.c:642
 kvmalloc include/linux/slab.h:738 [inline]
 xt_alloc_table_info+0x3d/0x80 net/netfilter/x_tables.c:1192
 do_replace net/ipv4/netfilter/ip_tables.c:1122 [inline]
 do_ipt_set_ctl+0x62f/0x1730 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:1426
 udp_setsockopt+0x95/0xa0 net/ipv4/udp.c:2788
 sock_common_setsockopt+0x61/0x70 net/core/sock.c:3711
 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+0x44/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x0000000000148e00 -> 0x0000000000167200

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 25033 Comm: syz-executor.4 Tainted: G        W          6.7.0-rc7-syzkaller-00003-gfbafc3e621c3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/26 17:49 upstream fbafc3e621c3 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in compact_zone / compact_zone
2023/11/29 18:36 upstream 3b47bc037bd4 6e78f9ce .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in compact_zone / compact_zone
* Struck through repros no longer work on HEAD.