lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250109155154.GP1306365@frogsfrogsfrogs>
Date: Thu, 9 Jan 2025 07:51:54 -0800
From: "Darrick J. Wong" <djwong@...nel.org>
To: Joel Granados <joel.granados@...nel.org>
Cc: Thomas Weißschuh <linux@...ssschuh.net>,
	Kees Cook <kees@...nel.org>, Luis Chamberlain <mcgrof@...nel.org>,
	linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
	linuxppc-dev@...ts.ozlabs.org, linux-riscv@...ts.infradead.org,
	linux-s390@...r.kernel.org, linux-crypto@...r.kernel.org,
	openipmi-developer@...ts.sourceforge.net,
	intel-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
	intel-xe@...ts.freedesktop.org, linux-hyperv@...r.kernel.org,
	linux-rdma@...r.kernel.org, linux-raid@...r.kernel.org,
	linux-scsi@...r.kernel.org, linux-serial@...r.kernel.org,
	xen-devel@...ts.xenproject.org, linux-aio@...ck.org,
	linux-fsdevel@...r.kernel.org, netfs@...ts.linux.dev,
	codalist@...a.cs.cmu.edu, linux-mm@...ck.org,
	linux-nfs@...r.kernel.org, ocfs2-devel@...ts.linux.dev,
	fsverity@...ts.linux.dev, linux-xfs@...r.kernel.org,
	io-uring@...r.kernel.org, bpf@...r.kernel.org,
	kexec@...ts.infradead.org, linux-trace-kernel@...r.kernel.org,
	linux-hardening@...r.kernel.org, apparmor@...ts.ubuntu.com,
	linux-security-module@...r.kernel.org, keyrings@...r.kernel.org
Subject: Re: [PATCH] treewide: const qualify ctl_tables where applicable

On Thu, Jan 09, 2025 at 02:16:39PM +0100, Joel Granados wrote:
> Add the const qualifier to all the ctl_tables in the tree except the
> ones in ./net dir. The "net" sysctl code is special as it modifies the
> arrays before passing it on to the registration function.
> 
> Constifying ctl_table structs will prevent the modification of
> proc_handler function pointers as the arrays would reside in .rodata.
> This is made possible after commit 78eb4ea25cd5 ("sysctl: treewide:
> constify the ctl_table argument of proc_handlers") constified all the
> proc_handlers.

Sounds like a good idea,
Reviewed-by: "Darrick J. Wong" <djwong@...nel.org> # xfs

--D

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ