diff options
author | Kees Cook <[email protected]> | 2021-06-17 08:34:19 -0700 |
---|---|---|
committer | Kees Cook <[email protected]> | 2021-10-18 12:28:52 -0700 |
commit | caf283d040f53bc4fd81ce3d2a1a364b069cfd7d (patch) | |
tree | f3271a359a8741933856b597503872c068359443 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 4797632f4f1d8af4e0670adcb97bf9800dc3beca (diff) |
xfrm: Use memset_after() to clear padding
In preparation for FORTIFY_SOURCE performing compile-time and run-time
field bounds checking for memset(), avoid intentionally writing across
neighboring fields.
Clear trailing padding bytes using the new helper so that memset()
doesn't get confused about writing "past the end" of the last struct
member. There is no change to the resulting machine code.
Cc: Steffen Klassert <[email protected]>
Cc: Herbert Xu <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Jakub Kicinski <[email protected]>
Cc: [email protected]
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions