syzbot


KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc

Status: moderation: reported on 2019/11/07 05:04
Reported-by: syzbot+73de055cce044f25787d@syzkaller.appspotmail.com
First crash: 1076d, last: 1d01h

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

read-write to 0xffffffff870ca9b4 of 4 bytes by task 2630 on cpu 1:
 pcpu_update_empty_pages mm/percpu.c:606 [inline]
 pcpu_block_update_hint_alloc+0x61e/0x6e0 mm/percpu.c:919
 pcpu_alloc_area+0x4dc/0x500 mm/percpu.c:1254
 pcpu_alloc+0x44e/0x1040 mm/percpu.c:1813
 __alloc_percpu_gfp+0x22/0x30 mm/percpu.c:1937
 bpf_map_alloc_percpu+0xbd/0x200 kernel/bpf/syscall.c:481
 prealloc_init kernel/bpf/hashtab.c:342 [inline]
 htab_map_alloc+0x76e/0xc00 kernel/bpf/hashtab.c:554
 find_and_alloc_map kernel/bpf/syscall.c:131 [inline]
 map_create+0x38a/0x6f0 kernel/bpf/syscall.c:1102
 __sys_bpf+0x28c/0x620 kernel/bpf/syscall.c:4935
 __do_sys_bpf kernel/bpf/syscall.c:5057 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5055 [inline]
 __x64_sys_bpf+0x3f/0x50 kernel/bpf/syscall.c:5055
 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 0xffffffff870ca9b4 of 4 bytes by task 2628 on cpu 0:
 pcpu_alloc+0x9c6/0x1040 mm/percpu.c:1877
 __alloc_percpu_gfp+0x22/0x30 mm/percpu.c:1937
 bpf_map_alloc_percpu+0xbd/0x200 kernel/bpf/syscall.c:481
 prealloc_init kernel/bpf/hashtab.c:342 [inline]
 htab_map_alloc+0x76e/0xc00 kernel/bpf/hashtab.c:554
 find_and_alloc_map kernel/bpf/syscall.c:131 [inline]
 map_create+0x38a/0x6f0 kernel/bpf/syscall.c:1102
 __sys_bpf+0x28c/0x620 kernel/bpf/syscall.c:4935
 __do_sys_bpf kernel/bpf/syscall.c:5057 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5055 [inline]
 __x64_sys_bpf+0x3f/0x50 kernel/bpf/syscall.c:5055
 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: 0x00000014 -> 0x0000000c

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 2628 Comm: syz-executor.1 Not tainted 6.0.0-rc7-syzkaller-00250-ga962b54e162c-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
==================================================================

Crashes (720):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/10/02 20:55 upstream a962b54e162c feb56351 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/10/02 07:48 upstream b357fd1c2afc feb56351 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/30 17:49 upstream 70575e77839f feb56351 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/29 13:10 upstream c3e0e1e23c70 a41a2080 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/28 19:27 upstream 49c13ed0316d a41a2080 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/28 00:10 upstream 46452d3786a8 75c78242 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/27 04:57 upstream 3800a713b607 10323ddf .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/27 03:41 upstream 3800a713b607 d59ba983 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/24 10:40 upstream a63f2e7cb110 0042f2b4 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/23 14:13 upstream bf682942cd26 0042f2b4 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/22 15:41 upstream dc164f4fb00a 0042f2b4 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/22 12:23 upstream dc164f4fb00a 60af5050 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/21 17:22 upstream 06f7db949993 380f82fb .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/21 10:26 upstream 60891ec99e14 380f82fb .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/20 07:51 upstream 521a547ced64 7c41a9ba .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/16 16:22 upstream 6879c2d3b960 dd9a85ff .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/15 07:10 upstream 3245cb65fd91 dd9a85ff .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/14 09:53 upstream 3245cb65fd91 b884348d .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/13 20:18 upstream d1221cea11fc b884348d .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/11 20:06 upstream 4ed9c1e971b1 356d8217 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/10 18:16 upstream b96fbd602d35 356d8217 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/09 23:31 upstream ce888220d5c7 356d8217 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/09 13:02 upstream 9b4509495418 90058bdc .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/06 22:32 upstream d2ec799d1c1b 5fc30c37 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/06 20:11 upstream d2ec799d1c1b 65aea2b9 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/06 10:33 upstream 53e99dcff61e 65aea2b9 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/05 23:02 upstream 53e99dcff61e 9dcd38fc .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/05 11:14 upstream 7e18e42e4b28 922294ab .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/02 15:32 upstream 42e66b1cc3a0 25194605 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/02 03:11 upstream 42e66b1cc3a0 a805568e .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/01 17:27 upstream 2880e1a175b9 86c46e46 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/09/01 05:09 upstream c5e4d5e99162 b01ec571 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/08/31 09:58 upstream dcf8e5633e2e 51e54e30 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/08/29 15:58 upstream b90cb1053190 d7593c58 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/08/28 23:44 upstream 8379c0b31fbc 07177916 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/08/24 17:17 upstream c40e8341e3b3 514514f6 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/08/23 21:17 upstream df0219d11b6f cea8b0f7 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/08/19 23:24 upstream 50cd95ac4654 26a13b38 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/08/19 10:11 upstream 4c2d0b039c5c 26a13b38 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/08/18 08:57 upstream 3b06a2755758 d58e263f .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/08/11 09:28 upstream ffcf9c5700e4 787ed7e0 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/08/09 18:14 upstream 426b4ca2d6a5 c2a623d6 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/08/09 16:45 upstream eb555cb5b794 c2a623d6 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/08/08 15:12 upstream 4e23eeebb2e5 da700653 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/08/07 20:50 upstream 3bc1bc0b59d0 88e3a122 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/08/07 03:06 upstream 1612c382ffbd 88e3a122 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/08/06 11:21 upstream 6614a3c3164a e853abd9 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/08/05 22:00 upstream 9e2f40233670 e853abd9 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/08/05 04:56 upstream c040862bfbd9 1c9013ac .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/08/03 09:09 upstream e2b542100719 1c9013ac .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/08/01 10:06 upstream 3d7cb6b04c3f fef302b1 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/07/31 20:27 upstream 334c0ef6429f fef302b1 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/07/31 08:32 upstream 6a010258447d fef302b1 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/07/29 14:56 upstream 6e2c0490769e fef302b1 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/07/28 20:13 upstream 33ea1340bafe fb95c74d .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/07/27 22:22 upstream 6e7765cb477a fb95c74d .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/07/27 10:12 upstream 39c3c396f813 da9d0366 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/07/26 17:40 upstream 5de64d44968e 279b89c2 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/07/25 21:06 upstream e0dccc3b76fb 34795c51 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/07/25 06:42 upstream e0dccc3b76fb 22343af4 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2021/01/17 10:28 upstream 0da0a8a0a0e1 813be542 .config log report info
ci2-upstream-kcsan-gce 2019/10/23 00:37 https://github.com/google/ktsan.git kcsan 05f2236801fe 4ee855e7 .config log report
* Struck through repros no longer work on HEAD.