2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-05 20:24:09 +08:00
linux-next/drivers/hwtracing/stm
Alexander Shishkin f08b18266c stm class: Prevent user-controllable allocations
Currently, the character device write method allocates a temporary buffer
for user's data, but the user's data size is not sanitized and can cause
arbitrarily large allocations via kzalloc() or an integer overflow that
will then result in overwriting kernel memory.

This patch trims the input buffer size to avoid these issues.

Reported-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-02-07 22:43:17 -08:00
..
console.c stm class: stm_console: Add kernel-console-over-stm driver 2015-10-04 20:28:58 +01:00
core.c stm class: Prevent user-controllable allocations 2016-02-07 22:43:17 -08:00
dummy_stm.c
Kconfig stm class: Select CONFIG_SRCU 2016-02-07 22:43:17 -08:00
Makefile stm class: stm_console: Add kernel-console-over-stm driver 2015-10-04 20:28:58 +01:00
policy.c stm class: Fix locking in unbinding policy path 2016-02-07 22:43:17 -08:00
stm.h stm class: Fix link list locking 2016-02-07 22:43:17 -08:00