[llvm] [AArch64][PAC] Support BLRA* instructions in SLS Hardening pass (PR #97605)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 11 04:17:58 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `lld-x86_64-ubuntu-fast` running on `as-builder-4` while building `llvm` at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/33/builds/394

Here is the relevant piece of the build log for the reference:
```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/AArch64/speculation-hardening-sls-blra.mir' FAILED ********************
Exit Code: 2

Command Output (stderr):
--
RUN: at line 1: /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/llc -verify-machineinstrs -mtriple=aarch64-none-linux-gnu      -start-before aarch64-sls-hardening -o - /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AArch64/speculation-hardening-sls-blra.mir      -asm-verbose=0  | /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AArch64/speculation-hardening-sls-blra.mir      --implicit-check-not=__llvm_slsblr_thunk_aa_x5_x8      --implicit-check-not=__llvm_slsblr_thunk_ab_x5_x8      --implicit-check-not=__llvm_slsblr_thunk_aaz_x5      --implicit-check-not=__llvm_slsblr_thunk_abz_x5
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/llc -verify-machineinstrs -mtriple=aarch64-none-linux-gnu -start-before aarch64-sls-hardening -o - /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AArch64/speculation-hardening-sls-blra.mir -asm-verbose=0
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AArch64/speculation-hardening-sls-blra.mir --implicit-check-not=__llvm_slsblr_thunk_aa_x5_x8 --implicit-check-not=__llvm_slsblr_thunk_ab_x5_x8 --implicit-check-not=__llvm_slsblr_thunk_aaz_x5 --implicit-check-not=__llvm_slsblr_thunk_abz_x5
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/llc -verify-machineinstrs -mtriple=aarch64-none-linux-gnu -start-before aarch64-sls-hardening -o - /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AArch64/speculation-hardening-sls-blra.mir -asm-verbose=0
1.	Running pass 'Function Pass Manager' on module '/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AArch64/speculation-hardening-sls-blra.mir'.
2.	Running pass 'AArch64 sls hardening pass' on function '@__llvm_slsblr_thunk_aa_x0_x1'
 #0 0x00005612b723d2c0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/llc+0x3e0e2c0)
 #1 0x00005612b723a6df llvm::sys::RunSignalHandlers() (/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/llc+0x3e0b6df)
 #2 0x00005612b723a835 SignalHandler(int) Signals.cpp:0:0
 #3 0x00007f4792b89520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #4 0x00005612b619abf5 llvm::MachineInstr::addOperand(llvm::MachineFunction&, llvm::MachineOperand const&) (/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/llc+0x2d6bbf5)
 #5 0x00005612b437dc6b llvm::ThunkInserter<(anonymous namespace)::SLSHardeningInserter, (anonymous namespace)::ThunksSet>::run(llvm::MachineModuleInfo&, llvm::MachineFunction&) AArch64SLSHardening.cpp:0:0
 #6 0x00005612b6187857 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) MachineFunctionPass.cpp:0:0
 #7 0x00005612b679f666 llvm::FPPassManager::runOnFunction(llvm::Function&) (/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/llc+0x3370666)
 #8 0x00005612b679f8b9 llvm::FPPassManager::runOnModule(llvm::Module&) (/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/llc+0x33708b9)
 #9 0x00005612b67a0215 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/llc+0x3371215)
#10 0x00005612b3ebfd16 compileModule(char**, llvm::LLVMContext&) llc.cpp:0:0
#11 0x00005612b3dc4d36 main (/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/llc+0x995d36)
#12 0x00007f4792b70d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#13 0x00007f4792b70e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#14 0x00005612b3eb6525 _start (/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/llc+0xa87525)
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/CodeGen/AArch64/speculation-hardening-sls-blra.mir --implicit-check-not=__llvm_slsblr_thunk_aa_x5_x8 --implicit-check-not=__llvm_slsblr_thunk_ab_x5_x8 --implicit-check-not=__llvm_slsblr_thunk_aaz_x5 --implicit-check-not=__llvm_slsblr_thunk_abz_x5

--

********************


```

https://github.com/llvm/llvm-project/pull/97605


More information about the llvm-commits mailing list