* [FFmpeg-devel] [PATCH] arm64: Fix wrong BTI landing pad
@ 2022-04-25 8:33 Andre Kempe
2022-04-26 7:27 ` Martin Storsjö
0 siblings, 1 reply; 2+ messages in thread
From: Andre Kempe @ 2022-04-25 8:33 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Martin Storsjö
This patch fixes a wrong type of BTI landing pad when branching to
functions instantiated via the fft*_neon macro.
Although the previously employed paciasp instruction serves as a landing
pad, for the ways that this function is invoked it is the wrong type, resulting
in an unexpected termination of the running process.
Signed-off-by: André Kempe <andre.kempe@arm.com>
---
libavcodec/aarch64/fft_neon.S | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/aarch64/fft_neon.S b/libavcodec/aarch64/fft_neon.S
index dd5f55eb87..9ff3f9c526 100644
--- a/libavcodec/aarch64/fft_neon.S
+++ b/libavcodec/aarch64/fft_neon.S
@@ -340,6 +340,7 @@ endfunc
.macro def_fft n, n2, n4
function fft\n\()_neon, align=6
+ AARCH64_VALID_JUMP_TARGET
AARCH64_SIGN_LINK_REGISTER
sub sp, sp, #16
stp x28, x30, [sp]
--
2.25.1
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [FFmpeg-devel] [PATCH] arm64: Fix wrong BTI landing pad
2022-04-25 8:33 [FFmpeg-devel] [PATCH] arm64: Fix wrong BTI landing pad Andre Kempe
@ 2022-04-26 7:27 ` Martin Storsjö
0 siblings, 0 replies; 2+ messages in thread
From: Martin Storsjö @ 2022-04-26 7:27 UTC (permalink / raw)
To: Andre Kempe; +Cc: ffmpeg-devel
On Mon, 25 Apr 2022, Andre Kempe wrote:
> This patch fixes a wrong type of BTI landing pad when branching to
> functions instantiated via the fft*_neon macro.
>
> Although the previously employed paciasp instruction serves as a landing
> pad, for the ways that this function is invoked it is the wrong type, resulting
> in an unexpected termination of the running process.
>
> Signed-off-by: André Kempe <andre.kempe@arm.com>
> ---
> libavcodec/aarch64/fft_neon.S | 1 +
> 1 file changed, 1 insertion(+)
Thanks! I pushed this now.
// Martin
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-04-26 7:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-25 8:33 [FFmpeg-devel] [PATCH] arm64: Fix wrong BTI landing pad Andre Kempe
2022-04-26 7:27 ` Martin Storsjö
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git