On Mon, Jul 25, 2022 at 9:27 AM Stanislav Fomichev <sdf@xxxxxxxxxx> wrote: > > On Sun, Jul 24, 2022 at 8:19 AM kernel test robot <lkp@xxxxxxxxx> wrote: > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > > head: 18c107a1f120d095404d141dfad8f594bdc44020 > > commit: 3908fcddc65d04e069b03be49b33fae90e424631 [11295/12552] bpf: fix lsm_cgroup build errors on esoteric configs > > config: x86_64-randconfig-a016-20220718 (https://download.01.org/0day-ci/archive/20220724/202207242322.9ymWznA0-lkp@xxxxxxxxx/config) > > compiler: gcc-11 (Debian 11.3.0-3) 11.3.0 > > reproduce (this is a W=1 build): > > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=3908fcddc65d04e069b03be49b33fae90e424631 > > git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > > git fetch --no-tags linux-next master > > git checkout 3908fcddc65d04e069b03be49b33fae90e424631 > > # save the config file > > mkdir build_dir && cp config build_dir/.config > > make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash > > > > If you fix the issue, kindly add following tag where applicable > > Reported-by: kernel test robot <lkp@xxxxxxxxx> > > > > Note: the linux-next/master HEAD 18c107a1f120d095404d141dfad8f594bdc44020 builds fine. > > It may have been fixed somewhere. > > > > All errors (new ones prefixed by >>): > > > > ld: vmlinux.o: in function `cgroup_bpf_release': > > cgroup.c:(.text+0x22faf7): undefined reference to `bpf_trampoline_unlink_cgroup_shim' > > ld: cgroup.c:(.text+0x22fb46): undefined reference to `bpf_trampoline_unlink_cgroup_shim' > > ld: vmlinux.o: in function `__cgroup_bpf_attach': > > >> cgroup.c:(.text+0x23039c): undefined reference to `bpf_trampoline_link_cgroup_shim' > > ld: cgroup.c:(.text+0x2303dd): undefined reference to `bpf_trampoline_unlink_cgroup_shim' > > ld: cgroup.c:(.text+0x230411): undefined reference to `bpf_trampoline_unlink_cgroup_shim' > > ld: vmlinux.o: in function `__cgroup_bpf_detach': > > cgroup.c:(.text+0x23096c): undefined reference to `bpf_trampoline_unlink_cgroup_shim' > > ld: vmlinux.o: in function `bpf_cgroup_link_release': > > cgroup.c:(.text+0x230a57): undefined reference to `bpf_trampoline_unlink_cgroup_shim' > > Hm, looks like [1] is not enough? I'll take another look.. > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git/commit/?id=9cb61fda8c71baaff423fe5be2e609100860fa78 With the config above: $ git checkout 3908fcddc65d04e069b03be49b33fae90e424631 $ make ld: vmlinux.o: in function `cgroup_bpf_release': cgroup.c:(.text+0x22e8bf): undefined reference to `bpf_trampoline_unlink_cgroup_shim' ld: cgroup.c:(.text+0x22e90e): undefined reference to `bpf_trampoline_unlink_cgroup_shim' ld: vmlinux.o: in function `__cgroup_bpf_attach': cgroup.c:(.text+0x22f164): undefined reference to `bpf_trampoline_link_cgroup_shim' ld: cgroup.c:(.text+0x22f1a5): undefined reference to `bpf_trampoline_unlink_cgroup_shim' ld: cgroup.c:(.text+0x22f1d9): undefined reference to `bpf_trampoline_unlink_cgroup_shim' ld: vmlinux.o: in function `__cgroup_bpf_detach': cgroup.c:(.text+0x22f734): undefined reference to `bpf_trampoline_unlink_cgroup_shim' ld: vmlinux.o: in function `bpf_cgroup_link_release': cgroup.c:(.text+0x22f81f): undefined reference to `bpf_trampoline_unlink_cgroup_shim' make: *** [Makefile:1164: vmlinux] Error 1 $ git checkout bpf-next $ make olddefconfig $ make $ So seems fine? I'm assuming this failure is from the old next-20220722 and the latest linux-next is ok. > > -- > > 0-DAY CI Kernel Test Service > > https://01.org/lkp