[go: up one dir, main page]

|
|
Log in / Subscribe / Register

GCC stackleak function attribute

GCC stackleak function attribute

Posted Sep 13, 2018 6:47 UTC (Thu) by mjw (subscriber, #16740)
Parent article: Trying to get STACKLEAK into the kernel

At the GNU Tools Cauldron last week there was a presentation on a similar topic to get a new stackleak like attribute for functions that would clear the stack used on function return into GCC.

This might be used instead of the gcc plugin currently used (assuming the goals are similar enough). It might be interesting to collaborate on these kind of functionality/security mitigations can be made more generic so they can be used across user and kernel space.

Slides and video should appear here soon: https://gcc.gnu.org/wiki/cauldron2018#Slides.2C_Videos_an...


to post comments

GCC stackleak function attribute

Posted Sep 13, 2018 10:08 UTC (Thu) by mjthayer (guest, #39183) [Link]

That certainly sounds sensible. Following up on roc's comment above, might the working environment be more friendly as well? Perhaps other people working on security in the kernel should be looking at whether some of their work can be done in the toolchain instead.

GCC stackleak function attribute

Posted Sep 13, 2018 13:45 UTC (Thu) by a13xp0p0v (guest, #118926) [Link] (1 responses)

Nice! Thanks for the link.

GCC stack_erase function attribute

Posted Sep 13, 2018 13:52 UTC (Thu) by mjw (subscriber, #16740) [Link]

It looks like the video of the talk isn't there yet, but I found the slides already here: https://gmarkall.files.wordpress.com/2018/09/secure_and_g...

The suggested attribute name was actually "stack_erase".


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds