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
dwc
endpoint
host
hotplug
pcie
switch
Kconfig -rw-r--r-- 3.8 KB
Makefile -rw-r--r-- 1.3 KB
access.c -rw-r--r-- 22.7 KB
ats.c -rw-r--r-- 8.8 KB
bus.c -rw-r--r-- 10.3 KB
ecam.c -rw-r--r-- 4.5 KB
host-bridge.c -rw-r--r-- 2.3 KB
hotplug-pci.c -rw-r--r-- 702 bytes
htirq.c -rw-r--r-- 3.6 KB
iov.c -rw-r--r-- 18.3 KB
irq.c -rw-r--r-- 3.8 KB
mmap.c -rw-r--r-- 2.8 KB
msi.c -rw-r--r-- 38.3 KB
of.c -rw-r--r-- 2.1 KB
pci-acpi.c -rw-r--r-- 21.3 KB
pci-driver.c -rw-r--r-- 35.8 KB
pci-label.c -rw-r--r-- 7.3 KB
pci-mid.c -rw-r--r-- 1.8 KB
pci-stub.c -rw-r--r-- 2.4 KB
pci-sysfs.c -rw-r--r-- 43.6 KB
pci.c -rw-r--r-- 143.7 KB
pci.h -rw-r--r-- 11.4 KB
probe.c -rw-r--r-- 69.2 KB
proc.c -rw-r--r-- 9.6 KB
quirks.c -rw-r--r-- 170.4 KB
remove.c -rw-r--r-- 3.7 KB
rom.c -rw-r--r-- 5.5 KB
search.c -rw-r--r-- 12.2 KB
setup-bus.c -rw-r--r-- 51.0 KB
setup-irq.c -rw-r--r-- 1.6 KB
setup-res.c -rw-r--r-- 11.5 KB
slot.c -rw-r--r-- 10.5 KB
syscall.c -rw-r--r-- 2.7 KB
vc.c -rw-r--r-- 12.2 KB
vpd.c -rw-r--r-- 1.2 KB
xen-pcifront.c -rw-r--r-- 27.4 KB

back to top