lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:   Thu, 3 Feb 2022 11:00:16 +0800
From:   kernel test robot <lkp@...el.com>
To:     Jiri Olsa <jolsa@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [jolsa-perf:bpf/fprobe_link 4/10]
 include/linux/compiler_types.h:143:41: error: 'struct pt_regs' has no member
 named 'ip'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/fprobe_link
head:   f35f5b111d32e11c2201dcbfa5e3c8c0560a0a43
commit: 920d37911d3fcf2459de4d3f361bae269d37de1c [4/10] bpf: Add bpf_get_func_ip kprobe helper for fprobe link
config: m68k-defconfig (https://download.01.org/0day-ci/archive/20220203/202202031016.tJSG2jo5-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/commit/?id=920d37911d3fcf2459de4d3f361bae269d37de1c
        git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
        git fetch --no-tags jolsa-perf bpf/fprobe_link
        git checkout 920d37911d3fcf2459de4d3f361bae269d37de1c
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   In file included from include/linux/bpf_verifier.h:9,
                    from kernel/bpf/verifier.c:13:
   kernel/bpf/verifier.c: In function 'do_misc_fixups':
>> include/linux/compiler_types.h:143:41: error: 'struct pt_regs' has no member named 'ip'
     143 | #define __compiler_offsetof(a, b)       __builtin_offsetof(a, b)
         |                                         ^~~~~~~~~~~~~~~~~~
   include/linux/filter.h:253:26: note: in definition of macro 'BPF_LDX_MEM'
     253 |                 .off   = OFF,                                   \
         |                          ^~~
   include/linux/stddef.h:17:33: note: in expansion of macro '__compiler_offsetof'
      17 | #define offsetof(TYPE, MEMBER)  __compiler_offsetof(TYPE, MEMBER)
         |                                 ^~~~~~~~~~~~~~~~~~~
   kernel/bpf/verifier.c:13649:51: note: in expansion of macro 'offsetof'
   13649 |                                                   offsetof(struct pt_regs, ip));
         |                                                   ^~~~~~~~


vim +143 include/linux/compiler_types.h

71391bdd2e9aab1 Xiaozhou Liu 2018-12-14  142  
71391bdd2e9aab1 Xiaozhou Liu 2018-12-14 @143  #define __compiler_offsetof(a, b)	__builtin_offsetof(a, b)
71391bdd2e9aab1 Xiaozhou Liu 2018-12-14  144  

:::::: The code at line 143 was first introduced by commit
:::::: 71391bdd2e9aab188f86bf1ecd9b232531ec7eea include/linux/compiler_types.h: don't pollute userspace with macro definitions

:::::: TO: Xiaozhou Liu <liuxiaozhou@...edance.com>
:::::: CC: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ