summaryrefslogtreecommitdiffstats
path: root/drivers/hwtracing/intel_th
diff options
context:
space:
mode:
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>2015-12-22 16:25:21 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-08 07:43:17 +0100
commitf08b18266c7116e2ec6885dd53a928f580060a71 (patch)
tree90487bb127914a64084190520a3517f1d5137150 /drivers/hwtracing/intel_th
parentstm class: Fix an off-by-one in master array allocation (diff)
downloadlinux-f08b18266c7116e2ec6885dd53a928f580060a71.tar.xz
linux-f08b18266c7116e2ec6885dd53a928f580060a71.zip
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>
Diffstat (limited to 'drivers/hwtracing/intel_th')
0 files changed, 0 insertions, 0 deletions