aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorMichal Srb <msrb@suse.com>2018-02-05 16:04:38 +0000
committerRodrigo Vivi <rodrigo.vivi@intel.com>2018-02-06 11:41:40 -0800
commitb3ad99ed45917f42884fee731fa3cf9b8229a26c (patch)
tree3656d717867d7a011efcd1bdeaff130ed27f49e2 /tools/perf/util/scripting-engines/trace-event-python.c
parentdrm/i915/cmdparser: Check reg_table_count before derefencing. (diff)
downloadwireguard-linux-b3ad99ed45917f42884fee731fa3cf9b8229a26c.tar.xz
wireguard-linux-b3ad99ed45917f42884fee731fa3cf9b8229a26c.zip
drm/i915/cmdparser: Do not check past the cmd length.
The command MEDIA_VFE_STATE checks bits at offset +2 dwords. However, it is possible to have MEDIA_VFE_STATE command with length = 0 + LENGTH_BIAS = 2. In that case check_cmd will read bits from the following command, or even past the end of the buffer. If the offset ends up outside of the command length, reject the command. Fixes: 351e3db2b363 ("drm/i915: Implement command buffer parsing logic") Signed-off-by: Michal Srb <msrb@suse.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180205151745.29292-1-msrb@suse.com Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20180205160438.3267-2-chris@chris-wilson.co.uk (cherry picked from commit 3aec7f871c65eb5f76b4125fda432593c834a6f2) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions