"Gustavo A. R. Silva" <[email protected]> wrote: > Replace one-element array with a flexible-array member in > `struct host_cmd_ds_802_11_scan_ext`. > > With this, fix the following warning: > > elo 16 17:51:58 surfacebook kernel: ------------[ cut here ]------------ > elo 16 17:51:58 surfacebook kernel: memcpy: detected field-spanning write > (size 243) of single field "ext_scan->tlv_buffer" at > drivers/net/wireless/marvell/mwifiex/scan.c:2239 (size 1) > elo 16 17:51:58 surfacebook kernel: WARNING: CPU: 0 PID: 498 at > drivers/net/wireless/marvell/mwifiex/scan.c:2239 > mwifiex_cmd_802_11_scan_ext+0x83/0x90 [mwifiex] > > Reported-by: Andy Shevchenko <[email protected]> > Closes: > https://lore.kernel.org/linux-hardening/[email protected]/ > Signed-off-by: Gustavo A. R. Silva <[email protected]> > Reviewed-by: Andy Shevchenko <[email protected]> > Acked-by: Brian Norris <[email protected]>
Patch applied to wireless-next.git, thanks. 498365e52beb wifi: mwifiex: Fix memcpy() field-spanning write warning in mwifiex_cmd_802_11_scan_ext() -- https://patchwork.kernel.org/project/linux-wireless/patch/ZsZa5xRcsLq9D+RX@elsanto/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
