[all-commits] [llvm/llvm-project] 94382c: [llvm][StackProtector] Add noreturn to __stack_chk...

PiJoules via All-commits all-commits at lists.llvm.org
Wed Jul 16 13:14:05 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 94382c8e56e878d1b6a8cf317e3632df5352e23e
      https://github.com/llvm/llvm-project/commit/94382c8e56e878d1b6a8cf317e3632df5352e23e
  Author: Leonard Chan <leonardchan at google.com>
  Date:   2025-07-16 (Wed, 16 Jul 2025)

  Changed paths:
    M llvm/lib/CodeGen/StackProtector.cpp
    A llvm/test/Transforms/StackProtector/cross-dso-cfi-stack-chk-fail.ll
    A llvm/test/Transforms/StackProtector/stack-chk-fail-alias.ll

  Log Message:
  -----------
  [llvm][StackProtector] Add noreturn to __stack_chk_fail call (#143976)

This is a reland for 99e53cb4139eda491f97cb33ee42ea424d352200 with the
appropriate test fixes.

It's possible for __stack_chk_fail to be an alias when using CrossDSOCFI
since it will make a jump table entry for this function and replace it
with an alias. StackProtector can crash since it always expects this to
be a regular function. Instead add the noreturn attribute to the call.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list