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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202111191102.WyTV60HI-lkp@intel.com>
Date:   Fri, 19 Nov 2021 11:39:14 +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/batch 17/29] kernel/bpf/trampoline.c:118: undefined
 reference to `bpf_check_attach_target'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/batch
head:   5f1f613266bf58f8424a93e1f8b99c4ac8fa6c2b
commit: 12ea728e52b0432131a800281f2015a7358b3d81 [17/29] bpf: Resolve id in bpf_tramp_id_single
config: i386-randconfig-c023-20211118 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/commit/?id=12ea728e52b0432131a800281f2015a7358b3d81
        git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
        git fetch --no-tags jolsa-perf bpf/batch
        git checkout 12ea728e52b0432131a800281f2015a7358b3d81
        # save the attached .config to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 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 >>):

   ld: kernel/bpf/trampoline.o: in function `bpf_tramp_id_single':
>> kernel/bpf/trampoline.c:118: undefined reference to `bpf_check_attach_target'
>> ld: kernel/bpf/trampoline.c:129: undefined reference to `btf_obj_id'
   ld: kernel/bpf/trampoline.o: in function `bpf_tramp_attach':
   kernel/bpf/trampoline.c:644: undefined reference to `bpf_check_attach_model'


vim +118 kernel/bpf/trampoline.c

   106	
   107	struct bpf_tramp_id *bpf_tramp_id_single(const struct bpf_prog *tgt_prog,
   108						 struct bpf_prog *prog, u32 btf_id,
   109						 struct bpf_attach_target_info *tgt_info)
   110	{
   111		struct bpf_tramp_id *id;
   112	
   113		if (!tgt_info) {
   114			struct bpf_attach_target_info __tgt_info = {};
   115			int err;
   116	
   117			tgt_info = &__tgt_info;
 > 118			err = bpf_check_attach_target(NULL, prog, tgt_prog, btf_id,
   119						     tgt_info);
   120			if (err)
   121				return ERR_PTR(err);
   122		}
   123		id = bpf_tramp_id_alloc(1);
   124		if (!id)
   125			return ERR_PTR(-ENOMEM);
   126		if (tgt_prog)
   127			id->obj_id = tgt_prog->aux->id;
   128		else
 > 129			id->obj_id = btf_obj_id(prog->aux->attach_btf);
   130		id->id[0] = btf_id;
   131		id->addr[0] = (void *) tgt_info->tgt_addr;
   132		id->cnt = 1;
   133		return id;
   134	}
   135	

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

Download attachment ".config.gz" of type "application/gzip" (34716 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ