diff options
author | Kees Cook <[email protected]> | 2021-12-13 14:33:28 -0800 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2021-12-14 20:21:23 -0400 |
commit | 59aa7fcfe2e44afbe9736e5cfa941699021d6957 (patch) | |
tree | d787a8f46d2452c30ecddab354b0737daadbf0dc /scripts/gdb/linux/tasks.py | |
parent | c2ed5611afd75a37fa9f77ea71c661c2e087525a (diff) |
IB/mthca: Use memset_startat() for clearing mpt_entry
In preparation for FORTIFY_SOURCE performing compile-time and run-time
field bounds checking for memset(), avoid intentionally writing across
neighboring fields.
Use memset_startat() so memset() doesn't get confused about writing beyond
the destination member that is intended to be the starting point of
zeroing through the end of the struct.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions