[PATCH] D123544: [randstruct] Automatically randomize a structure of function pointers

Kees Cook via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 19 14:04:45 PDT 2022


kees added a comment.

I tested this (with D123958 <https://reviews.llvm.org/D123958>), and it appears to be working as intended. These two fptrs are the first and second listed, and are happily randomized:

  [    0.000000] LSM: offsetof(struct security_hook_heads, ptrace_access_check): 816
  [    0.000000] LSM: offsetof(struct security_hook_heads, ptrace_traceme): 512


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