forked from rpms/glibc
import glibc-2.28-224.el8
This commit is contained in:
parent
b3063e390f
commit
91a467e697
45
SOURCES/glibc-rh2144568.patch
Normal file
45
SOURCES/glibc-rh2144568.patch
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
commit eb4181e9f4a512de37dad4ba623c921671584dea
|
||||||
|
Author: Vladislav Khmelevsky <och95@yandex.ru>
|
||||||
|
Date: Thu Nov 17 12:47:29 2022 +0400
|
||||||
|
|
||||||
|
elf: Fix rtld-audit trampoline for aarch64
|
||||||
|
|
||||||
|
This patch fixes two problems with audit:
|
||||||
|
|
||||||
|
1. The DL_OFFSET_RV_VPCS offset was mixed up with DL_OFFSET_RG_VPCS,
|
||||||
|
resulting in x2 register value nulling in RG structure.
|
||||||
|
|
||||||
|
2. We need to preserve the x8 register before function call, but
|
||||||
|
don't have to save it's new value and restore it before return.
|
||||||
|
|
||||||
|
Anyway the final restore was using OFFSET_RV instead of OFFSET_RG value
|
||||||
|
which is wrong (althoug doesn't affect anything).
|
||||||
|
|
||||||
|
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
|
||||||
|
|
||||||
|
diff --git a/sysdeps/aarch64/dl-trampoline.S b/sysdeps/aarch64/dl-trampoline.S
|
||||||
|
index a83e7fc5f97047e2..b4b9c86224785a2c 100644
|
||||||
|
--- a/sysdeps/aarch64/dl-trampoline.S
|
||||||
|
+++ b/sysdeps/aarch64/dl-trampoline.S
|
||||||
|
@@ -282,12 +282,11 @@ _dl_runtime_profile:
|
||||||
|
stp x2, x3, [x29, #OFFSET_RV + DL_OFFSET_RV_X0 + 16*1]
|
||||||
|
stp x4, x5, [x29, #OFFSET_RV + DL_OFFSET_RV_X0 + 16*2]
|
||||||
|
stp x6, x7, [x29, #OFFSET_RV + DL_OFFSET_RV_X0 + 16*3]
|
||||||
|
- str x8, [x29, #OFFSET_RG + DL_OFFSET_RG_X0 + 16*4]
|
||||||
|
stp q0, q1, [x29, #OFFSET_RV + DL_OFFSET_RV_V0 + 32*0]
|
||||||
|
stp q2, q3, [x29, #OFFSET_RV + DL_OFFSET_RV_V0 + 32*1]
|
||||||
|
stp q4, q5, [x29, #OFFSET_RV + DL_OFFSET_RV_V0 + 32*2]
|
||||||
|
stp q6, q7, [x29, #OFFSET_RV + DL_OFFSET_RV_V0 + 32*3]
|
||||||
|
- str xzr, [X29, #OFFSET_RV + DL_OFFSET_RG_VPCS]
|
||||||
|
+ str xzr, [X29, #OFFSET_RV + DL_OFFSET_RV_VPCS]
|
||||||
|
|
||||||
|
/* Setup call to pltexit */
|
||||||
|
ldp x0, x1, [x29, #OFFSET_SAVED_CALL_X0]
|
||||||
|
@@ -299,7 +298,6 @@ _dl_runtime_profile:
|
||||||
|
ldp x2, x3, [x29, #OFFSET_RV + DL_OFFSET_RV_X0 + 16*1]
|
||||||
|
ldp x4, x5, [x29, #OFFSET_RV + DL_OFFSET_RV_X0 + 16*2]
|
||||||
|
ldp x6, x7, [x29, #OFFSET_RV + DL_OFFSET_RV_X0 + 16*3]
|
||||||
|
- ldr x8, [x29, #OFFSET_RV + DL_OFFSET_RV_X0 + 16*4]
|
||||||
|
ldp q0, q1, [x29, #OFFSET_RV + DL_OFFSET_RV_V0 + 32*0]
|
||||||
|
ldp q2, q3, [x29, #OFFSET_RV + DL_OFFSET_RV_V0 + 32*1]
|
||||||
|
ldp q4, q5, [x29, #OFFSET_RV + DL_OFFSET_RV_V0 + 32*2]
|
@ -1,6 +1,6 @@
|
|||||||
%define glibcsrcdir glibc-2.28
|
%define glibcsrcdir glibc-2.28
|
||||||
%define glibcversion 2.28
|
%define glibcversion 2.28
|
||||||
%define glibcrelease 223%{?dist}
|
%define glibcrelease 224%{?dist}
|
||||||
# Pre-release tarballs are pulled in from git using a command that is
|
# Pre-release tarballs are pulled in from git using a command that is
|
||||||
# effectively:
|
# effectively:
|
||||||
#
|
#
|
||||||
@ -1028,6 +1028,7 @@ Patch835: glibc-rh2141989.patch
|
|||||||
Patch836: glibc-rh2142937-1.patch
|
Patch836: glibc-rh2142937-1.patch
|
||||||
Patch837: glibc-rh2142937-2.patch
|
Patch837: glibc-rh2142937-2.patch
|
||||||
Patch838: glibc-rh2142937-3.patch
|
Patch838: glibc-rh2142937-3.patch
|
||||||
|
Patch839: glibc-rh2144568.patch
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# Continued list of core "glibc" package information:
|
# Continued list of core "glibc" package information:
|
||||||
@ -2858,6 +2859,9 @@ fi
|
|||||||
%files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared
|
%files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 30 2022 Arjun Shankar <arjun@redhat.com> - 2.28-224
|
||||||
|
- Fix rtld-audit trampoline for aarch64 (#2144568)
|
||||||
|
|
||||||
* Fri Nov 25 2022 Arjun Shankar <arjun@redhat.com> - 2.28-223
|
* Fri Nov 25 2022 Arjun Shankar <arjun@redhat.com> - 2.28-223
|
||||||
- Backport upstream fixes to tst-pldd (#2142937)
|
- Backport upstream fixes to tst-pldd (#2142937)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user