aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorSargun Dhillon <sargun@sargun.me>2019-12-30 12:38:11 -0800
committerKees Cook <keescook@chromium.org>2020-01-02 13:15:45 -0800
commite4ab5ccc357b978999328fadae164e098c26fa40 (patch)
tree5ceffa20d8e817119506f5feddc9d28da802f5f8 /kernel
parentseccomp: Check that seccomp_notif is zeroed out by the user (diff)
downloadlinux-dev-e4ab5ccc357b978999328fadae164e098c26fa40.tar.xz
linux-dev-e4ab5ccc357b978999328fadae164e098c26fa40.zip
selftests/seccomp: Catch garbage on SECCOMP_IOCTL_NOTIF_RECV
This adds logic to the user_notification_basic test to set a member of struct seccomp_notif to an invalid value to ensure that the kernel returns EINVAL if any of the struct seccomp_notif members are set to invalid values. Signed-off-by: Sargun Dhillon <sargun@sargun.me> Suggested-by: Christian Brauner <christian.brauner@ubuntu.com> Link: https://lore.kernel.org/r/20191230203811.4996-1-sargun@sargun.me Fixes: 6a21cc50f0c7 ("seccomp: add a return code to trap to userspace") Cc: stable@vger.kernel.org Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions