Hi Leon, kernel test robot noticed the following build errors: [auto build test ERROR on bpf-next/master] url: https://github.com/intel-lab-lkp/linux/commits/Leon-Hwang/bpf-Prevent-tailcall-infinite-loop-caused-by-freplace/20241006-210309 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master patch link: https://lore.kernel.org/r/20241006130130.77125-2-leon.hwang%40linux.dev patch subject: [PATCH bpf-next v5 1/3] bpf: Prevent tailcall infinite loop caused by freplace config: arc-nsimosci_hs_defconfig (https://download.01.org/0day-ci/archive/20241008/202410080554.slh2FEXJ-lkp@xxxxxxxxx/config) compiler: arc-elf-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241008/202410080554.slh2FEXJ-lkp@xxxxxxxxx/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@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202410080554.slh2FEXJ-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): arc-elf-ld: init/do_mounts.o: in function `bpf_extension_link_prog': >> do_mounts.c:(.text+0x14): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: init/do_mounts.o: in function `bpf_extension_unlink_prog': >> do_mounts.c:(.text+0x1c): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: init/do_mounts_initrd.o: in function `bpf_extension_link_prog': do_mounts_initrd.c:(.text+0x0): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: init/do_mounts_initrd.o: in function `bpf_extension_unlink_prog': do_mounts_initrd.c:(.text+0x8): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: init/initramfs.o: in function `bpf_extension_link_prog': initramfs.c:(.text+0x44): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: init/initramfs.o: in function `bpf_extension_unlink_prog': initramfs.c:(.text+0x4c): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: arch/arc/kernel/ptrace.o: in function `bpf_extension_link_prog': ptrace.c:(.text+0x13f4): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: arch/arc/kernel/ptrace.o: in function `bpf_extension_unlink_prog': ptrace.c:(.text+0x13fc): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: arch/arc/kernel/process.o: in function `bpf_extension_link_prog': process.c:(.text+0x174): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: arch/arc/kernel/process.o: in function `bpf_extension_unlink_prog': process.c:(.text+0x17c): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: arch/arc/kernel/signal.o: in function `bpf_extension_link_prog': signal.c:(.text+0x45c): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: arch/arc/kernel/signal.o: in function `bpf_extension_unlink_prog': signal.c:(.text+0x464): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: arch/arc/kernel/sys.o: in function `bpf_extension_link_prog': sys.c:(.text+0x0): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: arch/arc/kernel/sys.o: in function `bpf_extension_unlink_prog': sys.c:(.text+0x8): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: arch/arc/kernel/perf_event.o: in function `bpf_extension_link_prog': perf_event.c:(.text+0xbb4): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: arch/arc/kernel/perf_event.o: in function `bpf_extension_unlink_prog': perf_event.c:(.text+0xbbc): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: arch/arc/mm/fault.o: in function `bpf_extension_link_prog': fault.c:(.text+0x28): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: arch/arc/mm/fault.o: in function `bpf_extension_unlink_prog': fault.c:(.text+0x30): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: arch/arc/mm/cache.o: in function `bpf_extension_link_prog': cache.c:(.text+0x2f4): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: arch/arc/mm/cache.o: in function `bpf_extension_unlink_prog': cache.c:(.text+0x2fc): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: kernel/fork.o: in function `bpf_extension_link_prog': fork.c:(.text+0x1090): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: kernel/fork.o: in function `bpf_extension_unlink_prog': fork.c:(.text+0x1098): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: kernel/exec_domain.o: in function `bpf_extension_link_prog': exec_domain.c:(.text+0x14): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: kernel/exec_domain.o: in function `bpf_extension_unlink_prog': exec_domain.c:(.text+0x1c): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: kernel/cpu.o: in function `bpf_extension_link_prog': cpu.c:(.text+0xbec): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: kernel/cpu.o: in function `bpf_extension_unlink_prog': cpu.c:(.text+0xbf4): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: kernel/exit.o: in function `bpf_extension_link_prog': exit.c:(.text+0x6b4): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: kernel/exit.o: in function `bpf_extension_unlink_prog': exit.c:(.text+0x6bc): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: kernel/softirq.o: in function `bpf_extension_link_prog': softirq.c:(.text+0xe88): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: kernel/softirq.o: in function `bpf_extension_unlink_prog': softirq.c:(.text+0xe90): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: kernel/resource.o: in function `bpf_extension_link_prog': resource.c:(.text+0xb68): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: kernel/resource.o: in function `bpf_extension_unlink_prog': resource.c:(.text+0xb70): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: kernel/sysctl.o: in function `bpf_extension_link_prog': sysctl.c:(.text+0x14f4): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: kernel/sysctl.o: in function `bpf_extension_unlink_prog': sysctl.c:(.text+0x14fc): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: kernel/capability.o: in function `bpf_extension_link_prog': capability.c:(.text+0x718): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: kernel/capability.o: in function `bpf_extension_unlink_prog': capability.c:(.text+0x720): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: kernel/ptrace.o: in function `bpf_extension_link_prog': ptrace.c:(.text+0x580): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: kernel/ptrace.o: in function `bpf_extension_unlink_prog': ptrace.c:(.text+0x588): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: kernel/signal.o: in function `bpf_extension_link_prog': signal.c:(.text+0x1118): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: kernel/signal.o: in function `bpf_extension_unlink_prog': signal.c:(.text+0x1120): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: kernel/sys.o: in function `bpf_extension_link_prog': sys.c:(.text+0xf70): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: kernel/sys.o: in function `bpf_extension_unlink_prog': sys.c:(.text+0xf78): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: kernel/umh.o: in function `bpf_extension_link_prog': umh.c:(.text+0x5c0): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: kernel/umh.o: in function `bpf_extension_unlink_prog': umh.c:(.text+0x5c8): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: kernel/workqueue.o: in function `bpf_extension_link_prog': workqueue.c:(.text+0x55a8): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: kernel/workqueue.o: in function `bpf_extension_unlink_prog': workqueue.c:(.text+0x55b0): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: kernel/pid.o: in function `bpf_extension_link_prog': pid.c:(.text+0x308): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: kernel/pid.o: in function `bpf_extension_unlink_prog': pid.c:(.text+0x310): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: kernel/extable.o: in function `bpf_extension_link_prog': extable.c:(.text+0x0): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: kernel/extable.o: in function `bpf_extension_unlink_prog': extable.c:(.text+0x8): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here arc-elf-ld: kernel/params.o: in function `bpf_extension_link_prog': params.c:(.text+0x918): multiple definition of `bpf_extension_link_prog'; init/main.o:main.c:(.text+0x5dc): first defined here arc-elf-ld: kernel/params.o: in function `bpf_extension_unlink_prog': params.c:(.text+0x920): multiple definition of `bpf_extension_unlink_prog'; init/main.o:main.c:(.text+0x5e4): first defined here -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki