llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* Re: possible deadlock in trie_delete_elem
       [not found] <000000000000277099061a394d13@google.com>
@ 2024-06-06 21:05 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-06-06 21:05 UTC (permalink / raw)
  To: syzbot, linux-kernel, syzkaller-bugs; +Cc: llvm, oe-kbuild-all

Hi syzbot,

kernel test robot noticed the following build errors:

[auto build test ERROR on bpf-next/master]
[also build test ERROR on bpf/master linus/master v6.10-rc2 next-20240606]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/syzbot/possible-deadlock-in-trie_delete_elem/20240606-230435
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
patch link:    https://lore.kernel.org/r/000000000000277099061a394d13%40google.com
patch subject: possible deadlock in trie_delete_elem
config: s390-defconfig (https://download.01.org/0day-ci/archive/20240607/202406070456.Ke0WsZ9X-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project d7d2d4f53fc79b4b58e8d8d08151b577c3699d4a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240607/202406070456.Ke0WsZ9X-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406070456.Ke0WsZ9X-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from kernel/tracepoint.c:5:
   In file included from include/linux/module.h:19:
   In file included from include/linux/elf.h:6:
   In file included from arch/s390/include/asm/elf.h:173:
   In file included from arch/s390/include/asm/mmu_context.h:11:
   In file included from arch/s390/include/asm/pgalloc.h:18:
   In file included from include/linux/mm.h:2253:
   include/linux/vmstat.h:500:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     500 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     501 |                            item];
         |                            ~~~~
   include/linux/vmstat.h:507:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     507 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     508 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     514 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
   include/linux/vmstat.h:519:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     519 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     520 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:528:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     528 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     529 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
>> kernel/tracepoint.c:178:36: error: incomplete definition of type 'struct bpf_raw_tp_link'
     178 |                 int active = this_cpu_read(*(link->link.prog->active));
         |                                              ~~~~^
   include/linux/percpu-defs.h:489:69: note: expanded from macro 'this_cpu_read'
     489 | #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
         |                                                                                 ^~~
   include/linux/percpu-defs.h:318:9: note: expanded from macro '__pcpu_size_call_return'
     318 |         typeof(variable) pscr_ret__;                                    \
         |                ^~~~~~~~
   kernel/tracepoint.c:171:9: note: forward declaration of 'struct bpf_raw_tp_link'
     171 |         struct bpf_raw_tp_link *link;
         |                ^
>> kernel/tracepoint.c:178:36: error: incomplete definition of type 'struct bpf_raw_tp_link'
     178 |                 int active = this_cpu_read(*(link->link.prog->active));
         |                                              ~~~~^
   include/linux/percpu-defs.h:489:69: note: expanded from macro 'this_cpu_read'
     489 | #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
         |                                                                                 ^~~
   include/linux/percpu-defs.h:319:22: note: expanded from macro '__pcpu_size_call_return'
     319 |         __verify_pcpu_ptr(&(variable));                                 \
         |                             ^~~~~~~~
   include/linux/percpu-defs.h:219:47: note: expanded from macro '__verify_pcpu_ptr'
     219 |         const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL;    \
         |                                                      ^~~
   kernel/tracepoint.c:171:9: note: forward declaration of 'struct bpf_raw_tp_link'
     171 |         struct bpf_raw_tp_link *link;
         |                ^
>> kernel/tracepoint.c:178:36: error: incomplete definition of type 'struct bpf_raw_tp_link'
     178 |                 int active = this_cpu_read(*(link->link.prog->active));
         |                                              ~~~~^
   include/linux/percpu-defs.h:489:69: note: expanded from macro 'this_cpu_read'
     489 | #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
         |                                                                                 ^~~
   include/linux/percpu-defs.h:320:16: note: expanded from macro '__pcpu_size_call_return'
     320 |         switch(sizeof(variable)) {                                      \
         |                       ^~~~~~~~
   kernel/tracepoint.c:171:9: note: forward declaration of 'struct bpf_raw_tp_link'
     171 |         struct bpf_raw_tp_link *link;
         |                ^
>> kernel/tracepoint.c:178:36: error: incomplete definition of type 'struct bpf_raw_tp_link'
     178 |                 int active = this_cpu_read(*(link->link.prog->active));
         |                                              ~~~~^
   include/linux/percpu-defs.h:489:69: note: expanded from macro 'this_cpu_read'
     489 | #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
         |                                                                                 ^~~
   include/linux/percpu-defs.h:321:31: note: expanded from macro '__pcpu_size_call_return'
     321 |         case 1: pscr_ret__ = stem##1(variable); break;                  \
         |                                      ^~~~~~~~
   include/asm-generic/percpu.h:375:53: note: expanded from macro 'this_cpu_read_1'
     375 | #define this_cpu_read_1(pcp)            this_cpu_generic_read(pcp)
         |                                                               ^~~
   include/asm-generic/percpu.h:144:9: note: expanded from macro 'this_cpu_generic_read'
     144 |         typeof(pcp) __ret;                                              \
         |                ^~~
   kernel/tracepoint.c:171:9: note: forward declaration of 'struct bpf_raw_tp_link'
     171 |         struct bpf_raw_tp_link *link;
         |                ^
>> kernel/tracepoint.c:178:36: error: incomplete definition of type 'struct bpf_raw_tp_link'
     178 |                 int active = this_cpu_read(*(link->link.prog->active));
         |                                              ~~~~^
   include/linux/percpu-defs.h:489:69: note: expanded from macro 'this_cpu_read'
     489 | #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
         |                                                                                 ^~~
   include/linux/percpu-defs.h:321:31: note: expanded from macro '__pcpu_size_call_return'
     321 |         case 1: pscr_ret__ = stem##1(variable); break;                  \
         |                                      ^~~~~~~~
   include/asm-generic/percpu.h:375:53: note: expanded from macro 'this_cpu_read_1'
     375 | #define this_cpu_read_1(pcp)            this_cpu_generic_read(pcp)
         |                                                               ^~~
   include/asm-generic/percpu.h:145:20: note: expanded from macro 'this_cpu_generic_read'
     145 |         if (__native_word(pcp))                                         \
         |                           ^~~
   include/linux/compiler_types.h:454:10: note: expanded from macro '__native_word'
     454 |         (sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || \
         |                 ^
   kernel/tracepoint.c:171:9: note: forward declaration of 'struct bpf_raw_tp_link'
     171 |         struct bpf_raw_tp_link *link;
         |                ^
>> kernel/tracepoint.c:178:36: error: incomplete definition of type 'struct bpf_raw_tp_link'
     178 |                 int active = this_cpu_read(*(link->link.prog->active));
         |                                              ~~~~^
   include/linux/percpu-defs.h:489:69: note: expanded from macro 'this_cpu_read'
     489 | #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
         |                                                                                 ^~~
   include/linux/percpu-defs.h:321:31: note: expanded from macro '__pcpu_size_call_return'
     321 |         case 1: pscr_ret__ = stem##1(variable); break;                  \
         |                                      ^~~~~~~~
   include/asm-generic/percpu.h:375:53: note: expanded from macro 'this_cpu_read_1'
     375 | #define this_cpu_read_1(pcp)            this_cpu_generic_read(pcp)
         |                                                               ^~~
   include/asm-generic/percpu.h:145:20: note: expanded from macro 'this_cpu_generic_read'
     145 |         if (__native_word(pcp))                                         \
         |                           ^~~
   include/linux/compiler_types.h:454:39: note: expanded from macro '__native_word'
     454 |         (sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || \
         |                                              ^
   kernel/tracepoint.c:171:9: note: forward declaration of 'struct bpf_raw_tp_link'
     171 |         struct bpf_raw_tp_link *link;
         |                ^
>> kernel/tracepoint.c:178:36: error: incomplete definition of type 'struct bpf_raw_tp_link'
     178 |                 int active = this_cpu_read(*(link->link.prog->active));
         |                                              ~~~~^
   include/linux/percpu-defs.h:489:69: note: expanded from macro 'this_cpu_read'
     489 | #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
         |                                                                                 ^~~
   include/linux/percpu-defs.h:321:31: note: expanded from macro '__pcpu_size_call_return'
     321 |         case 1: pscr_ret__ = stem##1(variable); break;                  \
         |                                      ^~~~~~~~
   include/asm-generic/percpu.h:375:53: note: expanded from macro 'this_cpu_read_1'
     375 | #define this_cpu_read_1(pcp)            this_cpu_generic_read(pcp)
         |                                                               ^~~
   include/asm-generic/percpu.h:145:20: note: expanded from macro 'this_cpu_generic_read'
     145 |         if (__native_word(pcp))                                         \
         |                           ^~~
   include/linux/compiler_types.h:455:10: note: expanded from macro '__native_word'
     455 |          sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
         |                 ^
   kernel/tracepoint.c:171:9: note: forward declaration of 'struct bpf_raw_tp_link'
     171 |         struct bpf_raw_tp_link *link;
         |                ^
>> kernel/tracepoint.c:178:36: error: incomplete definition of type 'struct bpf_raw_tp_link'
     178 |                 int active = this_cpu_read(*(link->link.prog->active));
         |                                              ~~~~^
   include/linux/percpu-defs.h:489:69: note: expanded from macro 'this_cpu_read'
     489 | #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
         |                                                                                 ^~~
   include/linux/percpu-defs.h:321:31: note: expanded from macro '__pcpu_size_call_return'
     321 |         case 1: pscr_ret__ = stem##1(variable); break;                  \
         |                                      ^~~~~~~~
   include/asm-generic/percpu.h:375:53: note: expanded from macro 'this_cpu_read_1'
     375 | #define this_cpu_read_1(pcp)            this_cpu_generic_read(pcp)
         |                                                               ^~~
   include/asm-generic/percpu.h:145:20: note: expanded from macro 'this_cpu_generic_read'
     145 |         if (__native_word(pcp))                                         \
         |                           ^~~
   include/linux/compiler_types.h:455:38: note: expanded from macro '__native_word'
     455 |          sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
         |                                             ^
   kernel/tracepoint.c:171:9: note: forward declaration of 'struct bpf_raw_tp_link'
     171 |         struct bpf_raw_tp_link *link;
         |                ^
>> kernel/tracepoint.c:178:36: error: incomplete definition of type 'struct bpf_raw_tp_link'
     178 |                 int active = this_cpu_read(*(link->link.prog->active));
         |                                              ~~~~^
   include/linux/percpu-defs.h:489:69: note: expanded from macro 'this_cpu_read'
     489 | #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
         |                                                                                 ^~~
   include/linux/percpu-defs.h:321:31: note: expanded from macro '__pcpu_size_call_return'
     321 |         case 1: pscr_ret__ = stem##1(variable); break;                  \
         |                                      ^~~~~~~~
   include/asm-generic/percpu.h:375:53: note: expanded from macro 'this_cpu_read_1'
     375 | #define this_cpu_read_1(pcp)            this_cpu_generic_read(pcp)
         |                                                               ^~~
   include/asm-generic/percpu.h:146:45: note: expanded from macro 'this_cpu_generic_read'
     146 |                 __ret = __this_cpu_generic_read_nopreempt(pcp);         \
         |                                                           ^~~
   include/asm-generic/percpu.h:125:9: note: expanded from macro '__this_cpu_generic_read_nopreempt'
     125 |         typeof(pcp) ___ret;                                             \
         |                ^~~
   kernel/tracepoint.c:171:9: note: forward declaration of 'struct bpf_raw_tp_link'
     171 |         struct bpf_raw_tp_link *link;
         |                ^
>> kernel/tracepoint.c:178:36: error: incomplete definition of type 'struct bpf_raw_tp_link'
     178 |                 int active = this_cpu_read(*(link->link.prog->active));
         |                                              ~~~~^
   include/linux/percpu-defs.h:489:69: note: expanded from macro 'this_cpu_read'
     489 | #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
         |                                                                                 ^~~
   include/linux/percpu-defs.h:321:31: note: expanded from macro '__pcpu_size_call_return'
     321 |         case 1: pscr_ret__ = stem##1(variable); break;                  \
         |                                      ^~~~~~~~
   include/asm-generic/percpu.h:375:53: note: expanded from macro 'this_cpu_read_1'
     375 | #define this_cpu_read_1(pcp)            this_cpu_generic_read(pcp)
         |                                                               ^~~
   note: (skipping 7 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler_types.h:487:22: note: expanded from macro 'compiletime_assert'
     487 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                             ^~~~~~~~~
   include/linux/compiler_types.h:475:23: note: expanded from macro '_compiletime_assert'
     475 |         __compiletime_assert(condition, msg, prefix, suffix)
         |                              ^~~~~~~~~
   include/linux/compiler_types.h:467:9: note: expanded from macro '__compiletime_assert'
     467 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   kernel/tracepoint.c:171:9: note: forward declaration of 'struct bpf_raw_tp_link'
     171 |         struct bpf_raw_tp_link *link;
         |                ^
>> kernel/tracepoint.c:178:36: error: incomplete definition of type 'struct bpf_raw_tp_link'
     178 |                 int active = this_cpu_read(*(link->link.prog->active));
         |                                              ~~~~^
   include/linux/percpu-defs.h:489:69: note: expanded from macro 'this_cpu_read'
     489 | #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
         |                                                                                 ^~~
   include/linux/percpu-defs.h:321:31: note: expanded from macro '__pcpu_size_call_return'
     321 |         case 1: pscr_ret__ = stem##1(variable); break;                  \
         |                                      ^~~~~~~~
   include/asm-generic/percpu.h:375:53: note: expanded from macro 'this_cpu_read_1'
     375 | #define this_cpu_read_1(pcp)            this_cpu_generic_read(pcp)
         |                                                               ^~~
   note: (skipping 9 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler_types.h:487:22: note: expanded from macro 'compiletime_assert'
     487 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                             ^~~~~~~~~
   include/linux/compiler_types.h:475:23: note: expanded from macro '_compiletime_assert'
     475 |         __compiletime_assert(condition, msg, prefix, suffix)
         |                              ^~~~~~~~~
   include/linux/compiler_types.h:467:9: note: expanded from macro '__compiletime_assert'
     467 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   kernel/tracepoint.c:171:9: note: forward declaration of 'struct bpf_raw_tp_link'
     171 |         struct bpf_raw_tp_link *link;
         |                ^
>> kernel/tracepoint.c:178:36: error: incomplete definition of type 'struct bpf_raw_tp_link'
     178 |                 int active = this_cpu_read(*(link->link.prog->active));
         |                                              ~~~~^
   include/linux/percpu-defs.h:489:69: note: expanded from macro 'this_cpu_read'
     489 | #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
         |                                                                                 ^~~
   include/linux/percpu-defs.h:321:31: note: expanded from macro '__pcpu_size_call_return'
     321 |         case 1: pscr_ret__ = stem##1(variable); break;                  \
         |                                      ^~~~~~~~
   include/asm-generic/percpu.h:375:53: note: expanded from macro 'this_cpu_read_1'
     375 | #define this_cpu_read_1(pcp)            this_cpu_generic_read(pcp)
         |                                                               ^~~
   note: (skipping 9 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler_types.h:487:22: note: expanded from macro 'compiletime_assert'
     487 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                             ^~~~~~~~~
   include/linux/compiler_types.h:475:23: note: expanded from macro '_compiletime_assert'
     475 |         __compiletime_assert(condition, msg, prefix, suffix)
         |                              ^~~~~~~~~
   include/linux/compiler_types.h:467:9: note: expanded from macro '__compiletime_assert'
     467 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   kernel/tracepoint.c:171:9: note: forward declaration of 'struct bpf_raw_tp_link'
     171 |         struct bpf_raw_tp_link *link;
         |                ^
>> kernel/tracepoint.c:178:36: error: incomplete definition of type 'struct bpf_raw_tp_link'
     178 |                 int active = this_cpu_read(*(link->link.prog->active));
         |                                              ~~~~^
   include/linux/percpu-defs.h:489:69: note: expanded from macro 'this_cpu_read'
     489 | #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
         |                                                                                 ^~~
   include/linux/percpu-defs.h:321:31: note: expanded from macro '__pcpu_size_call_return'
     321 |         case 1: pscr_ret__ = stem##1(variable); break;                  \
         |                                      ^~~~~~~~
   include/asm-generic/percpu.h:375:53: note: expanded from macro 'this_cpu_read_1'
     375 | #define this_cpu_read_1(pcp)            this_cpu_generic_read(pcp)
         |                                                               ^~~
   note: (skipping 9 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler_types.h:487:22: note: expanded from macro 'compiletime_assert'
     487 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                             ^~~~~~~~~
   include/linux/compiler_types.h:475:23: note: expanded from macro '_compiletime_assert'
     475 |         __compiletime_assert(condition, msg, prefix, suffix)
         |                              ^~~~~~~~~
   include/linux/compiler_types.h:467:9: note: expanded from macro '__compiletime_assert'
     467 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   kernel/tracepoint.c:171:9: note: forward declaration of 'struct bpf_raw_tp_link'
     171 |         struct bpf_raw_tp_link *link;
         |                ^
>> kernel/tracepoint.c:178:36: error: incomplete definition of type 'struct bpf_raw_tp_link'
     178 |                 int active = this_cpu_read(*(link->link.prog->active));
         |                                              ~~~~^
   include/linux/percpu-defs.h:489:69: note: expanded from macro 'this_cpu_read'
     489 | #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
         |                                                                                 ^~~
   include/linux/percpu-defs.h:321:31: note: expanded from macro '__pcpu_size_call_return'
     321 |         case 1: pscr_ret__ = stem##1(variable); break;                  \
         |                                      ^~~~~~~~
   include/asm-generic/percpu.h:375:53: note: expanded from macro 'this_cpu_read_1'
     375 | #define this_cpu_read_1(pcp)            this_cpu_generic_read(pcp)
         |                                                               ^~~
   note: (skipping 9 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler_types.h:487:22: note: expanded from macro 'compiletime_assert'
     487 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                             ^~~~~~~~~
   include/linux/compiler_types.h:475:23: note: expanded from macro '_compiletime_assert'
     475 |         __compiletime_assert(condition, msg, prefix, suffix)
         |                              ^~~~~~~~~
   include/linux/compiler_types.h:467:9: note: expanded from macro '__compiletime_assert'
     467 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   kernel/tracepoint.c:171:9: note: forward declaration of 'struct bpf_raw_tp_link'
     171 |         struct bpf_raw_tp_link *link;
         |                ^
>> kernel/tracepoint.c:178:16: error: indirection requires pointer operand ('void' invalid)
     178 |                 int active = this_cpu_read(*(link->link.prog->active));
         |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:489:29: note: expanded from macro 'this_cpu_read'
     489 | #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:321:23: note: expanded from macro '__pcpu_size_call_return'
     321 |         case 1: pscr_ret__ = stem##1(variable); break;                  \
         |                              ^~~~~~~~~~~~~~~~~
   <scratch space>:68:1: note: expanded from here
      68 | this_cpu_read_1
         | ^
   note: (skipping 6 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler_types.h:487:22: note: expanded from macro 'compiletime_assert'
     487 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:475:23: note: expanded from macro '_compiletime_assert'
     475 |         __compiletime_assert(condition, msg, prefix, suffix)
         |         ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:467:9: note: expanded from macro '__compiletime_assert'
     467 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
>> kernel/tracepoint.c:178:36: error: incomplete definition of type 'struct bpf_raw_tp_link'
     178 |                 int active = this_cpu_read(*(link->link.prog->active));
         |                                              ~~~~^
   include/linux/percpu-defs.h:489:69: note: expanded from macro 'this_cpu_read'
     489 | #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
         |                                                                                 ^~~
   include/linux/percpu-defs.h:321:31: note: expanded from macro '__pcpu_size_call_return'
     321 |         case 1: pscr_ret__ = stem##1(variable); break;                  \
         |                                      ^~~~~~~~
   include/asm-generic/percpu.h:375:53: note: expanded from macro 'this_cpu_read_1'
     375 | #define this_cpu_read_1(pcp)            this_cpu_generic_read(pcp)
         |                                                               ^~~
   note: (skipping 7 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler_types.h:487:22: note: expanded from macro 'compiletime_assert'
     487 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                             ^~~~~~~~~
   include/linux/compiler_types.h:475:23: note: expanded from macro '_compiletime_assert'
     475 |         __compiletime_assert(condition, msg, prefix, suffix)
         |                              ^~~~~~~~~
   include/linux/compiler_types.h:467:9: note: expanded from macro '__compiletime_assert'
     467 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   kernel/tracepoint.c:171:9: note: forward declaration of 'struct bpf_raw_tp_link'
     171 |         struct bpf_raw_tp_link *link;
         |                ^
>> kernel/tracepoint.c:178:36: error: incomplete definition of type 'struct bpf_raw_tp_link'
     178 |                 int active = this_cpu_read(*(link->link.prog->active));
         |                                              ~~~~^
   include/linux/percpu-defs.h:489:69: note: expanded from macro 'this_cpu_read'
     489 | #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
         |                                                                                 ^~~
   include/linux/percpu-defs.h:321:31: note: expanded from macro '__pcpu_size_call_return'
     321 |         case 1: pscr_ret__ = stem##1(variable); break;                  \
         |                                      ^~~~~~~~
   include/asm-generic/percpu.h:375:53: note: expanded from macro 'this_cpu_read_1'
     375 | #define this_cpu_read_1(pcp)            this_cpu_generic_read(pcp)
         |                                                               ^~~
   note: (skipping 9 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler_types.h:487:22: note: expanded from macro 'compiletime_assert'
     487 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                             ^~~~~~~~~
   include/linux/compiler_types.h:475:23: note: expanded from macro '_compiletime_assert'
     475 |         __compiletime_assert(condition, msg, prefix, suffix)
         |                              ^~~~~~~~~
   include/linux/compiler_types.h:467:9: note: expanded from macro '__compiletime_assert'
     467 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   kernel/tracepoint.c:171:9: note: forward declaration of 'struct bpf_raw_tp_link'
     171 |         struct bpf_raw_tp_link *link;
         |                ^
>> kernel/tracepoint.c:178:36: error: incomplete definition of type 'struct bpf_raw_tp_link'
     178 |                 int active = this_cpu_read(*(link->link.prog->active));
         |                                              ~~~~^
   include/linux/percpu-defs.h:489:69: note: expanded from macro 'this_cpu_read'
     489 | #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
         |                                                                                 ^~~
   include/linux/percpu-defs.h:321:31: note: expanded from macro '__pcpu_size_call_return'
     321 |         case 1: pscr_ret__ = stem##1(variable); break;                  \
         |                                      ^~~~~~~~
   include/asm-generic/percpu.h:375:53: note: expanded from macro 'this_cpu_read_1'
     375 | #define this_cpu_read_1(pcp)            this_cpu_generic_read(pcp)
         |                                                               ^~~
   note: (skipping 9 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler_types.h:487:22: note: expanded from macro 'compiletime_assert'
     487 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                             ^~~~~~~~~
   include/linux/compiler_types.h:475:23: note: expanded from macro '_compiletime_assert'
     475 |         __compiletime_assert(condition, msg, prefix, suffix)
         |                              ^~~~~~~~~
   include/linux/compiler_types.h:467:9: note: expanded from macro '__compiletime_assert'
     467 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   kernel/tracepoint.c:171:9: note: forward declaration of 'struct bpf_raw_tp_link'
     171 |         struct bpf_raw_tp_link *link;
         |                ^
>> kernel/tracepoint.c:178:36: error: incomplete definition of type 'struct bpf_raw_tp_link'
     178 |                 int active = this_cpu_read(*(link->link.prog->active));
         |                                              ~~~~^
   include/linux/percpu-defs.h:489:69: note: expanded from macro 'this_cpu_read'
     489 | #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
         |                                                                                 ^~~
   include/linux/percpu-defs.h:321:31: note: expanded from macro '__pcpu_size_call_return'
     321 |         case 1: pscr_ret__ = stem##1(variable); break;                  \
         |                                      ^~~~~~~~
   include/asm-generic/percpu.h:375:53: note: expanded from macro 'this_cpu_read_1'
     375 | #define this_cpu_read_1(pcp)            this_cpu_generic_read(pcp)
         |                                                               ^~~
   note: (skipping 9 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler_types.h:487:22: note: expanded from macro 'compiletime_assert'
     487 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                             ^~~~~~~~~
   include/linux/compiler_types.h:475:23: note: expanded from macro '_compiletime_assert'
     475 |         __compiletime_assert(condition, msg, prefix, suffix)
         |                              ^~~~~~~~~
   include/linux/compiler_types.h:467:9: note: expanded from macro '__compiletime_assert'
     467 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   kernel/tracepoint.c:171:9: note: forward declaration of 'struct bpf_raw_tp_link'
     171 |         struct bpf_raw_tp_link *link;
         |                ^
   fatal error: too many errors emitted, stopping now [-ferror-limit=]
   5 warnings and 20 errors generated.


vim +178 kernel/tracepoint.c

   167	
   168	static void debug_print_probes(struct tracepoint_func *funcs)
   169	{
   170		int i;
   171		struct bpf_raw_tp_link *link;
   172	
   173		if (!tracepoint_debug || !funcs)
   174			return;
   175	
   176		for (i = 0; funcs[i].func; i++) {
   177			link = funcs[i].data;
 > 178			int active = this_cpu_read(*(link->link.prog->active));
   179			printk("Probe %d : %p / %p: %s/%d / %i\n", i,
   180					funcs[i].func,
   181					link,
   182					link->link.prog->aux->name,
   183					active,
   184					funcs[i].prio);
   185		}
   186	}
   187	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-06-06 21:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <000000000000277099061a394d13@google.com>
2024-06-06 21:05 ` possible deadlock in trie_delete_elem kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).