public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/114837] New: [11/12/13/14] Fix to security weaknesses in PCS for CMSE
@ 2024-04-24 15:40 ricbal02 at gcc dot gnu.org
2024-04-24 15:40 ` [Bug target/114837] " ricbal02 at gcc dot gnu.org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: ricbal02 at gcc dot gnu.org @ 2024-04-24 15:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114837
Bug ID: 114837
Summary: [11/12/13/14] Fix to security weaknesses in PCS for
CMSE
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: ricbal02 at gcc dot gnu.org
Target Milestone: ---
Security weaknesses exist in PCS for CMSE. To resolve this a patch will be
upstreamed and backported which will:
1) When calling a secure function from non-secure code then any arguments
smaller than 32-bits that are passed in registers are zero- or
sign-extended.
2) After a non-secure function returns into secure code then any return value
smaller than 32-bits that is passed in a register is zero- or
sign-extended.
This patch will fix the following: CVE-2024-0151.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/114837] [11/12/13/14] Fix to security weaknesses in PCS for CMSE
2024-04-24 15:40 [Bug target/114837] New: [11/12/13/14] Fix to security weaknesses in PCS for CMSE ricbal02 at gcc dot gnu.org
@ 2024-04-24 15:40 ` ricbal02 at gcc dot gnu.org
2024-04-24 15:58 ` ricbal02 at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ricbal02 at gcc dot gnu.org @ 2024-04-24 15:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114837
Richard Ball <ricbal02 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |ricbal02 at gcc dot gnu.org
Status|UNCONFIRMED |ASSIGNED
Target| |aarch64
Last reconfirmed| |2024-04-24
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/114837] [11/12/13/14] Fix to security weaknesses in PCS for CMSE
2024-04-24 15:40 [Bug target/114837] New: [11/12/13/14] Fix to security weaknesses in PCS for CMSE ricbal02 at gcc dot gnu.org
2024-04-24 15:40 ` [Bug target/114837] " ricbal02 at gcc dot gnu.org
@ 2024-04-24 15:58 ` ricbal02 at gcc dot gnu.org
2024-04-25 14:34 ` [Bug target/114837] [11/12/13/14] Fix to security weaknesses in arm " cvs-commit at gcc dot gnu.org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ricbal02 at gcc dot gnu.org @ 2024-04-24 15:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114837
--- Comment #1 from Richard Ball <ricbal02 at gcc dot gnu.org> ---
https://sourceware.org/pipermail/gcc-patches/2024-April/649973.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/114837] [11/12/13/14] Fix to security weaknesses in arm PCS for CMSE
2024-04-24 15:40 [Bug target/114837] New: [11/12/13/14] Fix to security weaknesses in PCS for CMSE ricbal02 at gcc dot gnu.org
2024-04-24 15:40 ` [Bug target/114837] " ricbal02 at gcc dot gnu.org
2024-04-24 15:58 ` ricbal02 at gcc dot gnu.org
@ 2024-04-25 14:34 ` cvs-commit at gcc dot gnu.org
2024-04-25 14:35 ` ricbal02 at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-04-25 14:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114837
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Ball <ricbal02@gcc.gnu.org>:
https://gcc.gnu.org/g:ad45086178d833254d66fab518b14234418f002b
commit r14-10122-gad45086178d833254d66fab518b14234418f002b
Author: Richard Ball <richard.ball@arm.com>
Date: Thu Apr 25 15:30:42 2024 +0100
arm: Zero/Sign extends for CMSE security
Co-Authored by: Andre Simoes Dias Vieira <Andre.SimoesDiasVieira@arm.com>
This patch makes the following changes:
1) When calling a secure function from non-secure code then any arguments
smaller than 32-bits that are passed in registers are zero- or
sign-extended.
2) After a non-secure function returns into secure code then any return
value
smaller than 32-bits that is passed in a register is zero- or
sign-extended.
This patch addresses the following CVE-2024-0151.
gcc/ChangeLog:
PR target/114837
* config/arm/arm.cc (cmse_nonsecure_call_inline_register_clear):
Add zero/sign extend.
(arm_expand_prologue): Add zero/sign extend.
gcc/testsuite/ChangeLog:
* gcc.target/arm/cmse/extend-param.c: New test.
* gcc.target/arm/cmse/extend-return.c: New test.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/114837] [11/12/13/14] Fix to security weaknesses in arm PCS for CMSE
2024-04-24 15:40 [Bug target/114837] New: [11/12/13/14] Fix to security weaknesses in PCS for CMSE ricbal02 at gcc dot gnu.org
` (2 preceding siblings ...)
2024-04-25 14:34 ` [Bug target/114837] [11/12/13/14] Fix to security weaknesses in arm " cvs-commit at gcc dot gnu.org
@ 2024-04-25 14:35 ` ricbal02 at gcc dot gnu.org
2024-04-25 14:40 ` [Bug target/114837] [11/12/13] " cvs-commit at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ricbal02 at gcc dot gnu.org @ 2024-04-25 14:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114837
--- Comment #3 from Richard Ball <ricbal02 at gcc dot gnu.org> ---
Fixed on Trunk so far
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/114837] [11/12/13] Fix to security weaknesses in arm PCS for CMSE
2024-04-24 15:40 [Bug target/114837] New: [11/12/13/14] Fix to security weaknesses in PCS for CMSE ricbal02 at gcc dot gnu.org
` (3 preceding siblings ...)
2024-04-25 14:35 ` ricbal02 at gcc dot gnu.org
@ 2024-04-25 14:40 ` cvs-commit at gcc dot gnu.org
2024-04-25 14:44 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-04-25 14:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114837
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Richard Ball
<ricbal02@gcc.gnu.org>:
https://gcc.gnu.org/g:5550214b58e95320b54e42ef0e37c6479e04b27b
commit r13-8647-g5550214b58e95320b54e42ef0e37c6479e04b27b
Author: Richard Ball <richard.ball@arm.com>
Date: Thu Apr 25 15:30:42 2024 +0100
arm: Zero/Sign extends for CMSE security
Co-Authored by: Andre Simoes Dias Vieira <Andre.SimoesDiasVieira@arm.com>
This patch makes the following changes:
1) When calling a secure function from non-secure code then any arguments
smaller than 32-bits that are passed in registers are zero- or
sign-extended.
2) After a non-secure function returns into secure code then any return
value
smaller than 32-bits that is passed in a register is zero- or
sign-extended.
This patch addresses the following CVE-2024-0151.
gcc/ChangeLog:
PR target/114837
* config/arm/arm.cc (cmse_nonsecure_call_inline_register_clear):
Add zero/sign extend.
(arm_expand_prologue): Add zero/sign extend.
gcc/testsuite/ChangeLog:
* gcc.target/arm/cmse/extend-param.c: New test.
* gcc.target/arm/cmse/extend-return.c: New test.
(cherry picked from commit ad45086178d833254d66fab518b14234418f002b)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/114837] [11/12/13] Fix to security weaknesses in arm PCS for CMSE
2024-04-24 15:40 [Bug target/114837] New: [11/12/13/14] Fix to security weaknesses in PCS for CMSE ricbal02 at gcc dot gnu.org
` (4 preceding siblings ...)
2024-04-25 14:40 ` [Bug target/114837] [11/12/13] " cvs-commit at gcc dot gnu.org
@ 2024-04-25 14:44 ` cvs-commit at gcc dot gnu.org
2024-04-25 14:46 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-04-25 14:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114837
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Richard Ball
<ricbal02@gcc.gnu.org>:
https://gcc.gnu.org/g:441e194abcf3211de647d74c892f90879ae9ca8c
commit r12-10394-g441e194abcf3211de647d74c892f90879ae9ca8c
Author: Richard Ball <richard.ball@arm.com>
Date: Thu Apr 25 15:30:42 2024 +0100
arm: Zero/Sign extends for CMSE security
Co-Authored by: Andre Simoes Dias Vieira <Andre.SimoesDiasVieira@arm.com>
This patch makes the following changes:
1) When calling a secure function from non-secure code then any arguments
smaller than 32-bits that are passed in registers are zero- or
sign-extended.
2) After a non-secure function returns into secure code then any return
value
smaller than 32-bits that is passed in a register is zero- or
sign-extended.
This patch addresses the following CVE-2024-0151.
gcc/ChangeLog:
PR target/114837
* config/arm/arm.cc (cmse_nonsecure_call_inline_register_clear):
Add zero/sign extend.
(arm_expand_prologue): Add zero/sign extend.
gcc/testsuite/ChangeLog:
* gcc.target/arm/cmse/extend-param.c: New test.
* gcc.target/arm/cmse/extend-return.c: New test.
(cherry picked from commit ad45086178d833254d66fab518b14234418f002b)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/114837] [11/12/13] Fix to security weaknesses in arm PCS for CMSE
2024-04-24 15:40 [Bug target/114837] New: [11/12/13/14] Fix to security weaknesses in PCS for CMSE ricbal02 at gcc dot gnu.org
` (5 preceding siblings ...)
2024-04-25 14:44 ` cvs-commit at gcc dot gnu.org
@ 2024-04-25 14:46 ` cvs-commit at gcc dot gnu.org
2024-04-25 14:48 ` ricbal02 at gcc dot gnu.org
2024-04-25 14:48 ` ricbal02 at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-04-25 14:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114837
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Richard Ball
<ricbal02@gcc.gnu.org>:
https://gcc.gnu.org/g:dabd742cc25f8992c24e639510df0965dbf14f21
commit r11-11364-gdabd742cc25f8992c24e639510df0965dbf14f21
Author: Richard Ball <richard.ball@arm.com>
Date: Thu Apr 25 15:30:42 2024 +0100
arm: Zero/Sign extends for CMSE security
Co-Authored by: Andre Simoes Dias Vieira <Andre.SimoesDiasVieira@arm.com>
This patch makes the following changes:
1) When calling a secure function from non-secure code then any arguments
smaller than 32-bits that are passed in registers are zero- or
sign-extended.
2) After a non-secure function returns into secure code then any return
value
smaller than 32-bits that is passed in a register is zero- or
sign-extended.
This patch addresses the following CVE-2024-0151.
gcc/ChangeLog:
PR target/114837
* config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
Add zero/sign extend.
(arm_expand_prologue): Add zero/sign extend.
gcc/testsuite/ChangeLog:
* gcc.target/arm/cmse/extend-param.c: New test.
* gcc.target/arm/cmse/extend-return.c: New test.
(cherry picked from commit ad45086178d833254d66fab518b14234418f002b)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/114837] [11/12/13] Fix to security weaknesses in arm PCS for CMSE
2024-04-24 15:40 [Bug target/114837] New: [11/12/13/14] Fix to security weaknesses in PCS for CMSE ricbal02 at gcc dot gnu.org
` (6 preceding siblings ...)
2024-04-25 14:46 ` cvs-commit at gcc dot gnu.org
@ 2024-04-25 14:48 ` ricbal02 at gcc dot gnu.org
2024-04-25 14:48 ` ricbal02 at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: ricbal02 at gcc dot gnu.org @ 2024-04-25 14:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114837
--- Comment #7 from Richard Ball <ricbal02 at gcc dot gnu.org> ---
Backported to gcc-11, gcc-12 and gcc-13
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/114837] [11/12/13] Fix to security weaknesses in arm PCS for CMSE
2024-04-24 15:40 [Bug target/114837] New: [11/12/13/14] Fix to security weaknesses in PCS for CMSE ricbal02 at gcc dot gnu.org
` (7 preceding siblings ...)
2024-04-25 14:48 ` ricbal02 at gcc dot gnu.org
@ 2024-04-25 14:48 ` ricbal02 at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: ricbal02 at gcc dot gnu.org @ 2024-04-25 14:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114837
Richard Ball <ricbal02 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #8 from Richard Ball <ricbal02 at gcc dot gnu.org> ---
Fixed
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2024-04-25 14:48 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-24 15:40 [Bug target/114837] New: [11/12/13/14] Fix to security weaknesses in PCS for CMSE ricbal02 at gcc dot gnu.org
2024-04-24 15:40 ` [Bug target/114837] " ricbal02 at gcc dot gnu.org
2024-04-24 15:58 ` ricbal02 at gcc dot gnu.org
2024-04-25 14:34 ` [Bug target/114837] [11/12/13/14] Fix to security weaknesses in arm " cvs-commit at gcc dot gnu.org
2024-04-25 14:35 ` ricbal02 at gcc dot gnu.org
2024-04-25 14:40 ` [Bug target/114837] [11/12/13] " cvs-commit at gcc dot gnu.org
2024-04-25 14:44 ` cvs-commit at gcc dot gnu.org
2024-04-25 14:46 ` cvs-commit at gcc dot gnu.org
2024-04-25 14:48 ` ricbal02 at gcc dot gnu.org
2024-04-25 14:48 ` ricbal02 at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).