diff options
author | Mika Kuoppala <[email protected]> | 2020-08-17 22:59:26 +0300 |
---|---|---|
committer | Mika Kuoppala <[email protected]> | 2020-08-21 13:07:04 +0300 |
commit | 3b4efa148da36f158cce3f662e831af2834b8e0f (patch) | |
tree | d8560a517eaaa439d97a54e5719e579ce13aa599 /scripts/gen_compile_commands.py | |
parent | d24f1341a63cebdff22454a6464810e6f34030c6 (diff) |
drm/i915: Fix cmd parser desc matching with masks
Our variety of defined gpu commands have the actual
command id field and possibly length and flags applied.
We did start to apply the mask during initialization of
the cmd descriptors but forgot to also apply it on comparisons.
Fix comparisons in order to properly deny access with
associated commands.
v2: fix lri with correct mask (Chris)
References: 926abff21a8f ("drm/i915/cmdparser: Ignore Length operands during command matching")
Reported-by: Nicolai Stange <[email protected]>
Cc: [email protected] # v5.4+
Cc: Miroslav Benes <[email protected]>
Cc: Takashi Iwai <[email protected]>
Cc: Tyler Hicks <[email protected]>
Cc: Jon Bloomfield <[email protected]>
Cc: Chris Wilson <[email protected]>
Signed-off-by: Mika Kuoppala <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions