diff options
author | 2022-04-07 10:59:30 -0700 | |
---|---|---|
committer | 2022-04-13 12:15:53 -0700 | |
commit | 75c1182e18f4a66bbd2c91511b6b629dac6a27dc (patch) | |
tree | e227b081222e07d16770746491389c6bad3fc1e1 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | usercopy: Remove HARDENED_USERCOPY_PAGESPAN (diff) | |
download | linux-dev-75c1182e18f4a66bbd2c91511b6b629dac6a27dc.tar.xz linux-dev-75c1182e18f4a66bbd2c91511b6b629dac6a27dc.zip |
security: don't treat structure as an array of struct hlist_head
The initialization of "security_hook_heads" is done by casting it to
another structure pointer type, and treating it as an array of "struct
hlist_head" objects. This requires an exception be made in "randstruct",
because otherwise it will emit an error, reducing the effectiveness of
the hardening technique.
Instead of using a cast, initialize the individual struct hlist_head
elements in security_hook_heads explicitly. This removes the need for
the cast and randstruct exception.
Signed-off-by: Bill Wendling <morbo@google.com>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220407175930.471870-1-morbo@google.com
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions