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: 947d, last: 2d04h

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

read-write to 0xffffffff86e8f9bc of 4 bytes by task 1835 on cpu 0:
 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+0x42e/0xfb0 mm/percpu.c:1813
 __alloc_percpu+0x20/0x30 mm/percpu.c:1949
 xt_percpu_counter_alloc+0x6e/0x110 net/netfilter/x_tables.c:1930
 find_check_entry net/ipv4/netfilter/ip_tables.c:528 [inline]
 translate_table+0x96c/0xfb0 net/ipv4/netfilter/ip_tables.c:718
 do_replace net/ipv4/netfilter/ip_tables.c:1136 [inline]
 do_ipt_set_ctl+0x13d7/0x16e0 net/ipv4/netfilter/ip_tables.c:1630
 nf_setsockopt+0x1a6/0x1c0 net/netfilter/nf_sockopt.c:101
 ip_setsockopt+0x1741/0x1ea0 net/ipv4/ip_sockglue.c:1444
 tcp_setsockopt+0x177/0x1be0 net/ipv4/tcp.c:3700
 sock_common_setsockopt+0x5d/0x70 net/core/sock.c:3505
 __sys_setsockopt+0x212/0x2b0 net/socket.c:2212
 __do_sys_setsockopt net/socket.c:2223 [inline]
 __se_sys_setsockopt net/socket.c:2220 [inline]
 __x64_sys_setsockopt+0x62/0x70 net/socket.c:2220
 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+0x46/0xb0

read to 0xffffffff86e8f9bc of 4 bytes by task 15656 on cpu 1:
 pcpu_alloc+0x9bb/0xfb0 mm/percpu.c:1877
 __alloc_percpu_gfp+0x22/0x30 mm/percpu.c:1936
 bpf_map_alloc_percpu+0xab/0x120 kernel/bpf/syscall.c:460
 prealloc_init kernel/bpf/hashtab.c:326 [inline]
 htab_map_alloc+0x76e/0xc00 kernel/bpf/hashtab.c:538
 find_and_alloc_map kernel/bpf/syscall.c:129 [inline]
 map_create+0x38a/0x6e0 kernel/bpf/syscall.c:864
 __sys_bpf+0x269/0x600 kernel/bpf/syscall.c:4645
 __do_sys_bpf kernel/bpf/syscall.c:4767 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:4765 [inline]
 __x64_sys_bpf+0x3f/0x50 kernel/bpf/syscall.c:4765
 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+0x46/0xb0

value changed: 0x00000008 -> 0x00000007

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 15656 Comm: syz-executor.1 Not tainted 5.18.0-syzkaller-02752-gfdaf9a5840ac-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (619):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/25 11:52 upstream fdaf9a5840ac 647c0e27 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/23 13:54 upstream 4b0986a3613c 4c7657cb .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/20 15:57 upstream 3d7285a335ed bd37ad7e .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/20 01:14 upstream b015dcd62b86 cb1ac2e7 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/19 07:36 upstream f993aed406ea 50c53f39 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/18 00:35 upstream 210e04ff7681 744a39e2 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/15 01:11 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/12 21:03 upstream 0ac824f379fb 9ad6612a .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/11 17:39 upstream feb9c5e19e91 beb0b407 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/09 09:20 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/09 05:01 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/09 03:53 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/08 23:12 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/08 21:31 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/08 19:14 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/08 19:13 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/08 17:27 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/08 16:18 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/08 14:29 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/08 12:01 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/08 10:11 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/08 07:30 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/08 05:43 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/08 03:03 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/08 00:39 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/07 22:13 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/07 20:01 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/07 18:00 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/07 08:50 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/07 06:45 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/07 03:34 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/07 02:28 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/07 00:58 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/06 23:06 upstream 64267926e01b e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/06 20:15 upstream 64267926e01b e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/06 18:19 upstream 64267926e01b e60b1103 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/06 02:43 upstream fe27d189e3f4 efeff0a5 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/06 00:30 upstream 0f5d752b1395 efeff0a5 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/05 13:06 upstream a7391ad35724 b3f09415 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/04 20:48 upstream a7391ad35724 dc9e5259 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/04 09:06 upstream 107c948d1d3e dc9e5259 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/03 19:58 upstream ef8e4d3c2ab1 dc9e5259 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/03 02:41 upstream 9050ba3a61a4 2df221f6 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/05/01 17:56 upstream b2da7df52e16 2df221f6 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/04/30 23:49 upstream 57ae8a492116 2df221f6 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/04/30 03:12 upstream 8013d1d3d2e3 ad6b95d8 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/04/29 09:24 upstream 38d741cb70b3 e9076525 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/04/28 19:03 upstream 259b897e5a79 e9076525 .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/04/27 10:25 upstream 46cf2c613f4b 1fa34c1b .config log report info KCSAN: data-race in pcpu_alloc / pcpu_block_update_hint_alloc
ci2-upstream-kcsan-gce 2022/04/25 15:27 upstream af2d861d4cd2 152baedd .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