syzbot


KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc

Status: moderation: reported syz repro on 2024/05/19 17:57
Subsystems: netfilter bpf
[Documentation on labels]
Reported-by: syzbot+3bf026c4c7ba9637aad8@syzkaller.appspotmail.com
First crash: 185d, last: 5h15m

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

read-write to 0xffffffff8841e6ac of 4 bytes by task 3190 on cpu 1:
 pcpu_update_empty_pages mm/percpu.c:602 [inline]
 pcpu_block_update_hint_alloc+0x5db/0x6a0 mm/percpu.c:923
 pcpu_alloc_area+0x488/0x4b0 mm/percpu.c:1258
 pcpu_alloc_noprof+0x4b3/0x10c0 mm/percpu.c:1834
 xt_percpu_counter_alloc+0x79/0x110 net/netfilter/x_tables.c:1931
 find_check_entry net/ipv6/netfilter/ip6_tables.c:545 [inline]
 translate_table+0x9b1/0x1040 net/ipv6/netfilter/ip6_tables.c:733
 do_replace net/ipv6/netfilter/ip6_tables.c:1154 [inline]
 do_ip6t_set_ctl+0x7cc/0x8c0 net/ipv6/netfilter/ip6_tables.c:1644
 nf_setsockopt+0x195/0x1b0 net/netfilter/nf_sockopt.c:101
 ipv6_setsockopt+0x126/0x140 net/ipv6/ipv6_sockglue.c:999
 tcp_setsockopt+0x93/0xb0 net/ipv4/tcp.c:3765
 sock_common_setsockopt+0x64/0x80 net/core/sock.c:3726
 do_sock_setsockopt net/socket.c:2312 [inline]
 __sys_setsockopt+0x1d8/0x250 net/socket.c:2335
 __do_sys_setsockopt net/socket.c:2344 [inline]
 __se_sys_setsockopt net/socket.c:2341 [inline]
 __x64_sys_setsockopt+0x66/0x80 net/socket.c:2341
 x64_sys_call+0x1183/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:55
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffffffff8841e6ac of 4 bytes by task 3196 on cpu 0:
 pcpu_alloc_noprof+0x9a7/0x10c0 mm/percpu.c:1894
 mm_alloc_cid_noprof include/linux/mm_types.h:1172 [inline]
 mm_init+0x47f/0x6f0 kernel/fork.c:1301
 dup_mm kernel/fork.c:1685 [inline]
 copy_mm+0x11e/0x11d0 kernel/fork.c:1737
 copy_process+0xee1/0x1f90 kernel/fork.c:2390
 kernel_clone+0x16a/0x570 kernel/fork.c:2797
 __do_sys_clone kernel/fork.c:2940 [inline]
 __se_sys_clone kernel/fork.c:2924 [inline]
 __x64_sys_clone+0xe8/0x120 kernel/fork.c:2924
 x64_sys_call+0x23e7/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:57
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0000000c -> 0x0000000b

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3196 Comm: syz-executor.4 Not tainted 6.10.0-rc2-syzkaller-00315-gdc772f8237f9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
==================================================================

Crashes (197):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/08 20:06 upstream dc772f8237f9 82c05ab8 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/11/21 01:14 upstream 8f7c8b88bda4 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/11/20 19:43 upstream 8f7c8b88bda4 4fca1650 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/11/18 20:30 upstream 23acd177540d e7bb5d6e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/11/14 01:20 upstream 0a9b9d17f3a7 bb3f8425 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/11/12 00:52 upstream 2d5404caa8c7 75bb1b32 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/11/11 09:38 upstream 2d5404caa8c7 0c4b1325 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/11/10 18:24 upstream a9cda7c0ffed 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/11/10 00:15 upstream de2f378f2b77 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/11/09 07:55 upstream da4373fbcf00 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/11/08 23:59 upstream f1dce1f09380 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/11/08 02:57 upstream 906bd684e4b1 179b040e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/11/08 01:28 upstream 906bd684e4b1 867e44df .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/11/07 08:38 upstream ff7afaeca1a1 df3dc63b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/11/06 15:57 upstream 2e1b3cc9d7f7 df3dc63b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/11/06 02:36 upstream 2e1b3cc9d7f7 3a465482 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/11/05 08:22 upstream 2e1b3cc9d7f7 509da429 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/11/04 20:32 upstream 557329bcecc2 509da429 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/11/02 07:10 upstream 11066801dd4b f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/11/01 20:10 upstream 6c52d4da1c74 f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/11/01 03:46 upstream 5635f189425e 96eb609f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/31 15:42 upstream 0fc810ae3ae1 96eb609f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/31 00:28 upstream 4236f913808c 96eb609f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/30 19:39 upstream 4236f913808c fb888278 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/30 07:31 upstream c1e939a21eb1 66aeb999 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/29 14:07 upstream e42b1a9a2557 66aeb999 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/29 04:20 upstream e42b1a9a2557 66aeb999 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/28 09:41 upstream 819837584309 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/27 19:53 upstream 284a2f899676 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/25 12:05 upstream ae90f6a6170d 045e728d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/24 22:54 upstream 4e46774408d9 c79b8ca5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/24 21:47 upstream 4e46774408d9 0d144d1a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/22 04:44 upstream d12937763990 a93682b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/21 19:47 upstream d12937763990 f1e4447c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/21 12:04 upstream 42f7652d3eb5 f1e4447c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/20 13:11 upstream 715ca9dd687f cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/16 17:44 upstream 2f87d0916ce0 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/15 22:00 upstream 2f87d0916ce0 bde2d81c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/15 20:44 upstream 2f87d0916ce0 7eb57b4a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/15 09:25 upstream eca631b8fe80 7eb57b4a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/13 14:40 upstream 36c254515dc6 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/12 11:55 upstream 09f6b0c8904b 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/11 21:29 upstream 9e4c6c1ad9a1 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/10 18:11 upstream eb952c47d154 8fbfc0c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/09 08:43 upstream 75b607fab38d 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/08 19:44 upstream 5b7c893ed5ed 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/08 04:25 upstream 87d6aab2389e 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/03 15:57 upstream 7ec462100ef9 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/10/02 21:49 upstream f23aa4c0761a 02f9582a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
2024/05/19 17:56 upstream 61307b7be41a c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc_noprof / pcpu_block_update_hint_alloc
* Struck through repros no longer work on HEAD.