diff options
| author | Matthew Auld <[email protected]> | 2020-03-06 09:47:35 +0000 |
|---|---|---|
| committer | Chris Wilson <[email protected]> | 2020-03-06 13:15:49 +0000 |
| commit | 520f8350364dc0f1cfcb82360f9e22400dd7887d (patch) | |
| tree | a300a459ce5b953e61ee999e062d846d381c462b /scripts/gdb/linux/clk.py | |
| parent | ef398881d27dd6cb43f5f353f282135e5168d6bb (diff) | |
drm/i915: properly sanity check batch_start_offset
Check the edge case where batch_start_offset sits exactly on the batch
size.
v2: add new range_overflows variant to capture the special case where
the size is permitted to be zero, like with batch_len.
v3: other way around. the common case is the exclusive one which should
just be >=, with that we then just need to convert the three odd ball
cases that don't apply to use the new inclusive _end version.
Testcase: igt/gem_exec_params/invalid-batch-start-offset
Fixes: 0b5372727be3 ("drm/i915/cmdparser: Use cached vmappings")
Signed-off-by: Matthew Auld <[email protected]>
Cc: Mika Kuoppala <[email protected]>
Cc: Chris Wilson <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/gdb/linux/clk.py')
0 files changed, 0 insertions, 0 deletions