summaryrefslogtreecommitdiffstats
path: root/mm/oom_kill.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2018-10-11 03:29:44 +0200
committerEric W. Biederman <ebiederm@xmission.com>2018-10-11 03:34:14 +0200
commita36700589b85443e28170be59fa11c8a104130a5 (patch)
treee845a14e4499d6bd3bbab6ac4a1c6b84e2b60f96 /mm/oom_kill.c
parentsignal: Guard against negative signal numbers in copy_siginfo_from_user (diff)
downloadlinux-a36700589b85443e28170be59fa11c8a104130a5.tar.xz
linux-a36700589b85443e28170be59fa11c8a104130a5.zip
signal: Guard against negative signal numbers in copy_siginfo_from_user32
While fixing an out of bounds array access in known_siginfo_layout reported by the kernel test robot it became apparent that the same bug exists in siginfo_layout and affects copy_siginfo_from_user32. The straight forward fix that makes guards against making this mistake in the future and should keep the code size small is to just take an unsigned signal number instead of a signed signal number, as I did to fix known_siginfo_layout. Cc: stable@vger.kernel.org Fixes: cc731525f26a ("signal: Remove kernel interal si_code magic") Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'mm/oom_kill.c')
0 files changed, 0 insertions, 0 deletions