On Fri, Feb 23, 2024 at 12:08 PM Kees Cook <[email protected]> wrote:
>
> We continue to see false positives from -Warray-bounds even in GCC 10,
> which is getting reported in a few places[1] still:
>
> security/security.c:811:2: warning: ‘memcpy’ offset 32 is out of the bounds 
> [0, 0] [-Warray-bounds]
>
> Lower the GCC version check from 11 to 10.
>
> Reported-by: Lu Yao <[email protected]>
> Closes: https://lore.kernel.org/lkml/[email protected]/
> Link: 
> https://lore.kernel.org/linux-next/[email protected] 
> [1]
> Signed-off-by: Kees Cook <[email protected]>
> ---
> Cc: Masahiro Yamada <[email protected]>
> Cc: Paul Moore <[email protected]>
> Cc: Gustavo A. R. Silva <[email protected]>
> Cc: Nathan Chancellor <[email protected]>
> Cc: Christophe Leroy <[email protected]>
> Cc: Johannes Weiner <[email protected]>
> ---
>  init/Kconfig | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Thanks Kees.

Reviewed-by: Paul Moore <[email protected]>

-- 
paul-moore.com

Reply via email to