]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
seccomp: Remove bogus __user annotations
authorJann Horn <jannh@google.com>
Fri, 20 Nov 2020 17:05:45 +0000 (18:05 +0100)
committerKees Cook <keescook@chromium.org>
Fri, 20 Nov 2020 19:39:21 +0000 (11:39 -0800)
commitfab686eb0307121e7a2890b6d6c57edd2457863d
tree23cd109c162d392b7e1b5aafe53bead84bf2393f
parent0d8315dddd2899f519fe1ca3d4d5cdaf44ea421e
seccomp: Remove bogus __user annotations

Buffers that are passed to read_actions_logged() and write_actions_logged()
are in kernel memory; the sysctl core takes care of copying from/to
userspace.

Fixes: 32927393dc1c ("sysctl: pass kernel pointers to ->proc_handler")
Reviewed-by: Tyler Hicks <code@tyhicks.com>
Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20201120170545.1419332-1-jannh@google.com
kernel/seccomp.c