* arch/mips/include/asm/jump_label.h:42:11: error: unknown instruction, did you mean: b?
@ 2026-07-26 3:06 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-26 3:06 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp
::::::
:::::: Manual check reason: "clang compiler bug"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Roman Gushchin <roman.gushchin@linux.dev>
CC: Alexei Starovoitov <ast@kernel.org>
Hi Roman,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0ce37745d4bfbc493f718169c3974898ffec8ee7
commit: 5c7db3239c9fbe3c62cb0d89b64959ea23af2de9 mm: introduce bpf_get_root_mem_cgroup() BPF kfunc
date: 7 months ago
:::::: branch date: 24 hours ago
:::::: commit date: 7 months ago
config: mips-randconfig-r113-20260725 (https://download.01.org/0day-ci/archive/20260726/202607261055.TruGRfdo-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 890b11e09e45e9d8b29f2f94f22052be3934e757)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260726/202607261055.TruGRfdo-lkp@intel.com/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
| Fixes: 5c7db3239c9f ("mm: introduce bpf_get_root_mem_cgroup() BPF kfunc")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202607261055.TruGRfdo-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from mm/bpf_memcontrol.c:8:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:12:
In file included from include/linux/sched.h:12:
In file included from ./arch/mips/include/generated/asm/current.h:1:
In file included from include/asm-generic/current.h:6:
In file included from include/linux/thread_info.h:13:
In file included from include/linux/bug.h:5:
In file included from arch/mips/include/asm/bug.h:42:
In file included from include/asm-generic/bug.h:31:
In file included from include/linux/printk.h:621:
In file included from include/linux/dynamic_debug.h:6:
In file included from include/linux/jump_label.h:113:
>> arch/mips/include/asm/jump_label.h:42:11: error: unknown instruction, did you mean: b?
42 | asm goto("1:\t" B_INSN " 2f\n\t"
| ^
<inline asm>:1:5: note: instantiated into assembly here
1 | 1: b32 2f
| ^
fatal error: error in backend: Cannot select: 0x563d74efed80: i32 = truncate 0x563d74eff1e0
0x563d74eff1e0: i64,ch = CopyFromReg 0x563d76446010, Register:i64 %12
In function: bpf_get_mem_cgroup
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and dumped files.
Stack dump:
0. Program arguments: clang -Wp,-MMD,mm/.bpf_memcontrol.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__ --target=mipsel-linux-gnu -fintegrated-as -Werror=unknown-warning-option -Werror=ignored-optimization-argument -Werror=option-ignored -Werror=unused-command-line-argument -DVMLINUX_LOAD_ADDRESS=0xffffffff80100000 -DLINKER_LOAD_ADDRESS=0x80100000 -DDATAOFFSET=0 -fmacro-prefix-map== -Wundef -DKBUILD_EXTRA_WARN1 -std=gnu11 -fshort-wchar -funsigned-char -fno-common -fno-PIE -fno-strict-aliasing -mno-check-zero-division -mabi=32 -G 0 -mno-abicalls -fno-pic -pipe -msoft-float -Wa,-msoft-float -ffreestanding -EL -fno-stack-check -march=mips64 -Wa,--trap -mmicromips -DTOOLCHAIN_SUPPORTS_VIRT -Iarch/mips/include/asm/mach-generic -Iarch/mips/include/asm/mach-generic -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 -fstack-protector -fomit-frame-pointer -ftrivial-auto-var-init=zero -fstrict-flex-arrays=3 -fms-extensions -fno-strict-overflow -fno-stack-check -fno-builtin-wcslen -Wall -Wextra -Wundef -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Werror=strict-prototypes -Wno-format-security -Wno-trigraphs -Wno-frame-address -Wno-address-of-packed-member -Wmissing-declarations -Wmissing-prototypes -Wno-gnu -Wno-microsoft-anon-tag -Wno-format-overflow-non-kprintf -Wno-format-truncation-non-kprintf -Wno-default-const-init-unsafe -Wno-pointer-sign -Wcast-function-type -Wno-unterminated-string-initialization -Wimplicit-fallthrough -Werror=date-time -Werror=incompatible-pointer-types -Wenum-conversion -Wunused -Wmissing-format-attribute -Wmissing-include-dirs -Wunused-const-variable -Wno-missing-field-initializers -Wno-type-limits -Wno-shift-negative-value -Wno-enum-enum-conversion -Wno-sign-compare -Wno-unused-parameter -fno-crash-diagnostics -Wno-error=return-type -Wreturn-type -funsigned-char -Wundef -falign-functions=64 -Imm -Imm -DKBUILD_MODFILE=\"mm/bpf_memcontrol\" -DKBUILD_BASENAME=\"bpf_memcontrol\" -DKBUILD_MODNAME=\"bpf_memcontrol\" -D__KBUILD_MODNAME=bpf_memcontrol -c -o mm/bpf_memcontrol.o mm/bpf_memcontrol.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'mm/bpf_memcontrol.c'.
4. Running pass 'MIPS DAG->DAG Pattern Instruction Selection' on function '@bpf_get_mem_cgroup'
#0 0x0000563d69d6f48a llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (clang-24+0x38c748a)
#1 0x0000563d69d6d064 llvm::sys::CleanupOnSignal(unsigned long) (clang-24+0x38c5064)
#2 0x0000563d69ca2d12 llvm::CrashRecoveryContext::HandleExit(int) (clang-24+0x37fad12)
#3 0x0000563d69d641ae llvm::sys::Process::Exit(int, bool) (clang-24+0x38bc1ae)
#4 0x0000563d66d830b7 LLVMErrorHandler(void*, char const*, bool) cc1_main.cpp:0:0
#5 0x0000563d69cac53c llvm::report_fatal_error(llvm::Twine const&, bool) (clang-24+0x380453c)
#6 0x0000563d6b2e4039 llvm::SelectionDAGISel::CannotYetSelect(llvm::SDNode*) (clang-24+0x4e3c039)
#7 0x0000563d6b2eae72 llvm::SelectionDAGISel::SelectCodeCommon(llvm::SDNode*, unsigned char const*, unsigned int, unsigned char const*) (clang-24+0x4e42e72)
#8 0x0000563d6b2e2609 llvm::SelectionDAGISel::DoInstructionSelection() (clang-24+0x4e3a609)
#9 0x0000563d6b2f2585 llvm::SelectionDAGISel::CodeGenAndEmitDAG() (clang-24+0x4e4a585)
#10 0x0000563d6b2f48a0 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (clang-24+0x4e4c8a0)
#11 0x0000563d6b2f630d llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (clang-24+0x4e4e30d)
#12 0x0000563d67f0045a llvm::MipsDAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&) (clang-24+0x1a5845a)
#13 0x0000563d6b2f1819 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) (clang-24+0x4e49819)
#14 0x0000563d691224f3 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (clang-24+0x2c7a4f3)
#15 0x0000563d69678bb9 llvm::FPPassManager::runOnFunction(llvm::Function&) (clang-24+0x31d0bb9)
#16 0x0000563d69678fec llvm::FPPassManager::runOnModule(llvm::Module&) (clang-24+0x31d0fec)
#17 0x0000563d69679b8a (anonymous namespace)::MPPassManager::runOnModule(llvm::Module&) LegacyPassManager.cpp:0:0
#18 0x0000563d6967a25c llvm::legacy::PassManagerImpl::run(llvm::Module&) (clang-24+0x31d225c)
#19 0x0000563d6a120a6f (anonymous namespace)::EmitAssemblyHelper::TimeCodegenPasses(llvm::function_ref<void ()>) BackendUtil.cpp:0:0
#20 0x0000563d6a131d7a (anonymous namespace)::EmitAssemblyHelper::emitAssembly(clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*) (.constprop.0) BackendUtil.cpp:0:0
#21 0x0000563d6a131f6f clang::emitBackendOutput(clang::CompilerInstance&, clang::CodeGenOptions&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*) (clang-24+0x3c89f6f)
#22 0x0000563d6a76cec7 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (clang-24+0x42c4ec7)
#23 0x0000563d6c176fcc clang::ParseAST(clang::Sema&, bool, bool) (clang-24+0x5ccefcc)
#24 0x0000563d6aacd41e clang::FrontendAction::Execute() (clang-24+0x462541e)
#25 0x0000563d6aa584ee clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (clang-24+0x45b04ee)
#26 0x0000563d6ab98247 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (clang-24+0x46f0247)
#27 0x0000563d66d85748 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (clang-24+0x8dd748)
#28 0x0000563d66d7d413 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>) driver.cpp:0:0
#29 0x0000563d66d7d453 int llvm::function_ref<int (llvm::SmallVectorImpl<char const*>&)>::callback_fn<clang_main(int, char**, llvm::ToolContext const&)::'lambda'(llvm::SmallVectorImpl<char const*>&)>(long, llvm::SmallVectorImpl<char const*>&) driver.cpp:0:0
#30 0x0000563d6a7eab09 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const::'lambda'()>(long) Job.cpp:0:0
#31 0x0000563d69ca2c23 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (clang-24+0x37fac23)
#32 0x0000563d6a7ec08c clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const (.part.0) Job.cpp:0:0
#33 0x0000563d6a7a4898 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (clang-24+0x42fc898)
#34 0x0000563d6a7a90d2 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (clang-24+0x43010d2)
#35 0x0000563d6a7baedc clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (clang-24+0x4312edc)
#36 0x0000563d66d820d2 clang_main(int, char**, llvm::ToolContext const&) (clang-24+0x8da0d2)
#37 0x0000563d66c9d279 main (clang-24+0x7f5279)
#38 0x00007f9a949d2ca8 (/lib/x86_64-linux-gnu/libc.so.6+0x29ca8)
#39 0x00007f9a949d2d65 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29d65)
#40 0x0000563d66d7ce71 _start (clang-24+0x8d4e71)
clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
vim +42 arch/mips/include/asm/jump_label.h
935c2dbec4d6d3 Maciej W. Rozycki 2014-11-17 39
11276d5306b8e5 Peter Zijlstra 2015-07-24 40 static __always_inline bool arch_static_branch(struct static_key *key, bool branch)
d430d3d7e646eb Jason Baron 2011-03-16 41 {
4356e9f841f7fb Linus Torvalds 2024-02-09 @42 asm goto("1:\t" B_INSN " 2f\n\t"
c838b580ca9dcf Paul Burton 2019-04-05 43 "2:\t.insn\n\t"
d430d3d7e646eb Jason Baron 2011-03-16 44 ".pushsection __jump_table, \"aw\"\n\t"
d430d3d7e646eb Jason Baron 2011-03-16 45 WORD_INSN " 1b, %l[l_yes], %0\n\t"
d430d3d7e646eb Jason Baron 2011-03-16 46 ".popsection\n\t"
11276d5306b8e5 Peter Zijlstra 2015-07-24 47 : : "i" (&((char *)key)[branch]) : : l_yes);
11276d5306b8e5 Peter Zijlstra 2015-07-24 48
11276d5306b8e5 Peter Zijlstra 2015-07-24 49 return false;
11276d5306b8e5 Peter Zijlstra 2015-07-24 50 l_yes:
11276d5306b8e5 Peter Zijlstra 2015-07-24 51 return true;
11276d5306b8e5 Peter Zijlstra 2015-07-24 52 }
11276d5306b8e5 Peter Zijlstra 2015-07-24 53
:::::: The code at line 42 was first introduced by commit
:::::: 4356e9f841f7fbb945521cef3577ba394c65f3fc work around gcc bugs with 'asm goto' with outputs
:::::: TO: Linus Torvalds <torvalds@linux-foundation.org>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-26 3:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-26 3:06 arch/mips/include/asm/jump_label.h:42:11: error: unknown instruction, did you mean: b? kernel test robot
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.