[moderation] [mm?] KCSAN: data-race in isolate_migratepages_block / isolate_migratepages_block (8)

1 view
Skip to first unread message

syzbot

unread,
Feb 13, 2024, 4:54:26 PMFeb 13
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: c664e16bb1ba Merge tag 'docs-6.8-fixes2' of git://git.lwn...
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=13256668180000
kernel config: https://syzkaller.appspot.com/x/.config?x=b4c8befe72e5ccb8
dashboard link: https://syzkaller.appspot.com/bug?extid=562ba2e140e43692a0c2
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
CC: [ak...@linux-foundation.org linux-...@vger.kernel.org linu...@kvack.org]

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/eead8f803544/disk-c664e16b.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/2280e66c2c59/vmlinux-c664e16b.xz
kernel image: https://storage.googleapis.com/syzbot-assets/8e2fcc846a86/bzImage-c664e16b.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+562ba2...@syzkaller.appspotmail.com

==================================================================
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
==================================================================


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Mar 19, 2024, 5:54:12 PMMar 19
to syzkaller-upst...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages