diff options
author | Tycho Andersen <tycho@tycho.ws> | 2018-02-21 03:47:46 +0100 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2018-02-22 01:56:03 +0100 |
commit | 63bb0045b98ae821e56e27c2250e14bb0ae663e5 (patch) | |
tree | d26e642414ee3be9dbeb4d963b77a557eb62238b /tools/testing | |
parent | seccomp, ptrace: switch get_metadata types to arch independent (diff) | |
download | linux-63bb0045b98ae821e56e27c2250e14bb0ae663e5.tar.xz linux-63bb0045b98ae821e56e27c2250e14bb0ae663e5.zip |
ptrace, seccomp: tweak get_metadata behavior slightly
Previously if users passed a small size for the input structure size, they
would get get odd behavior. It doesn't make sense to pass a structure
smaller than at least filter_off size, so let's just give -EINVAL in this
case.
This changes userspace visible behavior, but was only introduced in commit
26500475ac1b ("ptrace, seccomp: add support for retrieving seccomp
metadata") in 4.16-rc2, so should be safe to change if merged before then.
Reported-by: Eugene Syromiatnikov <esyr@redhat.com>
Signed-off-by: Tycho Andersen <tycho@tycho.ws>
CC: Kees Cook <keescook@chromium.org>
CC: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions