[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <169521735205.3443473.3273251476364082094.b4-ty@kernel.org>
Date: Wed, 20 Sep 2023 14:42:32 +0100
From: Lee Jones <lee@...nel.org>
To: Pavel Machek <pavel@....cz>, Kees Cook <keescook@...omium.org>
Cc: Lee Jones <lee@...nel.org>,
Bjorn Andersson <quic_bjorande@...cinc.com>,
Uwe Kleine-König <u.kleine-koenig@...gutronix.de>,
Douglas Anderson <dianders@...omium.org>,
Anjelique Melendez <quic_amelende@...cinc.com>,
linux-leds@...r.kernel.org, Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Tom Rix <trix@...hat.com>,
Neil Armstrong <neil.armstrong@...aro.org>,
Luca Weiss <luca@...tu.xyz>, Lu Hongfei <luhongfei@...o.com>,
Dmitry Baryshkov <dmitry.baryshkov@...aro.org>,
linux-kernel@...r.kernel.org, llvm@...ts.linux.dev,
linux-hardening@...r.kernel.org
Subject: Re: (subset) [PATCH] leds: qcom-lpg: Annotate struct lpg_led with
__counted_by
On Fri, 15 Sep 2023 13:11:00 -0700, Kees Cook wrote:
> Prepare for the coming implementation by GCC and Clang of the __counted_by
> attribute. Flexible array members annotated with __counted_by can have
> their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS
> (for array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family
> functions).
>
> As found with Coccinelle[1], add __counted_by for struct lpg_led.
>
> [...]
Applied, thanks!
[1/1] leds: qcom-lpg: Annotate struct lpg_led with __counted_by
commit: 3a2a14ad346d60da60aef0a2afc1fb256a56c83c
--
Lee Jones [李琼斯]
Powered by blists - more mailing lists