linux/drivers/net/wireless/intersil/hostap
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_80211_rx.c
hostap_80211_tx.c
hostap_80211.h
hostap_ap.c
hostap_ap.h
hostap_common.h
hostap_config.h
hostap_cs.c
hostap_download.c
hostap_hw.c intersil: Use struct_group() for memcpy() region 2021-11-29 12:45:17 +02:00
hostap_info.c
hostap_ioctl.c hostap: use ndo_siocdevprivate 2021-07-27 20:11:43 +01:00
hostap_main.c wireless: use eth_hw_addr_set() 2021-10-20 12:39:42 +03:00
hostap_pci.c
hostap_plx.c
hostap_proc.c
hostap_wlan.h intersil: Use struct_group() for memcpy() region 2021-11-29 12:45:17 +02:00
hostap.h hostap: use ndo_siocdevprivate 2021-07-27 20:11:43 +01:00
Kconfig
Makefile