summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2014-04-24 16:55:35 +0930
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-04-28 13:08:48 +1000
commit85390378f0a6abf3bdb10c3d504d77862a2d0ec9 (patch)
treef4b8f3bec96478f6a5ce0dae9ea0b9ce8ce9b504 /tools/perf/util/scripting-engines/trace-event-perl.c
parentb8569d230416c490065098684adf13c1751cb830 (diff)
powerpc/powernv: Check sysfs size before copying
The sysparam code currently uses the userspace supplied number of bytes when memcpy()ing in to a local 64-byte buffer. Limit the maximum number of bytes by the size of the buffer. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions