Commit f3fc580
poly1305-ppc.pl: Fix vector register clobbering
Fixes CVE-2023-6129
The POLY1305 MAC (message authentication code) implementation in OpenSSL for
PowerPC CPUs saves the the contents of vector registers in different order
than they are restored. Thus the contents of some of these vector registers
is corrupted when returning to the caller. The vulnerable code is used only
on newer PowerPC processors supporting the PowerISA 2.07 instructions.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #23200)
(cherry picked from commit 8d847a3)1 parent 0108860 commit f3fc580
1 file changed
Lines changed: 21 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
744 | 744 | | |
745 | 745 | | |
746 | 746 | | |
747 | | - | |
| 747 | + | |
748 | 748 | | |
749 | 749 | | |
750 | 750 | | |
| |||
919 | 919 | | |
920 | 920 | | |
921 | 921 | | |
922 | | - | |
923 | | - | |
924 | | - | |
| 922 | + | |
925 | 923 | | |
926 | | - | |
| 924 | + | |
927 | 925 | | |
| 926 | + | |
| 927 | + | |
928 | 928 | | |
929 | 929 | | |
930 | 930 | | |
| |||
1153 | 1153 | | |
1154 | 1154 | | |
1155 | 1155 | | |
1156 | | - | |
1157 | | - | |
1158 | | - | |
| 1156 | + | |
1159 | 1157 | | |
1160 | | - | |
| 1158 | + | |
1161 | 1159 | | |
| 1160 | + | |
| 1161 | + | |
1162 | 1162 | | |
1163 | 1163 | | |
1164 | 1164 | | |
| |||
1899 | 1899 | | |
1900 | 1900 | | |
1901 | 1901 | | |
1902 | | - | |
1903 | | - | |
1904 | | - | |
| 1902 | + | |
1905 | 1903 | | |
1906 | | - | |
| 1904 | + | |
1907 | 1905 | | |
1908 | | - | |
| 1906 | + | |
1909 | 1907 | | |
1910 | | - | |
| 1908 | + | |
1911 | 1909 | | |
1912 | | - | |
| 1910 | + | |
1913 | 1911 | | |
1914 | | - | |
| 1912 | + | |
1915 | 1913 | | |
1916 | | - | |
| 1914 | + | |
1917 | 1915 | | |
1918 | | - | |
| 1916 | + | |
1919 | 1917 | | |
1920 | | - | |
1921 | | - | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
1922 | 1922 | | |
1923 | 1923 | | |
1924 | 1924 | | |
| |||
0 commit comments