summaryrefslogtreecommitdiff
path: root/security/loadpin
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2017-11-08 08:09:52 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-11-08 10:56:22 -0800
commitf7dc4c9a855a13dbb33294c9fc94f17af03f6291 (patch)
tree9ce322841e592dae220139d91d5e48e555987a70 /security/loadpin
parentfbc3edf7d7731d7a22c483c679700589bab936a3 (diff)
apparmor: fix off-by-one comparison on MAXMAPPED_SIG
This came in yesterday, and I have verified our regression tests were missing this and it can cause an oops. Please apply. There is a an off-by-one comparision on sig against MAXMAPPED_SIG that can lead to a read outside the sig_map array if sig is MAXMAPPED_SIG. Fix this. Verified that the check is an out of bounds case that can cause an oops. Revised: add comparison fix to second case Fixes: cd1dbf76b23d ("apparmor: add the ability to mediate signals") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: John Johansen <john.johansen@canonical.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'security/loadpin')
0 files changed, 0 insertions, 0 deletions