Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sysctl: remove __user qualifier from stack_erasing_sysctl buffer argument

The buffer arg in proc handler functions have been void* (no __user
qualifier) since commit 32927393dc1c ("sysctl: pass kernel pointers to
->proc_handler"). The __user qualifier was erroneously brought back in
commit 0df8bdd5e3b3 ("stackleak: move stack_erasing sysctl to
stackleak.c"). This fixes the error by removing the __user qualifier.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202510221719.3ggn070M-lkp@intel.com/
Signed-off-by: Joel Granados <joel.granados@kernel.org>

+1 -1
+1 -1
kernel/kstack_erase.c
··· 23 23 24 24 #ifdef CONFIG_SYSCTL 25 25 static int stack_erasing_sysctl(const struct ctl_table *table, int write, 26 - void __user *buffer, size_t *lenp, loff_t *ppos) 26 + void *buffer, size_t *lenp, loff_t *ppos) 27 27 { 28 28 int ret = 0; 29 29 int state = !static_branch_unlikely(&stack_erasing_bypass);