android_kernel_sony_sdm845/include
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kees Cook 791e53fcc7 UPSTREAM: list: Split list_add() debug checking into separate function
(cherry-picked from d7c816733d501b59dbdc2483f2cc8e4431fd9160)

Right now, __list_add() code is repeated either in list.h or in
list_debug.c, but the only differences between the two versions
are the debug checks. This commit therefore extracts these debug
checks into a separate __list_add_valid() function and consolidates
__list_add(). Additionally this new __list_add_valid() function will stop
list manipulations if a corruption is detected, instead of allowing for
further corruption that may lead to even worse conditions.

This is slight refactoring of the same hardening done in PaX and Grsecurity.

Change-Id: I654bc0aef2ca7a8ce57d1ed1683138c44a414a15
Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Satya Tangirala <satyat@google.com>
2018-09-21 15:08:29 -07:00
..
acpi ACPICA: OSL: Add support to exclude stdarg.h 2018-04-13 19:48:28 +02:00
asm-generic This is the 4.9.121 stable release 2018-08-17 21:31:08 +02:00
clocksource
crypto This is the 4.9.121 stable release 2018-08-17 21:31:08 +02:00
drm This is the 4.9.117 stable release 2018-08-03 08:50:05 +02:00
dt-bindings dt-bindings: clock: mediatek: add binding for fixed-factor clock axisel_d4 2018-04-24 09:34:14 +02:00
keys f2fs: catch up to v4.14-rc1 2017-10-13 11:27:08 +00:00
kvm arm/arm64: KVM: Add PSCI version selection API 2018-05-09 09:50:19 +02:00
linux UPSTREAM: list: Split list_add() debug checking into separate function 2018-09-21 15:08:29 -07:00
math-emu
media
memory
misc
net This is the 4.9.124 stable release 2018-08-24 13:23:30 +02:00
pcmcia
ras
rdma IB/core: Make testing MR flags for writability a static inline function 2018-08-15 18:14:43 +02:00
rxrpc
scsi scsi: sg: disable SET_FORCE_LOW_DMA 2018-01-23 19:57:04 +01:00
soc memory: tegra: Apply interrupts mask per SoC 2018-08-03 07:55:24 +02:00
sound ALSA: control: Hardening for potential Spectre v1 2018-05-01 15:13:06 -07:00
target target: Avoid early CMD_T_PRE_EXECUTE failures during ABORT_TASK 2018-01-17 09:38:54 +01:00
trace This is the 4.9.104 stable release 2018-05-30 13:19:56 +02:00
uapi FROMLIST: ANDROID: binder: Add BINDER_GET_NODE_INFO_FOR_REF ioctl. 2018-09-20 09:38:22 +00:00
video udlfb: set optimal write delay 2018-09-09 20:01:25 +02:00
xen swiotlb-xen: implement xen_swiotlb_dma_mmap callback 2017-10-05 09:44:05 +02:00
Kbuild