From 5e1374d9d2c7da53232979e538171269459fd586 Mon Sep 17 00:00:00 2001 From: Alexandr Nedvedicky Date: Thu, 18 Apr 2024 17:14:18 +0200 Subject: [PATCH] fix crash in ecp_nistz256_point_add_affine() The .rodata section with precomputed constant `ecp_nistz256_precomputed` needs to be terminated by .text, because the ecp_nistz256_precomputed' happens to be the first section in the file. The lack of .text makes code to arrive into the same .rodata section where ecp_nistz256_precomputed is found. The exception is raised as soon as CPU attempts to execute the code from read only section. Fixes #24184 --- crypto/ec/asm/ecp_nistz256-x86_64.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/ec/asm/ecp_nistz256-x86_64.pl b/crypto/ec/asm/ecp_nistz256-x86_64.pl index feeb8c5cb39727..12efc563e58e34 100755 --- a/crypto/ec/asm/ecp_nistz256-x86_64.pl +++ b/crypto/ec/asm/ecp_nistz256-x86_64.pl @@ -4736,6 +4736,7 @@ () } print <<___; .size ecp_nistz256_precomputed,.-ecp_nistz256_precomputed +.text ___ $code =~ s/\`([^\`]*)\`/eval $1/gem;