]> git.ipfire.org Git - thirdparty/openssl.git/commit
crypto/poly1305/asm: fix armv8 pointer authentication
authorArd Biesheuvel <ard.biesheuvel@arm.com>
Tue, 27 Oct 2020 17:02:40 +0000 (18:02 +0100)
committerTomas Mraz <tmraz@fedoraproject.org>
Thu, 29 Oct 2020 16:17:21 +0000 (17:17 +0100)
commitfcf6e9d056162d5af64c6f7209388a5c3be2ce57
treea55bc8f6d66bbb0fb0ac03b83421aa15bd4e79cf
parent728d03b576f360e72bbddc7e751433575430af3b
crypto/poly1305/asm: fix armv8 pointer authentication

PAC pointer authentication signs the return address against the value
of the stack pointer, to prevent stack overrun exploits from corrupting
the control flow. However, this requires that the AUTIASP is issued with
SP holding the same value as it held when the PAC value was generated.
The Poly1305 armv8 code got this wrong, resulting in crashes on PAC
capable hardware.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/13256)
crypto/poly1305/asm/poly1305-armv8.pl