[PATCH 2/3] ptrace, seccomp: tweak get_metadata behavior slightly

2018-02-20 Thread Tycho Andersen
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

[PATCH 2/3] ptrace, seccomp: tweak get_metadata behavior slightly

2018-02-20 Thread Tycho Andersen
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