From: kernel test robot <lkp@intel.com>
To: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org
Subject: Re: [PATCH bpf-next 1/5] bpf: Extend sys_bpf commands for bpf_syscall programs.
Date: Wed, 9 Feb 2022 00:20:40 +0800 [thread overview]
Message-ID: <202202090005.4wGpcCXF-lkp@intel.com> (raw)
In-Reply-To: <20220204231710.25139-2-alexei.starovoitov@gmail.com>
Hi Alexei,
I love your patch! Perhaps something to improve:
[auto build test WARNING on bpf-next/master]
url: https://github.com/0day-ci/linux/commits/Alexei-Starovoitov/bpf-Light-skeleton-for-the-kernel/20220205-071811
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: mips-buildonly-randconfig-r001-20220208 (https://download.01.org/0day-ci/archive/20220209/202202090005.4wGpcCXF-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project e8bff9ae54a55b4dbfeb6ba55f723abbd81bf494)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://github.com/0day-ci/linux/commit/cf2c9222692d0cb93d17ab3ff9f972b40a0b7864
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Alexei-Starovoitov/bpf-Light-skeleton-for-the-kernel/20220205-071811
git checkout cf2c9222692d0cb93d17ab3ff9f972b40a0b7864
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash kernel/bpf/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> kernel/bpf/syscall.c:4762:19: warning: unused variable 'prog'
struct bpf_prog
^
fatal error: error in backend: Nested variants found in inline asm string: ' .set push
.set mips64r2
.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/atomic.h", .line = 156, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
1: ll $1, $2 # atomic_sub_return
subu $0, $1, $3
sc $0, $2
beqz $0, 1b
subu $0, $1, $3
.set pop
'
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: clang -Wp,-MMD,kernel/bpf/.syscall.o.d -nostdinc -Iarch/mips/include -I./arch/mips/include/generated -Iinclude -I./include -Iarch/mips/include/uapi -I./arch/mips/include/generated/uapi -Iinclude/uapi -I./include/generated/uapi -include include/linux/compiler-version.h -include include/linux/kconfig.h -include include/linux/compiler_types.h -D__KERNEL__ -DVMLINUX_LOAD_ADDRESS=0xffffffff80060000 -DLINKER_LOAD_ADDRESS=0x80060000 -DDATAOFFSET=0 -Qunused-arguments -fmacro-prefix-map== -DKBUILD_EXTRA_WARN1 -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 --target=mips-linux -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -mno-check-zero-division -mabi=32 -G 0 -mno-abicalls -fno-pic -pipe -msoft-float -DGAS_HAS_SET_HARDFLOAT -Wa,-msoft-float -ffreestanding -EB -fno-stack-check -march=mips32r2 -Wa,--trap -DTOOLCHAIN_SUPPORTS_VIRT -Iarch/mips/include/asm/mach-ath79 -Iarch/mips/include/asm/mach-generic -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-address-of-packed-member -O2 -Wframe-larger-than=1024 -fno-stack-protector -Wimplicit-fallthrough -Wno-gnu -mno-global-merge -Wno-unused-but-set-variable -Wno-unused-const-variable -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -fno-stack-clash-protection -pg -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-array-bounds -fno-strict-overflow -fno-stack-check -Werror=date-time -Werror=incompatible-pointer-types -Wextra -Wunused -Wno-unused-parameter -Wmissing-declarations -Wmissing-format-attribute -Wmissing-prototypes -Wold-style-definition -Wmissing-include-dirs -Wunused-but-set-variable -Wunused-const-variable -Wno-missing-field-initializers -Wno-sign-compare -Wno-type-limits -I kernel/bpf -I ./kernel/bpf -ffunction-sections -fdata-sections -DKBUILD_MODFILE="kernel/bpf/syscall" -DKBUILD_BASENAME="syscall" -DKBUILD_MODNAME="syscall" -D__KBUILD_MODNAME=kmod_syscall -c -o kernel/bpf/syscall.o kernel/bpf/syscall.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'kernel/bpf/syscall.c'.
4. Running pass 'Mips Assembly Printer' on function '@bpf_map_free_deferred'
#0 0x0000564a3997132f Signals.cpp:0:0
#1 0x0000564a3996f20c llvm::sys::CleanupOnSignal(unsigned long) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x346420c)
#2 0x0000564a398af687 llvm::CrashRecoveryContext::HandleExit(int) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x33a4687)
#3 0x0000564a399678be llvm::sys::Process::Exit(int, bool) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x345c8be)
#4 0x0000564a375aee3b (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x10a3e3b)
#5 0x0000564a398b613c llvm::report_fatal_error(llvm::Twine const&, bool) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x33ab13c)
#6 0x0000564a3a5a55a0 llvm::AsmPrinter::emitInlineAsm(llvm::MachineInstr const (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x409a5a0)
#7 0x0000564a3a5a14d4 llvm::AsmPrinter::emitFunctionBody() (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x40964d4)
#8 0x0000564a38016b57 llvm::MipsAsmPrinter::runOnMachineFunction(llvm::MachineFunction&) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x1b0bb57)
#9 0x0000564a38cc85dd llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.53) MachineFunctionPass.cpp:0:0
#10 0x0000564a39103d97 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x2bf8d97)
#11 0x0000564a39103f11 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x2bf8f11)
#12 0x0000564a39104a8f llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x2bf9a8f)
#13 0x0000564a39c88ef7 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream> >) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x377def7)
#14 0x0000564a3a8bdb63 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x43b2b63)
#15 0x0000564a3b392e29 clang::ParseAST(clang::Sema&, bool, bool) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x4e87e29)
#16 0x0000564a3a8bc99f clang::CodeGenAction::ExecuteAction() (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x43b199f)
#17 0x0000564a3a2bb1e1 clang::FrontendAction::Execute() (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x3db01e1)
#18 0x0000564a3a25211a clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x3d4711a)
#19 0x0000564a3a37f85b (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x3e7485b)
#20 0x0000564a375b03ec cc1_main(llvm::ArrayRef<char char (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x10a53ec)
#21 0x0000564a375ad0bb ExecuteCC1Tool(llvm::SmallVectorImpl<char driver.cpp:0:0
#22 0x0000564a3a0e9c85 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> const::'lambda'()>(long) Job.cpp:0:0
#23 0x0000564a398af543 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x33a4543)
#24 0x0000564a3a0ea57e clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> const (.part.216) Job.cpp:0:0
#25 0x0000564a3a0bf177 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x3bb4177)
#26 0x0000564a3a0bfb57 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) const (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x3bb4b57)
#27 0x0000564a3a0c91e9 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x3bbe1e9)
#28 0x0000564a374d626f main (/opt/cross/clang-e8bff9ae54/bin/clang-15+0xfcb26f)
#29 0x00007fa3ac551d0a __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26d0a)
#30 0x0000564a375acbda _start (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x10a1bda)
clang-15: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 15.0.0 (git://gitmirror/llvm_project e8bff9ae54a55b4dbfeb6ba55f723abbd81bf494)
Target: mips-unknown-linux
Thread model: posix
InstalledDir: /opt/cross/clang-e8bff9ae54/bin
clang-15: note: diagnostic msg:
Makefile arch include kernel nr_bisected scripts source usr
vim +/prog +4762 kernel/bpf/syscall.c
4759
4760 BPF_CALL_3(bpf_sys_bpf, int, cmd, union bpf_attr *, attr, u32, attr_size)
4761 {
> 4762 struct bpf_prog *prog;
4763
4764 switch (cmd) {
4765 case BPF_MAP_CREATE:
4766 case BPF_MAP_UPDATE_ELEM:
4767 case BPF_MAP_FREEZE:
4768 case BPF_PROG_LOAD:
4769 case BPF_BTF_LOAD:
4770 case BPF_LINK_CREATE:
4771 case BPF_RAW_TRACEPOINT_OPEN:
4772 break;
4773 #ifdef CONFIG_BPF_JIT /* __bpf_prog_enter_sleepable used by trampoline and JIT */
4774 case BPF_PROG_TEST_RUN:
4775 if (attr->test.data_in || attr->test.data_out ||
4776 attr->test.ctx_out || attr->test.duration ||
4777 attr->test.repeat || attr->test.flags)
4778 return -EINVAL;
4779
4780 prog = bpf_prog_get_type(attr->test.prog_fd, BPF_PROG_TYPE_SYSCALL);
4781 if (IS_ERR(prog))
4782 return PTR_ERR(prog);
4783
4784 if (attr->test.ctx_size_in < prog->aux->max_ctx_offset ||
4785 attr->test.ctx_size_in > U16_MAX) {
4786 bpf_prog_put(prog);
4787 return -EINVAL;
4788 }
4789
4790 if (!__bpf_prog_enter_sleepable(prog)) {
4791 /* recursion detected */
4792 bpf_prog_put(prog);
4793 return -EBUSY;
4794 }
4795 attr->test.retval = bpf_prog_run(prog, (void *) (long) attr->test.ctx_in);
4796 __bpf_prog_exit_sleepable(prog, 0 /* bpf_prog_run does runtime stats */);
4797 bpf_prog_put(prog);
4798 return 0;
4799 #endif
4800 default:
4801 return -EINVAL;
4802 }
4803 return __sys_bpf(cmd, KERNEL_BPFPTR(attr), attr_size);
4804 }
4805 EXPORT_SYMBOL(bpf_sys_bpf);
4806
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH bpf-next 1/5] bpf: Extend sys_bpf commands for bpf_syscall programs.
Date: Wed, 09 Feb 2022 00:20:40 +0800 [thread overview]
Message-ID: <202202090005.4wGpcCXF-lkp@intel.com> (raw)
In-Reply-To: <20220204231710.25139-2-alexei.starovoitov@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 11422 bytes --]
Hi Alexei,
I love your patch! Perhaps something to improve:
[auto build test WARNING on bpf-next/master]
url: https://github.com/0day-ci/linux/commits/Alexei-Starovoitov/bpf-Light-skeleton-for-the-kernel/20220205-071811
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: mips-buildonly-randconfig-r001-20220208 (https://download.01.org/0day-ci/archive/20220209/202202090005.4wGpcCXF-lkp(a)intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project e8bff9ae54a55b4dbfeb6ba55f723abbd81bf494)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://github.com/0day-ci/linux/commit/cf2c9222692d0cb93d17ab3ff9f972b40a0b7864
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Alexei-Starovoitov/bpf-Light-skeleton-for-the-kernel/20220205-071811
git checkout cf2c9222692d0cb93d17ab3ff9f972b40a0b7864
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash kernel/bpf/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> kernel/bpf/syscall.c:4762:19: warning: unused variable 'prog'
struct bpf_prog
^
fatal error: error in backend: Nested variants found in inline asm string: ' .set push
.set mips64r2
.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/atomic.h", .line = 156, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
1: ll $1, $2 # atomic_sub_return
subu $0, $1, $3
sc $0, $2
beqz $0, 1b
subu $0, $1, $3
.set pop
'
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: clang -Wp,-MMD,kernel/bpf/.syscall.o.d -nostdinc -Iarch/mips/include -I./arch/mips/include/generated -Iinclude -I./include -Iarch/mips/include/uapi -I./arch/mips/include/generated/uapi -Iinclude/uapi -I./include/generated/uapi -include include/linux/compiler-version.h -include include/linux/kconfig.h -include include/linux/compiler_types.h -D__KERNEL__ -DVMLINUX_LOAD_ADDRESS=0xffffffff80060000 -DLINKER_LOAD_ADDRESS=0x80060000 -DDATAOFFSET=0 -Qunused-arguments -fmacro-prefix-map== -DKBUILD_EXTRA_WARN1 -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 --target=mips-linux -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -mno-check-zero-division -mabi=32 -G 0 -mno-abicalls -fno-pic -pipe -msoft-float -DGAS_HAS_SET_HARDFLOAT -Wa,-msoft-float -ffreestanding -EB -fno-stack-check -march=mips32r2 -Wa,--trap -DTOOLCHAIN_SUPPORTS_VIRT -Iarch/mips/include/asm/mach-ath79 -Iarch/mips/include/asm/mach-generic -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-address-of-packed-member -O2 -Wframe-larger-than=1024 -fno-stack-protector -Wimplicit-fallthrough -Wno-gnu -mno-global-merge -Wno-unused-but-set-variable -Wno-unused-const-variable -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -fno-stack-clash-protection -pg -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-array-bounds -fno-strict-overflow -fno-stack-check -Werror=date-time -Werror=incompatible-pointer-types -Wextra -Wunused -Wno-unused-parameter -Wmissing-declarations -Wmissing-format-attribute -Wmissing-prototypes -Wold-style-definition -Wmissing-include-dirs -Wunused-but-set-variable -Wunused-const-variable -Wno-missing-field-initializers -Wno-sign-compare -Wno-type-limits -I kernel/bpf -I ./kernel/bpf -ffunction-sections -fdata-sections -DKBUILD_MODFILE="kernel/bpf/syscall" -DKBUILD_BASENAME="syscall" -DKBUILD_MODNAME="syscall" -D__KBUILD_MODNAME=kmod_syscall -c -o kernel/bpf/syscall.o kernel/bpf/syscall.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'kernel/bpf/syscall.c'.
4. Running pass 'Mips Assembly Printer' on function '@bpf_map_free_deferred'
#0 0x0000564a3997132f Signals.cpp:0:0
#1 0x0000564a3996f20c llvm::sys::CleanupOnSignal(unsigned long) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x346420c)
#2 0x0000564a398af687 llvm::CrashRecoveryContext::HandleExit(int) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x33a4687)
#3 0x0000564a399678be llvm::sys::Process::Exit(int, bool) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x345c8be)
#4 0x0000564a375aee3b (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x10a3e3b)
#5 0x0000564a398b613c llvm::report_fatal_error(llvm::Twine const&, bool) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x33ab13c)
#6 0x0000564a3a5a55a0 llvm::AsmPrinter::emitInlineAsm(llvm::MachineInstr const (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x409a5a0)
#7 0x0000564a3a5a14d4 llvm::AsmPrinter::emitFunctionBody() (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x40964d4)
#8 0x0000564a38016b57 llvm::MipsAsmPrinter::runOnMachineFunction(llvm::MachineFunction&) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x1b0bb57)
#9 0x0000564a38cc85dd llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.53) MachineFunctionPass.cpp:0:0
#10 0x0000564a39103d97 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x2bf8d97)
#11 0x0000564a39103f11 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x2bf8f11)
#12 0x0000564a39104a8f llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x2bf9a8f)
#13 0x0000564a39c88ef7 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream> >) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x377def7)
#14 0x0000564a3a8bdb63 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x43b2b63)
#15 0x0000564a3b392e29 clang::ParseAST(clang::Sema&, bool, bool) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x4e87e29)
#16 0x0000564a3a8bc99f clang::CodeGenAction::ExecuteAction() (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x43b199f)
#17 0x0000564a3a2bb1e1 clang::FrontendAction::Execute() (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x3db01e1)
#18 0x0000564a3a25211a clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x3d4711a)
#19 0x0000564a3a37f85b (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x3e7485b)
#20 0x0000564a375b03ec cc1_main(llvm::ArrayRef<char char (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x10a53ec)
#21 0x0000564a375ad0bb ExecuteCC1Tool(llvm::SmallVectorImpl<char driver.cpp:0:0
#22 0x0000564a3a0e9c85 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> const::'lambda'()>(long) Job.cpp:0:0
#23 0x0000564a398af543 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x33a4543)
#24 0x0000564a3a0ea57e clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> const (.part.216) Job.cpp:0:0
#25 0x0000564a3a0bf177 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x3bb4177)
#26 0x0000564a3a0bfb57 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) const (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x3bb4b57)
#27 0x0000564a3a0c91e9 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command >&) (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x3bbe1e9)
#28 0x0000564a374d626f main (/opt/cross/clang-e8bff9ae54/bin/clang-15+0xfcb26f)
#29 0x00007fa3ac551d0a __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26d0a)
#30 0x0000564a375acbda _start (/opt/cross/clang-e8bff9ae54/bin/clang-15+0x10a1bda)
clang-15: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 15.0.0 (git://gitmirror/llvm_project e8bff9ae54a55b4dbfeb6ba55f723abbd81bf494)
Target: mips-unknown-linux
Thread model: posix
InstalledDir: /opt/cross/clang-e8bff9ae54/bin
clang-15: note: diagnostic msg:
Makefile arch include kernel nr_bisected scripts source usr
vim +/prog +4762 kernel/bpf/syscall.c
4759
4760 BPF_CALL_3(bpf_sys_bpf, int, cmd, union bpf_attr *, attr, u32, attr_size)
4761 {
> 4762 struct bpf_prog *prog;
4763
4764 switch (cmd) {
4765 case BPF_MAP_CREATE:
4766 case BPF_MAP_UPDATE_ELEM:
4767 case BPF_MAP_FREEZE:
4768 case BPF_PROG_LOAD:
4769 case BPF_BTF_LOAD:
4770 case BPF_LINK_CREATE:
4771 case BPF_RAW_TRACEPOINT_OPEN:
4772 break;
4773 #ifdef CONFIG_BPF_JIT /* __bpf_prog_enter_sleepable used by trampoline and JIT */
4774 case BPF_PROG_TEST_RUN:
4775 if (attr->test.data_in || attr->test.data_out ||
4776 attr->test.ctx_out || attr->test.duration ||
4777 attr->test.repeat || attr->test.flags)
4778 return -EINVAL;
4779
4780 prog = bpf_prog_get_type(attr->test.prog_fd, BPF_PROG_TYPE_SYSCALL);
4781 if (IS_ERR(prog))
4782 return PTR_ERR(prog);
4783
4784 if (attr->test.ctx_size_in < prog->aux->max_ctx_offset ||
4785 attr->test.ctx_size_in > U16_MAX) {
4786 bpf_prog_put(prog);
4787 return -EINVAL;
4788 }
4789
4790 if (!__bpf_prog_enter_sleepable(prog)) {
4791 /* recursion detected */
4792 bpf_prog_put(prog);
4793 return -EBUSY;
4794 }
4795 attr->test.retval = bpf_prog_run(prog, (void *) (long) attr->test.ctx_in);
4796 __bpf_prog_exit_sleepable(prog, 0 /* bpf_prog_run does runtime stats */);
4797 bpf_prog_put(prog);
4798 return 0;
4799 #endif
4800 default:
4801 return -EINVAL;
4802 }
4803 return __sys_bpf(cmd, KERNEL_BPFPTR(attr), attr_size);
4804 }
4805 EXPORT_SYMBOL(bpf_sys_bpf);
4806
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
next prev parent reply other threads:[~2022-02-08 16:20 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-04 23:17 [PATCH bpf-next 0/5] bpf: Light skeleton for the kernel Alexei Starovoitov
2022-02-04 23:17 ` [PATCH bpf-next 1/5] bpf: Extend sys_bpf commands for bpf_syscall programs Alexei Starovoitov
2022-02-08 16:20 ` kernel test robot [this message]
2022-02-08 16:20 ` kernel test robot
2022-02-08 17:11 ` Yonghong Song
2022-02-04 23:17 ` [PATCH bpf-next 2/5] libbpf: Prepare light skeleton for the kernel Alexei Starovoitov
2022-02-07 20:04 ` Andrii Nakryiko
2022-02-07 21:27 ` Alexei Starovoitov
2022-02-07 21:51 ` Andrii Nakryiko
2022-02-04 23:17 ` [PATCH bpf-next 3/5] bpftool: Generalize light skeleton generation Alexei Starovoitov
2022-02-04 23:17 ` [PATCH bpf-next 4/5] bpf: Update iterators.lskel.h Alexei Starovoitov
2022-02-04 23:17 ` [PATCH bpf-next 5/5] bpf: Convert bpf_preload.ko to use light skeleton Alexei Starovoitov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202202090005.4wGpcCXF-lkp@intel.com \
--to=lkp@intel.com \
--cc=alexei.starovoitov@gmail.com \
--cc=kbuild-all@lists.01.org \
--cc=llvm@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.