/bin/bash: line 1: 2230751 Segmentation fault clang -Wp,-MMD,fs/notify/fanotify/.fanotify.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/...

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild
Message-ID <[email protected]>
:::::: 
:::::: Manual check reason: "clang compiler bug"
:::::: 

BCC: [email protected]
CC: [email protected]
CC: [email protected]
TO: AnonymeMeow <[email protected]>
CC: Jan Kara <[email protected]>
CC: "Christian Brauner (Amutable)" <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   0e35b9b6ec0ffcc5e23cbdec09f5c622ad532b53
commit: 82c6dd20479bb6a9625e1d63a650c3be8865e2db fanotify: allow reporting pidfds for reaped tasks
date:   4 weeks ago
:::::: branch date: 16 hours ago
:::::: commit date: 4 weeks ago
config: mips-randconfig-r123-20260705 (https://download.01.org/0day-ci/archive/20260708/[email protected]/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 0a2fb2a2269da0e2a3e230beb6cad39ca314db33)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260708/[email protected]/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: 82c6dd20479b ("fanotify: allow reporting pidfds for reaped tasks")
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/r/[email protected]/

Note: functions only called from assembly code should be annotated with the asmlinkage attribute
All errors (new ones prefixed by >>):

   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,fs/notify/fanotify/.fanotify.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=0xffffffff80040000 -DLINKER_LOAD_ADDRESS=0x80040000 -DDATAOFFSET=0 -fmacro-prefix-map== -Wundef -DKBUILD_EXTRA_WARN1 -fshort-wchar -funsigned-char -fno-common -fno-PIE -fno-strict-aliasing -std=gnu11 -fms-anonymous-structs -Wno-gnu -Wno-microsoft-anon-tag -mno-check-zero-division -mabi=32 -G 0 -mno-abicalls -fno-pic -pipe -msoft-float -Wa,-msoft-float -ffreestanding -EL -fno-stack-check -march=mips3 -Wa,--trap -DTOOLCHAIN_SUPPORTS_VIRT -Iarch/mips/include/asm/mach-dec -Iarch/mips/include/asm/mach-generic -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 -fstack-protector-strong -fomit-frame-pointer -ftrivial-auto-var-init=zero -fexperimental-late-parse-attributes -fdiagnostics-show-inlining-chain -fstrict-flex-arrays=3 -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-format-overflow-non-kprintf -Wno-format-truncation-non-kprintf -Wno-default-const-init-unsafe -Wno-type-limits -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-shift-negative-value -Wno-enum-enum-conversion -Wno-sign-compare -Wno-unused-parameter -DRANDSTRUCT -frandomize-layout-seed-file=./scripts/basic/randstruct.seed -fno-crash-diagnostics -Wno-error=return-type -Wreturn-type -funsigned-char -Wundef -falign-functions=64 -fsanitize-coverage=trace-pc -fsanitize-coverage=trace-cmp -Ifs/notify/fanotify -Ifs/notify/fanotify -DKBUILD_MODFILE=\"fs/notify/fanotify/fanotify\" -DKBUILD_BASENAME=\"fanotify\" -DKBUILD_MODNAME=\"fanotify\" -D__KBUILD_MODNAME=fanotify -c -o fs/notify/fanotify/fanotify.o fs/notify/fanotify/fanotify.c
   1.	<eof> parser at end of file
   2.	Code generation
   3.	Running pass 'Function Pass Manager' on module 'fs/notify/fanotify/fanotify.c'.
   4.	Running pass 'Branch Probability Basic Block Placement' on function '@fanotify_handle_event'
    #0 0x0000564f1c0c013a llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (clang-23+0x3e6913a)
    #1 0x0000564f1c0bdce4 llvm::sys::CleanupOnSignal(unsigned long) (clang-23+0x3e66ce4)
    #2 0x0000564f1bff2cc0 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
    #3 0x00007fe9fab76df0 (/lib/x86_64-linux-gnu/libc.so.6+0x3fdf0)
    #4 0x0000564f1b6ea50a llvm::TailDuplicator::tailDuplicate(bool, llvm::MachineBasicBlock*, llvm::MachineBasicBlock*, llvm::SmallVectorImpl<llvm::MachineBasicBlock*>&, llvm::SmallVectorImpl<llvm::MachineInstr*>&, llvm::SmallVectorImpl<llvm::MachineBasicBlock*>*) (clang-23+0x349350a)
    #5 0x0000564f1b6ebc15 llvm::TailDuplicator::tailDuplicateAndUpdate(bool, llvm::MachineBasicBlock*, llvm::MachineBasicBlock*, llvm::SmallVectorImpl<llvm::MachineBasicBlock*>*, llvm::function_ref<void (llvm::MachineBasicBlock*)>*, llvm::SmallVectorImpl<llvm::MachineBasicBlock*>*) (clang-23+0x3494c15)
    #6 0x0000564f1b435428 (anonymous namespace)::MachineBlockPlacement::maybeTailDuplicateBlock(llvm::MachineBasicBlock*, llvm::MachineBasicBlock*, (anonymous namespace)::BlockChain&, llvm::SmallSetVector<llvm::MachineBasicBlock const*, 16u>*, llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::MachineBasicBlock, false, false, void, false, void>, false, false>&, llvm::MachineBasicBlock const* const*&, bool&) MachineBlockPlacement.cpp:0:0
    #7 0x0000564f1b436354 (anonymous namespace)::MachineBlockPlacement::repeatedlyTailDuplicateBlock(llvm::MachineBasicBlock*, llvm::MachineBasicBlock*&, llvm::MachineBasicBlock const*, (anonymous namespace)::BlockChain&, llvm::SmallSetVector<llvm::MachineBasicBlock const*, 16u>*, llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::MachineBasicBlock, false, false, void, false, void>, false, false>&, llvm::MachineBasicBlock const* const*&) (.isra.0) MachineBlockPlacement.cpp:0:0
    #8 0x0000564f1b439c74 (anonymous namespace)::MachineBlockPlacement::buildCFGChains() MachineBlockPlacement.cpp:0:0
    #9 0x0000564f1b43b003 (anonymous namespace)::MachineBlockPlacement::run(llvm::MachineFunction&) MachineBlockPlacement.cpp:0:0
   #10 0x0000564f1b43e40c (anonymous namespace)::MachineBlockPlacementLegacy::runOnMachineFunction(llvm::MachineFunction&) (.part.0) MachineBlockPlacement.cpp:0:0
   #11 0x0000564f1b4806b3 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (clang-23+0x32296b3)
   #12 0x0000564f1b9cec79 llvm::FPPassManager::runOnFunction(llvm::Function&) (clang-23+0x3777c79)
   #13 0x0000564f1b9cf0ac llvm::FPPassManager::runOnModule(llvm::Module&) (clang-23+0x37780ac)
   #14 0x0000564f1b9cfc4a (anonymous namespace)::MPPassManager::runOnModule(llvm::Module&) LegacyPassManager.cpp:0:0
   #15 0x0000564f1b9d031c llvm::legacy::PassManagerImpl::run(llvm::Module&) (clang-23+0x377931c)
   #16 0x0000564f1c4681bf (anonymous namespace)::EmitAssemblyHelper::TimeCodegenPasses(llvm::function_ref<void ()>) BackendUtil.cpp:0:0
   #17 0x0000564f1c4795a4 (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
   #18 0x0000564f1c4797f7 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-23+0x42227f7)
   #19 0x0000564f1caae047 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (clang-23+0x4857047)
   #20 0x0000564f1e4a999c clang::ParseAST(clang::Sema&, bool, bool) (clang-23+0x625299c)
   #21 0x0000564f1ce1181e clang::FrontendAction::Execute() (clang-23+0x4bba81e)
   #22 0x0000564f1cd9ab9e clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (clang-23+0x4b43b9e)
   #23 0x0000564f1cefadc7 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (clang-23+0x4ca3dc7)
   #24 0x0000564f1912e738 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (clang-23+0xed7738)
   #25 0x0000564f19126413 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>) driver.cpp:0:0
   #26 0x0000564f19126453 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
   #27 0x0000564f1cb275f9 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
   #28 0x0000564f1bff3023 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (clang-23+0x3d9c023)
   #29 0x0000564f1cb28b4c 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
   #30 0x0000564f1cae4228 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (clang-23+0x488d228)
   #31 0x0000564f1cae51c2 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (clang-23+0x488e1c2)
   #32 0x0000564f1caf8a0c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (clang-23+0x48a1a0c)
   #33 0x0000564f1912b0d2 clang_main(int, char**, llvm::ToolContext const&) (clang-23+0xed40d2)
   #34 0x0000564f1903fdf9 main (clang-23+0xde8df9)
   #35 0x00007fe9fab60ca8 (/lib/x86_64-linux-gnu/libc.so.6+0x29ca8)
   #36 0x00007fe9fab60d65 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29d65)
   #37 0x0000564f19125e71 _start (clang-23+0xecee71)
   clang: error: clang frontend command failed due to signal (use -v to see invocation)
>> /bin/bash: line 1: 2230751 Segmentation fault      clang -Wp,-MMD,fs/notify/fanotify/.fanotify.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=0xffffffff80040000 -DLINKER_LOAD_ADDRESS=0x80040000 -DDATAOFFSET=0 -fmacro-prefix-map== -Wundef -DKBUILD_EXTRA_WARN1 -fshort-wchar -funsigned-char -fno-common -fno-PIE -fno-strict-aliasing -std=gnu11 -fms-anonymous-structs -Wno-gnu -Wno-microsoft-anon-tag -mno-check-zero-division -mabi=32 -G 0 -mno-abicalls -fno-pic -pipe -msoft-float -Wa,-msoft-float -ffreestanding -EL -fno-stack-check -march=mips3 -Wa,--trap -DTOOLCHAIN_SUPPORTS_VIRT -Iarch/mips/include/asm/mach-dec -Iarch/mips/include/asm/mach-generic -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 -fstack-protector-strong -fomit-frame-pointer -ftrivial-auto-var-init=zero -fexperimental-late-parse-attributes -fdiagnostics-show-inlining-chain -fstrict-flex-arrays=3 -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-format-overflow-non-kprintf -Wno-format-truncation-non-kprintf -Wno-default-const-init-unsafe -Wno-type-limits -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-shift-negative-value -Wno-enum-enum-conversion -Wno-sign-compare -Wno-unused-parameter -DRANDSTRUCT -frandomize-layout-seed-file=./scripts/basic/randstruct.seed -fno-crash-diagnostics -Wno-error=return-type -Wreturn-type -funsigned-char -Wundef -falign-functions=64 -fsanitize-coverage=trace-pc -fsanitize-coverage=trace-cmp -Ifs/notify/fanotify -Ifs/notify/fanotify -DKBUILD_MODFILE='"fs/notify/fanotify/fanotify"' -DKBUILD_BASENAME='"fanotify"' -DKBUILD_MODNAME='"fanotify"' -D__KBUILD_MODNAME=fanotify -c -o fs/notify/fanotify/fanotify.o fs/notify/fanotify/fanotify.c

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.