diff options
author | Kees Cook <[email protected]> | 2015-02-17 13:48:00 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2015-02-17 14:34:55 -0800 |
commit | 580c57f1076872ebc2427f898b927944ce170f2d (patch) | |
tree | ae0b2110dbe5eeaf98778001bb1d320797c84140 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 3a9af0bd34410a255d27024ea1bc28dc4e3a0044 (diff) |
seccomp: cap SECCOMP_RET_ERRNO data to MAX_ERRNO
The value resulting from the SECCOMP_RET_DATA mask could exceed MAX_ERRNO
when setting errno during a SECCOMP_RET_ERRNO filter action. This makes
sure we have a reliable value being set, so that an invalid errno will not
be ignored by userspace.
Signed-off-by: Kees Cook <[email protected]>
Reported-by: Dmitry V. Levin <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Will Drewry <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions