linux/drivers/net/wireless/intersil
Kees Cook 601d2293e2 intersil: 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 hfa384x_tx_frame around members
frame_control, duration_id, addr1, addr2, addr3, and seq_ctrl, 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 frame_control.

"pahole" shows no size nor member offset changes to struct
hfa384x_tx_frame. "objdump -d" shows no object code changes.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211119004646.2347920-1-keescook@chromium.org
2021-11-29 12:45:17 +02:00
..
hostap intersil: Use struct_group() for memcpy() region 2021-11-29 12:45:17 +02:00
orinoco wireless: use eth_hw_addr_set() 2021-10-20 12:39:42 +03:00
p54 p54: avoid accessing the data mapped to streaming DMA 2020-09-01 12:33:48 +03:00
Kconfig intersil: remove obsolete prism54 wireless driver 2021-08-06 11:55:28 +03:00
Makefile intersil: remove obsolete prism54 wireless driver 2021-08-06 11:55:28 +03:00