aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2021-06-17 04:14:31 +0000
committerKalle Valo <[email protected]>2021-06-22 15:23:54 +0000
commit3f26f7665c5ddc880444e3daaecb3a46794ba3a4 (patch)
tree9b49ab2031b61e40958923fe551d3a98ea4bf508 /net/switchdev/switchdev.c
parentorinoco: Avoid field-overflowing memcpy() (diff)
downloadkernel-3f26f7665c5ddc880444e3daaecb3a46794ba3a4.tar.gz
kernel-3f26f7665c5ddc880444e3daaecb3a46794ba3a4.zip
mwl8k: Avoid memcpy() over-reading of mcs.rx_mask
In preparation for FORTIFY_SOURCE performing compile-time and run-time field bounds checking for memcpy(), memmove(), and memset(), avoid intentionally reading across neighboring array fields. Use the sub-structure address directly. Signed-off-by: Kees Cook <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions