[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <a977371e5b88391866ea55f200db8ac0@paul-moore.com>
Date: Fri, 22 Dec 2023 18:00:36 -0500
From: Paul Moore <paul@...l-moore.com>
To: Mark Brown <broonie@...nel.org>, James Morris <jmorris@...ei.org>, "Serge E. Hallyn" <serge@...lyn.com>, Kees Cook <keescook@...omium.org>, "Gustavo A. R. Silva" <gustavoars@...nel.org>
Cc: linux-security-module@...r.kernel.org, linux-kernel@...r.kernel.org, linux-hardening@...r.kernel.org, Aishwarya TCV <aishwarya.tcv@....com>, Mark Brown <broonie@...nel.org>
Subject: Re: [PATCH v2] lsm: Add a __counted_by() annotation to lsm_ctx.ctx
On Dec 22, 2023 Mark Brown <broonie@...nel.org> wrote:
>
> The ctx in struct lsm_ctx is an array of size ctx_len, tell the compiler
> about this using __counted_by() where supported to improve the ability to
> detect overflow issues.
>
> Reported-by: Aishwarya TCV <aishwarya.tcv@....com>
> Signed-off-by: Mark Brown <broonie@...nel.org>
> ---
> Changes in v2:
> - Add explicit stddef.h inclusion in case __counted_by() definition
> isn't otherwise pulled in.
> - Link to v1: https://lore.kernel.org/r/20231221-lsm-fix-counted-by-v1-1-12cc27597cdf@kernel.org
> ---
> include/uapi/linux/lsm.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Applied to lsm/dev, thanks!
--
paul-moore.com
Powered by blists - more mailing lists