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]
Date: Mon, 04 Dec 2023 08:52:19 +0100
From: Thomas Weißschuh <>
To: Kees Cook <>, 
 "Gustavo A. R. Silva" <>, 
 Luis Chamberlain <>, Iurii Zaikin <>, 
 Greg Kroah-Hartman <>, 
 Joel Granados <>
 Thomas Weißschuh <>
Subject: [PATCH v2 06/18] hugetlb: constify ctl_table arguments of utility

In a future commit the proc_handlers themselves will change to
"const struct ctl_table". As a preparation for that adapt the internal

Signed-off-by: Thomas Weißschuh <>
 mm/hugetlb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 1169ef2f2176..2df21a295359 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -4835,7 +4835,7 @@ static unsigned int allowed_mems_nr(struct hstate *h)
-static int proc_hugetlb_doulongvec_minmax(struct ctl_table *table, int write,
+static int proc_hugetlb_doulongvec_minmax(const struct ctl_table *table, int write,
 					  void *buffer, size_t *length,
 					  loff_t *ppos, unsigned long *out)
@@ -4852,7 +4852,7 @@ static int proc_hugetlb_doulongvec_minmax(struct ctl_table *table, int write,
 static int hugetlb_sysctl_handler_common(bool obey_mempolicy,
-			 struct ctl_table *table, int write,
+			 const struct ctl_table *table, int write,
 			 void *buffer, size_t *length, loff_t *ppos)
 	struct hstate *h = &default_hstate;


Powered by blists - more mailing lists