Skip to content

Zero call-used registers on function return #84

@kees

Description

@kees

As a defense against stale register contents being used in ROP attacks or as a side-channel or speculation path, the compiler could zero all used caller-used general registers at function exit, with virtually no performance impact (i.e. XORing general registers is highly pipelined).

-fzero-call-used-regs=... implementation:

Metadata

Metadata

Assignees

Labels

[Compiler-done] ClangAn issue in Clang itself has been finished[Compiler-done] GCCAn issue in GCC itself has been finished[Compiler] ClangAn issue in Clang itself needs to be addressed[Defense] information exposureProvide a defense for an information exposure[Linux] v5.15Released in Linux kernel v5.15enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions