syzbot


KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc

Status: moderation: reported syz repro on 2019/11/07 05:04
Subsystems: netfilter bpf
[Documentation on labels]
Reported-by: syzbot+73de055cce044f25787d@syzkaller.appspotmail.com
First crash: 1879d, last: 210d
Last patch testing requests (9)
Created Duration User Patch Repo Result
2024/10/19 12:45 9m retest repro upstream report log
2024/10/19 12:45 8m retest repro upstream report log
2024/10/19 12:45 9m retest repro upstream report log
2024/08/10 06:59 11m retest repro upstream report log
2024/08/10 06:59 11m retest repro upstream report log
2024/08/10 06:59 8m retest repro upstream report log
2024/06/01 01:48 14m retest repro upstream report log
2024/06/01 01:48 18m retest repro upstream report log
2024/06/01 01:48 11m retest repro upstream report log

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

read-write to 0xffffffff86ef831c of 4 bytes by task 3120 on cpu 0:
 pcpu_update_empty_pages mm/percpu.c:602 [inline]
 pcpu_block_update_hint_alloc+0x5db/0x6a0 mm/percpu.c:923
 pcpu_alloc_area+0x49f/0x4d0 mm/percpu.c:1258
 pcpu_alloc+0x4bd/0x10b0 mm/percpu.c:1808
 __alloc_percpu+0x24/0x30 mm/percpu.c:1943
 xt_percpu_counter_alloc+0x72/0x110 net/netfilter/x_tables.c:1930
 find_check_entry net/ipv4/netfilter/ip_tables.c:526 [inline]
 translate_table+0x90b/0xf60 net/ipv4/netfilter/ip_tables.c:716
 do_replace net/ipv4/netfilter/ip_tables.c:1133 [inline]
 do_ipt_set_ctl+0x13f0/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
 tcp_setsockopt+0x90/0xa0 net/ipv4/tcp.c:3704
 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:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffffffff86ef831c of 4 bytes by task 3101 on cpu 1:
 pcpu_alloc+0x9bc/0x10b0 mm/percpu.c:1868
 __alloc_percpu+0x24/0x30 mm/percpu.c:1943
 xt_percpu_counter_alloc+0x72/0x110 net/netfilter/x_tables.c:1930
 find_check_entry net/ipv4/netfilter/ip_tables.c:526 [inline]
 translate_table+0x90b/0xf60 net/ipv4/netfilter/ip_tables.c:716
 do_replace net/ipv4/netfilter/ip_tables.c:1133 [inline]
 do_ipt_set_ctl+0x13f0/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
 tcp_setsockopt+0x90/0xa0 net/ipv4/tcp.c:3704
 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:51 [inline]
 do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x00000006 -> 0x00000005

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3101 Comm: syz-executor.1 Not tainted 6.7.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
==================================================================

Crashes (1228):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/04 09:30 upstream 33cc938e65a9 f819d6f7 .config console log report syz [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2022/12/18 20:36 upstream f9ff5644bcc0 05494336 .config console log report syz [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2022/12/15 07:24 upstream e2ca6ba6ba01 b18f0a64 .config console log report syz [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/05/18 01:47 upstream 7ee332c9f12b c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/05/16 18:09 upstream 3c999d1ae3c7 c2e07261 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/05/16 14:09 upstream 3c999d1ae3c7 ef5d53ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/05/14 14:36 upstream a5131c3fdf26 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/05/13 19:46 upstream 8815da98e06a 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/05/07 11:58 upstream dccb07f2914c cb2dcc0e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/05/06 23:28 upstream dccb07f2914c fa7a5cf0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/05/06 23:10 upstream dccb07f2914c fa7a5cf0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/05/05 19:09 upstream b9158815de52 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/05/04 01:13 upstream ddb4c3f25b7b 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/05/02 21:21 upstream 49a73b1652c5 ddfc15a1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/05/01 18:43 upstream 0106679839f7 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/04/29 16:43 upstream b947cc5bf6d7 27e33c58 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/04/28 21:59 upstream e67572cd2204 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/04/28 08:29 upstream 2c8159388952 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/04/27 02:53 upstream 5eb4573ea63d 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/04/26 12:38 upstream c942a0cd3603 059e9963 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/04/25 17:22 upstream e33c4963bf53 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/04/23 22:09 upstream 9d1ddab261f3 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/04/22 09:22 upstream ed30a4a51bb1 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/04/21 18:23 upstream 48cf398f15fc af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/04/20 07:36 upstream 13a2e429f644 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/04/18 07:09 upstream 8cd26fd90c1a acc528cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/04/17 17:55 upstream 4b6b51322118 acc528cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/04/16 02:33 upstream 96fca68c4fbf b9af7e61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/04/15 07:40 upstream 0bbac3facb5d c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/04/12 04:02 upstream 586b5dfb51b9 27de0a5c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/04/10 08:58 upstream 2c71fdf02a95 171ec371 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/04/07 18:02 upstream 9fe30842a90b ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/04/05 14:17 upstream 8cb4a9a82b21 77230c29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/04/04 09:37 upstream c85af715cac0 0ee3535e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/04/03 15:31 upstream 3e92c1e6cd87 51c4dcff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/04/02 23:16 upstream b1e6ec0a0fd0 eb2966c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/04/01 10:10 upstream 39cd87c4eb2b 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/03/31 04:25 upstream 712e14250dd2 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/03/30 01:56 upstream 4535e1a4174c 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/03/29 04:41 upstream 317c7bc0ef03 c52bcb23 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/03/28 15:59 upstream 8d025e2092e2 e91187ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/03/28 08:20 upstream 8d025e2092e2 120789fd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/03/27 20:14 upstream 498e47cd1d1f 120789fd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/03/25 10:58 upstream 4cece7649650 0ea90952 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/03/24 20:49 upstream 5e74df2f8f15 0ea90952 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/03/21 05:30 upstream dba89d1b81df 6753db5c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/03/21 00:32 upstream dba89d1b81df 5b7d42ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/03/20 15:37 upstream a4145ce1e7bc 5b7d42ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/03/19 17:23 upstream d95fcdf4961d e104824c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/03/19 02:17 upstream b3603fcb79b1 baa80228 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2024/03/18 12:54 upstream f6cef5f8c37f baa80228 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
2021/01/17 10:28 upstream 0da0a8a0a0e1 813be542 .config console log report info ci2-upstream-kcsan-gce
2019/10/23 00:37 https://github.com/google/ktsan.git kcsan 05f2236801fe 4ee855e7 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.