[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ba4qmufdwy4w73aiiopxpgozo2bklnzqigxdcvcf7xuvomvalk@rm7evxixij5k>
Date: Wed, 5 Feb 2025 10:03:32 +0100
From: Joel Granados <joel.granados@...nel.org>
To: Kees Cook <kees@...nel.org>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
Anna Schumaker <anna.schumaker@...cle.com>, Ashutosh Dixit <ashutosh.dixit@...el.com>,
Baoquan He <bhe@...hat.com>, Bill O'Donnell <bodonnel@...hat.com>,
Corey Minyard <cminyard@...sta.com>, "Darrick J. Wong" <djwong@...nel.org>,
Jani Nikula <jani.nikula@...el.com>, "Martin K. Petersen" <martin.petersen@...cle.com>,
Song Liu <song@...nel.org>, Steven Rostedt <rostedt@...dmis.org>,
Thomas Gleixner <tglx@...utronix.de>, Wei Liu <wei.liu@...nel.org>, linux-kernel@...r.kernel.org,
linux-fsdevel@...r.kernel.org, linux-hardening@...r.kernel.org
Subject: Re: [GIT PULL] sysctl constification changes for v6.14-rc1
On Fri, Jan 31, 2025 at 12:03:39PM -0800, Kees Cook wrote:
> On Fri, Jan 31, 2025 at 02:57:40PM +0100, Joel Granados wrote:
> > From 431abf6c9c11a8b7321842ed0747b3200d43ef34 Mon Sep 17 00:00:00 2001
> > From: Joel Granados <joel.granados@...nel.org>
> > Date: Fri, 31 Jan 2025 14:10:57 +0100
> > Subject: [PATCH] csky: Remove the size from alignment_tbl declaration
> >
> > Having to synchronize the number of ctl_table array elements with the
> > size in the declaration can lead to discrepancies between the two
> > values. Since commit d7a76ec87195 ("sysctl: Remove check for sentinel
> > element in ctl_table arrays"), the calculation of the ctl_table array
> > size is done solely by the ARRAY_SIZE macro removing the need for the
> > size in the declaration.
> >
> > Remove the size for the aligment_tbl declaration and const qualify the
> > array for good measure.
> >
> > Signed-off-by: Joel Granados <joel.granados@...nel.org>
>
> FWIW, this looks correct to me.
>
> Reviewed-by: Kees Cook <kees@...nel.org>
Thx, I'll queue this up in sysctl-next unless it is already there.
Best
--
Joel Granados
Powered by blists - more mailing lists