diff --git a/src/coreclr/nativeaot/Runtime/amd64/ExceptionHandling.asm b/src/coreclr/nativeaot/Runtime/amd64/ExceptionHandling.asm index 928a3a9bce785a..9efa43b41114fe 100644 --- a/src/coreclr/nativeaot/Runtime/amd64/ExceptionHandling.asm +++ b/src/coreclr/nativeaot/Runtime/amd64/ExceptionHandling.asm @@ -130,6 +130,10 @@ NESTED_ENTRY RhpThrowEx, _TEXT alloc_stack SIZEOF_XmmSaves + 8h ;; reserve stack for the xmm saves (+8h to realign stack) rdsspq r8 ;; nop if SSP is not implemented, 0 if not enabled + test r8, r8 + je @f + add r8, 8 ;; Move SSP to match RSP of the throw site + @@: push_vol_reg r8 ;; SSP xor r8, r8 push_nonvol_reg r15 @@ -226,6 +230,10 @@ NESTED_ENTRY RhpRethrow, _TEXT alloc_stack SIZEOF_XmmSaves + 8h ;; reserve stack for the xmm saves (+8h to realign stack) rdsspq r8 ;; nop if SSP is not implemented, 0 if not enabled + test r8, r8 + je @f + add r8, 8 ;; Move SSP to match RSP of the throw site + @@: push_vol_reg r8 ;; SSP xor r8, r8 push_nonvol_reg r15 diff --git a/src/tests/issues.targets b/src/tests/issues.targets index c4446cdc66b6f8..f870ba760cb9e3 100644 --- a/src/tests/issues.targets +++ b/src/tests/issues.targets @@ -1024,13 +1024,6 @@ - - - - https://github.com/dotnet/runtime/issues/107418 - - -