[GIT PULL] seccomp updates for v4.16-rc3

From: Kees Cook
Date: Wed Feb 21 2018 - 20:04:20 EST


Hi James,

Please pull these seccomp changes for v4.16-rc3. These are fixes for the
get_metadata interface that landed during -rc1. While the new selftest
is strictly not a bug fix, I think it's in the same spirit of avoiding
bugs.

Thanks!

-Kees

The following changes since commit 26500475ac1b499d8636ff281311d633909f5d20:

ptrace, seccomp: add support for retrieving seccomp metadata (2017-11-28 15:41:01 -0800)

are available in the git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/seccomp-v4.16-rc3

for you to fetch changes up to d057dc4e35e16050befa3dda943876dab39cbf80:

seccomp: add a selftest for get_metadata (2018-02-21 16:56:03 -0800)

----------------------------------------------------------------
- Fix seccomp GET_METADATA to deal with fields sizes correctly (Tycho Andersen)
- Add selftest to make sure GET_METADATA doesn't regress (Tycho Andersen)

----------------------------------------------------------------
Tycho Andersen (3):
seccomp, ptrace: switch get_metadata types to arch independent
ptrace, seccomp: tweak get_metadata behavior slightly
seccomp: add a selftest for get_metadata

include/uapi/linux/ptrace.h | 4 +-
kernel/seccomp.c | 6 ++-
tools/testing/selftests/seccomp/seccomp_bpf.c | 61 +++++++++++++++++++++++++++
3 files changed, 67 insertions(+), 4 deletions(-)

--
Kees Cook
Pixel Security