syzbot


KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc

Status: moderation: reported syz repro on 2019/11/07 05:04
Reported-by: syzbot+73de055cce044f25787d@syzkaller.appspotmail.com
First crash: 1197d, last: 7h10m

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

read-write to 0xffffffff86efe674 of 4 bytes by task 3126 on cpu 1:
 pcpu_update_empty_pages mm/percpu.c:602 [inline]
 pcpu_block_update_hint_alloc+0x61a/0x6e0 mm/percpu.c:923
 pcpu_alloc_area+0x4c0/0x4f0 mm/percpu.c:1258
 pcpu_alloc+0x42e/0xf60 mm/percpu.c:1810
 __alloc_percpu+0x20/0x30 mm/percpu.c:1943
 xt_percpu_counter_alloc+0x6e/0x110 net/netfilter/x_tables.c:1930
 find_check_entry net/ipv6/netfilter/ip6_tables.c:547 [inline]
 translate_table+0x9ff/0x1090 net/ipv6/netfilter/ip6_tables.c:735
 do_replace net/ipv6/netfilter/ip6_tables.c:1153 [inline]
 do_ip6t_set_ctl+0x1468/0x1790 net/ipv6/netfilter/ip6_tables.c:1639
 nf_setsockopt+0x1a6/0x1c0 net/netfilter/nf_sockopt.c:101
 ipv6_setsockopt+0x118/0x130 net/ipv6/ipv6_sockglue.c:1028
 tcp_setsockopt+0x8c/0xa0 net/ipv4/tcp.c:3801
 sock_common_setsockopt+0x5d/0x70 net/core/sock.c:3663
 __sys_setsockopt+0x1c8/0x230 net/socket.c:2246
 __do_sys_setsockopt net/socket.c:2257 [inline]
 __se_sys_setsockopt net/socket.c:2254 [inline]
 __x64_sys_setsockopt+0x62/0x70 net/socket.c:2254
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffffffff86efe674 of 4 bytes by task 3119 on cpu 0:
 pcpu_alloc+0x91d/0xf60 mm/percpu.c:1870
 __alloc_percpu+0x20/0x30 mm/percpu.c:1943
 xt_percpu_counter_alloc+0x6e/0x110 net/netfilter/x_tables.c:1930
 find_check_entry net/ipv6/netfilter/ip6_tables.c:547 [inline]
 translate_table+0x9ff/0x1090 net/ipv6/netfilter/ip6_tables.c:735
 do_replace net/ipv6/netfilter/ip6_tables.c:1153 [inline]
 do_ip6t_set_ctl+0x1468/0x1790 net/ipv6/netfilter/ip6_tables.c:1639
 nf_setsockopt+0x1a6/0x1c0 net/netfilter/nf_sockopt.c:101
 ipv6_setsockopt+0x118/0x130 net/ipv6/ipv6_sockglue.c:1028
 tcp_setsockopt+0x8c/0xa0 net/ipv4/tcp.c:3801
 sock_common_setsockopt+0x5d/0x70 net/core/sock.c:3663
 __sys_setsockopt+0x1c8/0x230 net/socket.c:2246
 __do_sys_setsockopt net/socket.c:2257 [inline]
 __se_sys_setsockopt net/socket.c:2254 [inline]
 __x64_sys_setsockopt+0x62/0x70 net/socket.c:2254
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00000004 -> 0x00000003

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 3119 Comm: syz-executor.2 Not tainted 6.1.0-syzkaller-13139-gf9ff5644bcc0-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
==================================================================

Crashes (798):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2022/12/18 20:36 upstream f9ff5644bcc0 05494336 .config console log report syz [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/12/15 07:24 upstream e2ca6ba6ba01 b18f0a64 .config console log report syz [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2023/02/01 10:15 upstream c0b67534c95c 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2023/01/31 00:44 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2023/01/30 13:03 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2023/01/29 23:50 upstream ab072681eabe 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2023/01/28 23:53 upstream c96618275234 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2023/01/28 00:18 upstream 83abd4d4c4be 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2023/01/23 00:36 upstream 2475bf0250de cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2023/01/22 06:47 upstream 2241ab53cbb5 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2023/01/21 15:26 upstream f883675bf652 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2023/01/15 06:48 upstream 7c6984405241 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2023/01/13 06:00 upstream c757fc92a3f7 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2023/01/12 08:35 upstream e8f60cd7db24 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2023/01/11 02:08 upstream 40c18f363a08 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2023/01/10 07:57 upstream 5a41237ad1d4 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2023/01/09 03:25 upstream 1fe4fd6f5cad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2023/01/07 15:12 upstream 0a71553536d2 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2023/01/06 18:13 upstream 1f5abbd77e2c 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2023/01/05 21:35 upstream 41c03ba9beea 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2023/01/03 01:41 upstream 69b41ac87e4a ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/12/30 21:11 upstream bff687b3dad6 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/12/30 00:18 upstream 2258c2dc850b 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/12/27 12:41 upstream 1b929c02afd3 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/12/26 02:40 upstream 1b929c02afd3 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/12/23 09:29 upstream 8395ae05cb5a 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/12/19 23:55 upstream aeba12b26c79 c52b2efb .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/12/16 17:13 upstream 84e57d292203 05494336 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/12/16 07:57 upstream 851f657a8642 6f9c033e .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/12/13 19:04 upstream 764822972d64 f6511626 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/12/11 03:37 upstream 296a7b7eb792 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/12/05 17:08 upstream 76dcd734eca2 045cbb84 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/12/03 08:06 upstream 97ee9d1c1696 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/12/02 14:58 upstream a4412fdd49dc e080de16 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/12/01 17:58 upstream ef4d3ea40565 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/11/30 23:34 upstream 04aa64375f48 4c2a66e8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/11/30 09:53 upstream 01f856ae6d0c 579a3740 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/11/29 16:36 upstream ca57f02295f1 579a3740 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/11/28 11:47 upstream b7b275e60bcd 247de55b .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/11/26 15:53 upstream 644e9524388a f4470a7b .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/11/24 06:44 upstream 4312098baf37 ff68ff8f .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/11/21 21:09 upstream eb7081409f94 1c576c23 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/11/18 21:25 upstream ab290eaddc4c 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/11/18 04:06 upstream 84368d882b96 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/11/17 22:18 upstream 81ac25651a62 4ba8ab94 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/11/17 15:33 upstream cc675d22e422 4ba8ab94 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/11/15 00:16 upstream e01d50cbd6ee 97de9cfc .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/11/14 15:17 upstream 094226ad94f4 943f4cb8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/11/11 21:24 upstream eb037f16f7e8 f42ee5d8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/11/11 04:00 upstream 4bbf3422df78 f42ee5d8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/11/08 13:16 upstream 59f2f4b8a757 060f945e .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 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
* Struck through repros no longer work on HEAD.