syzbot


KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem (5)

Status: auto-closed as invalid on 2022/07/05 10:02
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 273d, last: 189d
similar bugs (5):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem (6) 25 88d 151d 0/24 auto-obsoleted due to no activity on 2022/10/14 12:43
upstream KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem (3) 1 717d 717d 0/24 auto-closed as invalid on 2021/01/23 10:19
upstream KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem (4) 3 350d 359d 0/24 auto-closed as invalid on 2022/01/25 13:08
upstream KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem 3 920d 987d 0/24 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem (2) 11 789d 899d 0/24 auto-closed as invalid on 2020/11/11 15:25

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem

write to 0xffff88812fee08a3 of 1 bytes by task 27892 on cpu 1:
 bpf_lru_node_set_ref kernel/bpf/bpf_lru_list.h:71 [inline]
 __htab_lru_percpu_map_update_elem+0x431/0x920 kernel/bpf/hashtab.c:1314
 bpf_percpu_hash_update+0x5a/0x90 kernel/bpf/hashtab.c:2284
 bpf_map_update_value+0x1dd/0x2f0 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x36e/0x4d0 kernel/bpf/syscall.c:1637
 bpf_map_do_batch+0x373/0x3d0
 __sys_bpf+0x5b7/0x630
 __do_sys_bpf kernel/bpf/syscall.c:5021 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5019 [inline]
 __x64_sys_bpf+0x3f/0x50 kernel/bpf/syscall.c:5019
 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 0xffff88812fee08a3 of 1 bytes by task 27905 on cpu 0:
 bpf_lru_node_is_ref kernel/bpf/bpf_lru_list.c:44 [inline]
 __bpf_lru_list_shrink_inactive kernel/bpf/bpf_lru_list.c:218 [inline]
 __bpf_lru_list_shrink+0xd5/0x700 kernel/bpf/bpf_lru_list.c:266
 bpf_percpu_lru_pop_free kernel/bpf/bpf_lru_list.c:416 [inline]
 bpf_lru_pop_free+0x15e/0xe90 kernel/bpf/bpf_lru_list.c:497
 prealloc_lru_pop kernel/bpf/hashtab.c:310 [inline]
 __htab_lru_percpu_map_update_elem+0xec/0x920 kernel/bpf/hashtab.c:1298
 bpf_percpu_hash_update+0x5a/0x90 kernel/bpf/hashtab.c:2284
 bpf_map_update_value+0x1dd/0x2f0 kernel/bpf/syscall.c:200
 generic_map_update_batch+0x36e/0x4d0 kernel/bpf/syscall.c:1637
 bpf_map_do_batch+0x373/0x3d0
 __sys_bpf+0x5b7/0x630
 __do_sys_bpf kernel/bpf/syscall.c:5021 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5019 [inline]
 __x64_sys_bpf+0x3f/0x50 kernel/bpf/syscall.c:5019
 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: 0x00 -> 0x01

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 27905 Comm: syz-executor.5 Tainted: G        W         5.18.0-syzkaller-11439-g8ab2afa23bd1-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (39):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/31 10:01 upstream 8ab2afa23bd1 af70c3a9 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/05/25 23:10 upstream fdaf9a5840ac 3037caa9 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/05/20 01:10 upstream b015dcd62b86 cb1ac2e7 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/05/19 07:07 upstream f993aed406ea 50c53f39 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/05/15 03:04 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/05/13 22:58 upstream f2dd007445b1 107f6434 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/05/09 05:47 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/05/08 23:13 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/05/08 13:03 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/05/07 19:39 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/05/06 03:36 upstream fe27d189e3f4 efeff0a5 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/05/03 03:10 upstream 9050ba3a61a4 2df221f6 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/05/02 21:50 upstream 9050ba3a61a4 2df221f6 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/05/02 09:11 upstream 672c0c517342 2df221f6 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/05/01 08:26 upstream 57ae8a492116 2df221f6 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/04/30 05:48 upstream 8013d1d3d2e3 ad6b95d8 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/04/30 04:27 upstream 8013d1d3d2e3 ad6b95d8 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/04/28 19:33 upstream 259b897e5a79 e9076525 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/04/28 15:15 upstream 8f4dd16603ce e9076525 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/04/26 22:20 upstream cf424ef014ac 1fa34c1b .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/04/24 05:31 upstream 13bc32bad705 131df97d .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/04/23 07:04 upstream c00c5e1d157b 131df97d .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/04/22 20:07 upstream d569e86915b7 131df97d .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/04/18 10:13 upstream b2d229d4ddb1 8bcc32a6 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/04/15 17:48 upstream 028192fea1de 8bcc32a6 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/04/15 04:54 upstream b9b4c79e5830 b17b2923 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/04/13 03:40 upstream a19944809fe9 dacb3f1c .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/04/11 15:19 upstream ce522ba9ef7e af01ee7d .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/04/10 11:55 upstream e1f700ebd6be e22c3da3 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/04/06 16:42 upstream 3e732ebf7316 97582466 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/04/05 17:05 upstream 312310928417 0127c10f .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/04/04 15:32 upstream 312310928417 5915c2cb .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/04/01 02:44 upstream e8b767f5e040 68fc921a .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/03/29 12:01 upstream 1930a6e739c4 6bdac766 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/03/27 10:18 upstream f022814633e1 89bc8608 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/03/24 00:22 upstream 6b1f86f8e9c7 5ff41e94 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/03/23 18:36 upstream 3bf03b9a0839 5ff41e94 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/03/09 12:56 upstream 92f90cc9fe0e 9e8eaa75 .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
ci2-upstream-kcsan-gce 2022/03/07 21:27 upstream ea4424be1688 7bdd8b2c .config log report info KCSAN: data-race in __bpf_lru_list_shrink / __htab_lru_percpu_map_update_elem
* Struck through repros no longer work on HEAD.