|
|
Subscribe / Log in / New account

Strict memcpy() bounds checking for the kernel

Strict memcpy() bounds checking for the kernel

Posted Jul 30, 2021 21:07 UTC (Fri) by post-factum (subscriber, #53836)
Parent article: Strict memcpy() bounds checking for the kernel

How does it play with the struct layout randomisation?


to post comments

Strict memcpy() bounds checking for the kernel

Posted Jul 30, 2021 21:33 UTC (Fri) by mathstuf (subscriber, #69389) [Link] (1 responses)

Isn't that just for static structures full of function pointers (basically vtables)? Presumably `sk_buff` structures and other such things being `memcpy`'d to are not constant once the kernel is booted.

Strict memcpy() bounds checking for the kernel

Posted Aug 2, 2021 15:07 UTC (Mon) by kees (subscriber, #27264) [Link]

Right, and if any __randomize_layout struct wanted to use struct_group() it could as those would be kept together. It actually makes things easier.


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