Hi Lorenz, I love your patch! Yet something to improve: [auto build test ERROR on bpf-next/master] url: https://github.com/0day-ci/linux/commits/Lorenz-Bauer/Sockmap-copying/20200925-175852 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master config: arm-randconfig-r023-20200925 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c32e69b2ce7abfb151a87ba363ac9e25abf7d417) 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 # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://github.com/0day-ci/linux/commit/8021d25b95546c5e69261c6083c6eed8909caffd git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Lorenz-Bauer/Sockmap-copying/20200925-175852 git checkout 8021d25b95546c5e69261c6083c6eed8909caffd # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> kernel/bpf/verifier.c:3941:16: error: use of undeclared identifier 'ARG_PTR_TO_BTF_ID_SOCK_COMMON'; did you mean 'ARG_PTR_TO_SOCK_COMMON'? *arg_type = ARG_PTR_TO_BTF_ID_SOCK_COMMON; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ARG_PTR_TO_SOCK_COMMON include/linux/bpf.h:286:2: note: 'ARG_PTR_TO_SOCK_COMMON' declared here ARG_PTR_TO_SOCK_COMMON, /* pointer to sock_common */ ^ 1 error generated. vim +3941 kernel/bpf/verifier.c 3926 3927 static int resolve_map_arg_type(struct bpf_verifier_env *env, 3928 const struct bpf_call_arg_meta *meta, 3929 enum bpf_arg_type *arg_type) 3930 { 3931 if (!meta->map_ptr) { 3932 /* kernel subsystem misconfigured verifier */ 3933 verbose(env, "invalid map_ptr to access map->type\n"); 3934 return -EACCES; 3935 } 3936 3937 switch (meta->map_ptr->map_type) { 3938 case BPF_MAP_TYPE_SOCKMAP: 3939 case BPF_MAP_TYPE_SOCKHASH: 3940 if (*arg_type == ARG_PTR_TO_MAP_VALUE) { > 3941 *arg_type = ARG_PTR_TO_BTF_ID_SOCK_COMMON; 3942 } else { 3943 verbose(env, "invalid arg_type for sockmap/sockhash\n"); 3944 return -EINVAL; 3945 } 3946 break; 3947 3948 default: 3949 break; 3950 } 3951 return 0; 3952 } 3953 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org