aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m32r/include/asm/assembler.h
diff options
context:
space:
mode:
authorTycho Andersen <[email protected]>2018-02-21 02:47:46 +0000
committerKees Cook <[email protected]>2018-02-22 00:56:03 +0000
commit63bb0045b98ae821e56e27c2250e14bb0ae663e5 (patch)
treed26e642414ee3be9dbeb4d963b77a557eb62238b /arch/m32r/include/asm/assembler.h
parentseccomp, ptrace: switch get_metadata types to arch independent (diff)
downloadkernel-63bb0045b98ae821e56e27c2250e14bb0ae663e5.tar.gz
kernel-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 <[email protected]> Signed-off-by: Tycho Andersen <[email protected]> CC: Kees Cook <[email protected]> CC: Oleg Nesterov <[email protected]> Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'arch/m32r/include/asm/assembler.h')
0 files changed, 0 insertions, 0 deletions