diff options
author | 2022-01-24 09:22:41 -0800 | |
---|---|---|
committer | 2022-02-01 20:59:43 -0800 | |
commit | 6d5c900eb64107001e91e1f46bddc254dded8a59 (patch) | |
tree | d502eb88120cd27bae118eb8873ccb19847faf19 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net/mlx5e: Avoid implicit modify hdr for decap drop rule (diff) | |
download | wireguard-linux-6d5c900eb64107001e91e1f46bddc254dded8a59.tar.xz wireguard-linux-6d5c900eb64107001e91e1f46bddc254dded8a59.zip |
net/mlx5e: Use struct_group() for memcpy() region
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() in struct vlan_ethhdr around members h_dest and
h_source, so they can be referenced together. This will allow memcpy()
and sizeof() to more easily reason about sizes, improve readability,
and avoid future warnings about writing beyond the end of h_dest.
"pahole" shows no size nor member offset changes to struct vlan_ethhdr.
"objdump -d" shows no object code changes.
Fixes: 34802a42b352 ("net/mlx5e: Do not modify the TX SKB")
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions