Bug 1802692

Summary: Shadow stack isn't unwound properly through signal handler
Product: [Fedora] Fedora Reporter: H.J. Lu <hongjiu.lu>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 33CC: aoliva, avi.kivity, dmalcolm, fweimer, jakub, jwakely, law, mpolacek, msebor, nickc, sipoyare
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: 10.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-23 15:48:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1802674    

Description H.J. Lu 2020-02-13 17:53:46 UTC
I got

FAIL: g++.dg/eh/sighandle.C

with -m32 on Tiger Lake  There is a restore token on shadow stack for
signal handler.  The restore token is 8 byte and aligned to 8 bytes for both
i386 and x86-64.  We need to handle the i386 case carefully.   This bug
has been fixed for GCC 10 and on GCC 9 branch.

Comment 1 Ben Cotton 2020-08-11 15:26:35 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 33 development cycle.
Changing version to 33.

Comment 2 H.J. Lu 2020-12-23 15:48:14 UTC
Fixed as of GCC 10.2.