summaryrefslogtreecommitdiff
path: root/drivers/irqchip/irq-mxs.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2015-02-18 00:48:00 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-18 01:34:55 +0300
commit580c57f1076872ebc2427f898b927944ce170f2d (patch)
treeae0b2110dbe5eeaf98778001bb1d320797c84140 /drivers/irqchip/irq-mxs.c
parent3a9af0bd34410a255d27024ea1bc28dc4e3a0044 (diff)
downloadlinux-580c57f1076872ebc2427f898b927944ce170f2d.tar.xz
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 <keescook@chromium.org> Reported-by: Dmitry V. Levin <ldv@altlinux.org> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Will Drewry <wad@chromium.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/irqchip/irq-mxs.c')
0 files changed, 0 insertions, 0 deletions