forked from rpms/glibc
import glibc-2.28-205.el8
This commit is contained in:
parent
ec6a921b4e
commit
f0101d98ec
41
SOURCES/glibc-rh2091553.patch
Normal file
41
SOURCES/glibc-rh2091553.patch
Normal file
@ -0,0 +1,41 @@
|
||||
From 82c7441f04e3c2a653ee29672731e040a1799c6b Mon Sep 17 00:00:00 2001
|
||||
From: Matheus Castanho <msc@linux.ibm.com>
|
||||
Date: Tue, 7 Jun 2022 10:27:26 -0300
|
||||
Subject: powerpc: Fix VSX register number on __strncpy_power9 [BZ #29197]
|
||||
|
||||
__strncpy_power9 initializes VR 18 with zeroes to be used throughout the
|
||||
code, including when zero-padding the destination string. However, the
|
||||
v18 reference was mistakenly being used for stxv and stxvl, which take a
|
||||
VSX vector as operand. The code ended up using the uninitialized VSR 18
|
||||
register by mistake.
|
||||
|
||||
Both occurrences have been changed to use the proper VSX number for VR 18
|
||||
(i.e. VSR 50).
|
||||
|
||||
Tested on powerpc, powerpc64 and powerpc64le.
|
||||
|
||||
Signed-off-by: Kewen Lin <linkw@gcc.gnu.org>
|
||||
(cherry picked from commit 0218463dd8265ed937622f88ac68c7d984fe0cfc)
|
||||
|
||||
diff --git a/sysdeps/powerpc/powerpc64/le/power9/strncpy.S b/sysdeps/powerpc/powerpc64/le/power9/strncpy.S
|
||||
index 291941c1e5..5421525ace 100644
|
||||
--- a/sysdeps/powerpc/powerpc64/le/power9/strncpy.S
|
||||
+++ b/sysdeps/powerpc/powerpc64/le/power9/strncpy.S
|
||||
@@ -352,7 +352,7 @@ L(zero_padding_loop):
|
||||
cmpldi cr6,r5,16 /* Check if length was reached. */
|
||||
ble cr6,L(zero_padding_end)
|
||||
|
||||
- stxv v18,0(r11)
|
||||
+ stxv 32+v18,0(r11)
|
||||
addi r11,r11,16
|
||||
addi r5,r5,-16
|
||||
|
||||
@@ -360,7 +360,7 @@ L(zero_padding_loop):
|
||||
|
||||
L(zero_padding_end):
|
||||
sldi r10,r5,56 /* stxvl wants size in top 8 bits */
|
||||
- stxvl v18,r11,r10 /* Partial store */
|
||||
+ stxvl 32+v18,r11,r10 /* Partial store */
|
||||
blr
|
||||
|
||||
.align 4
|
@ -1,6 +1,6 @@
|
||||
%define glibcsrcdir glibc-2.28
|
||||
%define glibcversion 2.28
|
||||
%define glibcrelease 204%{?dist}
|
||||
%define glibcrelease 205%{?dist}
|
||||
# Pre-release tarballs are pulled in from git using a command that is
|
||||
# effectively:
|
||||
#
|
||||
@ -903,6 +903,7 @@ Patch708: glibc-rh2089247-3.patch
|
||||
Patch709: glibc-rh2089247-4.patch
|
||||
Patch710: glibc-rh2089247-5.patch
|
||||
Patch711: glibc-rh2089247-6.patch
|
||||
Patch712: glibc-rh2091553.patch
|
||||
|
||||
##############################################################################
|
||||
# Continued list of core "glibc" package information:
|
||||
@ -2733,6 +2734,9 @@ fi
|
||||
%files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared
|
||||
|
||||
%changelog
|
||||
* Tue Jun 07 2022 DJ Delorie <dj@redhat.com) - 2.28-205
|
||||
- Fix incorrect strncpy results on POWER9 (#2091553)
|
||||
|
||||
* Mon May 23 2022 Florian Weimer <fweimer@redhat.com> - 2.28-204
|
||||
- Increase tempnam randomness (#2089247)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user