Bug 1688425

Summary: Provide -fcf-protection=branch,return
Product: Red Hat Enterprise Linux 8 Reporter: Paolo Bonzini <pbonzini>
Component: gccAssignee: Marek Polacek <mpolacek>
gcc sub component: system-version QA Contact: qe-baseos-tools-bugs
Status: CLOSED UPSTREAM Docs Contact:
Severity: unspecified    
Priority: unspecified CC: fweimer, jakub, law, mpetlan, ohudlick, sipoyare, vmukhame
Version: 8.0Keywords: Triaged
Target Milestone: rc   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-11 20:33:09 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: 1682592    
Bug Blocks:    

Description Paolo Bonzini 2019-03-13 17:24:22 UTC
Right now the only possibility to specify that combination -fcf-protection=full, but this is not future proof; if other suboptions are added later, they could be applied to code that does not support them.

Code that wants to be reliable against future extensions to -fcf-protection needs to specify each desired option manually, as in "-fcf-protection=branch,return".

Upstream bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89701