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
Kconfig -rw-r--r-- 5.0 KB
Makefile -rw-r--r-- 1.0 KB
devres.c -rw-r--r-- 7.7 KB
extcon-adc-jack.c -rw-r--r-- 5.5 KB
extcon-arizona.c -rw-r--r-- 44.9 KB
extcon-axp288.c -rw-r--r-- 9.1 KB
extcon-gpio.c -rw-r--r-- 4.5 KB
extcon-intel-cht-wc.c -rw-r--r-- 11.0 KB
extcon-intel-int3496.c -rw-r--r-- 5.2 KB
extcon-max14577.c -rw-r--r-- 21.4 KB
extcon-max3355.c -rw-r--r-- 3.6 KB
extcon-max77693.c -rw-r--r-- 36.5 KB
extcon-max77843.c -rw-r--r-- 24.2 KB
extcon-max8997.c -rw-r--r-- 20.3 KB
extcon-palmas.c -rw-r--r-- 13.6 KB
extcon-qcom-spmi-misc.c -rw-r--r-- 4.2 KB
extcon-rt8973a.c -rw-r--r-- 19.0 KB
extcon-rt8973a.h -rw-r--r-- 8.1 KB
extcon-sm5502.c -rw-r--r-- 19.1 KB
extcon-sm5502.h -rw-r--r-- 10.9 KB
extcon-usb-gpio.c -rw-r--r-- 7.9 KB
extcon-usbc-cros-ec.c -rw-r--r-- 10.3 KB
extcon.c -rw-r--r-- 35.6 KB
extcon.h -rw-r--r-- 2.5 KB

back to top