CC: [email protected]
CC: [email protected]
TO: Alexei Starovoitov <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git relo_core
head:   6630cff5bc659de953a4e7ee63d2361b2bd9377d
commit: 74b77ad53dffe0269672963f67c2906d609ef4e7 [7/16] bpf: Add 
bpf_core_add_cands() and wire it into bpf_core_apply_relo_insn().
:::::: branch date: 2 days ago
:::::: commit date: 2 days ago
config: x86_64-randconfig-c022-20211125 
(https://download.01.org/0day-ci/archive/20211126/[email protected]/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
Reported-by: Julia Lawall <[email protected]>


cocci warnings: (new ones prefixed by >>)
>> kernel/bpf/btf.c:6673:3-9: preceding lock on line 6668
   kernel/bpf/btf.c:6678:4-10: preceding lock on line 6668

vim +6673 kernel/bpf/btf.c

74b77ad53dffe02 Alexei Starovoitov 2021-09-16  6657  
6a05dd911cedf0b Alexei Starovoitov 2021-09-08  6658  int bpf_core_apply(struct 
bpf_core_ctx *ctx, const struct bpf_core_relo *relo,
6a05dd911cedf0b Alexei Starovoitov 2021-09-08  6659                int 
relo_idx, void *insn)
6a05dd911cedf0b Alexei Starovoitov 2021-09-08  6660  {
74b77ad53dffe02 Alexei Starovoitov 2021-09-16  6661     struct 
bpf_core_cand_list cands = {};
74b77ad53dffe02 Alexei Starovoitov 2021-09-16  6662     int err;
74b77ad53dffe02 Alexei Starovoitov 2021-09-16  6663  
74b77ad53dffe02 Alexei Starovoitov 2021-09-16  6664     if (relo->kind != 
BPF_CORE_TYPE_ID_LOCAL) {
74b77ad53dffe02 Alexei Starovoitov 2021-09-16  6665             struct 
bpf_cand_cache *cc;
74b77ad53dffe02 Alexei Starovoitov 2021-09-16  6666             int i;
74b77ad53dffe02 Alexei Starovoitov 2021-09-16  6667  
74b77ad53dffe02 Alexei Starovoitov 2021-09-16 @6668             
mutex_lock(&cand_cache_mutex);
74b77ad53dffe02 Alexei Starovoitov 2021-09-16  6669             cc = 
bpf_core_find_cands(ctx, relo->type_id);
74b77ad53dffe02 Alexei Starovoitov 2021-09-16  6670             if (IS_ERR(cc)) 
{
74b77ad53dffe02 Alexei Starovoitov 2021-09-16  6671                     
bpf_log(ctx->log, "target candidate search failed for %d\n",
74b77ad53dffe02 Alexei Starovoitov 2021-09-16  6672                             
relo->type_id);
74b77ad53dffe02 Alexei Starovoitov 2021-09-16 @6673                     return 
PTR_ERR(cc);

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to