Subject: Re: next/master build: 210 builds: 7 failed, 203 passed, 7 errors, 1669 warnings (next-20210914)

From: Kees Cook <[email-masked]>
Date: Thu, 16 Sep 2021 09:12:45 -0700

On Tue, Sep 14, 2021 at 01:32:23AM -0700, kernelci.org bot wrote:
> Errors summary:
> 
>     2    include/linux/slab.h:618:9: error: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Werror=alloc-size-larger-than=]
>     1    include/linux/slab.h:461:9: error: argument 1 value ‘4294967295’ exceeds maximum object size 2147483647 [-Werror=alloc-size-larger-than=]
>     1    drivers/staging/greybus/audio_topology.c:977:12: error: stack frame size of 3312 bytes in function 'gbaudio_tplg_create_widget' [-Werror,-Wframe-larger-than=]
>     1    drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:138:4: error: argument 1 value ‘4294967295’ exceeds maximum object size 2147483647 [-Werror=alloc-size-larger-than=]

These (the same root cause as [1]) are fixed by:
https://lore.kernel.org/lkml/[email-masked]/

which is in mmots (soon to be mmotm, soon to be in -next):
https://www.ozlabs.org/~akpm/mmots/broken-out/compiler-attributes-add-__alloc_size-for-better-bounds-checking-fix.patch

-Kees

[1] https://lore.kernel.org/lkml/[email-masked]/

-- 
Kees Cook