2021-06-22 15:25:52

by Kalle Valo

[permalink] [raw]
Subject: Re: [PATCH v2] mwl8k: Avoid memcpy() over-reading of mcs.rx_mask

Kees Cook <[email protected]> wrote:

> 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]>

Patch applied to wireless-drivers-next.git, thanks.

3f26f7665c5d mwl8k: Avoid memcpy() over-reading of mcs.rx_mask

--
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches