diff options
author | Kees Cook <[email protected]> | 2022-01-20 23:39:35 -0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-01-21 19:26:03 -0800 |
commit | 63ec72bd58487935a2e40d2cdffe5c9498f1275e (patch) | |
tree | 0256004a79e7cced0d929163f246f9943193d818 /tools/testing/selftests/net/ioam6_parser.c | |
parent | 2c13c05c5ff4b9fc907b07f7311821910ebaaf8a (diff) |
mptcp: Use struct_group() to avoid cross-field memset()
In preparation for FORTIFY_SOURCE performing compile-time and run-time
field bounds checking for memcpy(), memmove(), and memset(), avoid
intentionally writing across neighboring fields.
Use struct_group() to capture the fields to be reset, so that memset()
can be appropriately bounds-checked by the compiler.
Cc: Matthieu Baerts <[email protected]>
Cc: [email protected]
Signed-off-by: Kees Cook <[email protected]>
Reviewed-by: Mat Martineau <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/ioam6_parser.c')
0 files changed, 0 insertions, 0 deletions