Revision f7dc4c9a855a13dbb33294c9fc94f17af03f6291 authored by John Johansen on 08 November 2017, 16:09:52 UTC, committed by Linus Torvalds on 08 November 2017, 18:56:22 UTC
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>
1 parent fbc3edf
History
File Mode Size
.gitignore -rw-r--r-- 88 bytes
Kconfig -rw-r--r-- 14.1 KB
Makefile -rw-r--r-- 1016 bytes
adummy.c -rw-r--r-- 4.0 KB
ambassador.c -rw-r--r-- 65.9 KB
ambassador.h -rw-r--r-- 15.8 KB
atmtcp.c -rw-r--r-- 11.4 KB
eni.c -rw-r--r-- 61.3 KB
eni.h -rw-r--r-- 4.6 KB
firestream.c -rw-r--r-- 54.2 KB
firestream.h -rw-r--r-- 14.6 KB
fore200e.c -rw-r--r-- 88.3 KB
fore200e.h -rw-r--r-- 38.7 KB
he.c -rw-r--r-- 76.1 KB
he.h -rw-r--r-- 19.8 KB
horizon.c -rw-r--r-- 82.8 KB
horizon.h -rw-r--r-- 16.7 KB
idt77105.c -rw-r--r-- 11.3 KB
idt77105.h -rw-r--r-- 3.8 KB
idt77252.c -rw-r--r-- 89.6 KB
idt77252.h -rw-r--r-- 33.6 KB
idt77252_tables.h -rw-r--r-- 45.0 KB
iphase.c -rw-r--r-- 108.1 KB
iphase.h -rw-r--r-- 53.4 KB
lanai.c -rw-r--r-- 80.7 KB
midway.h -rw-r--r-- 7.6 KB
nicstar.c -rw-r--r-- 72.3 KB
nicstar.h -rw-r--r-- 22.9 KB
nicstarmac.c -rw-r--r-- 6.0 KB
nicstarmac.copyright -rw-r--r-- 2.7 KB
solos-attrlist.c -rw-r--r-- 2.3 KB
solos-pci.c -rw-r--r-- 39.3 KB
suni.c -rw-r--r-- 9.8 KB
suni.h -rw-r--r-- 9.8 KB
tonga.h -rw-r--r-- 733 bytes
uPD98401.h -rw-r--r-- 11.7 KB
uPD98402.c -rw-r--r-- 6.5 KB
uPD98402.h -rw-r--r-- 4.5 KB
zatm.c -rw-r--r-- 43.4 KB
zatm.h -rw-r--r-- 3.6 KB
zeprom.h -rw-r--r-- 983 bytes

back to top