|
|
Subscribe / Log in / New account

Randomizing structure layout

Randomizing structure layout

Posted May 12, 2017 12:41 UTC (Fri) by nix (subscriber, #2304)
In reply to: Randomizing structure layout by k8to
Parent article: Randomizing structure layout

It should be fine, I think -- the debuginfo GCC emits will contain appropriate offsets for all structure members post-randomization. (And debugging without debuginfo will remain precisely as painful as it always was.)


to post comments

Randomizing structure layout

Posted May 14, 2017 23:49 UTC (Sun) by jreiser (subscriber, #11027) [Link] (2 responses)

debugging without debuginfo will remain precisely as painful as it always was.   No, it will be harder. The mapping from source declaration to binary layout previously could be understood quickly; now it will require reverse engineering (inspecting machine instructions for offsets from pointers), and it may change from version to version.

Randomizing structure layout

Posted May 15, 2017 21:47 UTC (Mon) by autious (guest, #114303) [Link] (1 responses)

Which is kinda the goal I think?

Randomizing structure layout

Posted May 17, 2017 12:45 UTC (Wed) by nix (subscriber, #2304) [Link]

Quite. The point is that if you ask gdb or crash or something else with access to the DWARF for info on some structure member's contents, it'll still be able to tell you what they are, exactly as it always could.


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