]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sysctl: remove __user qualifier from stack_erasing_sysctl buffer argument
authorJoel Granados <joel.granados@kernel.org>
Mon, 27 Oct 2025 10:24:17 +0000 (11:24 +0100)
committerJoel Granados <joel.granados@kernel.org>
Thu, 27 Nov 2025 14:44:53 +0000 (15:44 +0100)
commit1aa53326e1df68f8e7191053a3fd712449d444cb
tree9ff96fcdf957d0dd4cf63c3ae40374bad0a771d2
parentc3102febf43ba8a9ce5512a49103f42661659a16
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>
kernel/kstack_erase.c