[PATCH] D123544: [randstruct] Automatically randomize a structure of function pointers
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 12 11:07:58 PDT 2022
MaskRay added a comment.
The Linux kernel already uses some options which deviate from standard C: `__attribute__((__gnu_inline__))`, `-ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang`.
If the feature is to emulate `GCC_PLUGIN_STRUCTLEAK` in kernel `security/Kconfig.hardening` and the GCC plugin already does something similar, I am fine with this patch.
(My main concern is the lack of testing from the base patch.)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123544/new/
https://reviews.llvm.org/D123544
More information about the cfe-commits
mailing list