diff options
author | Mika Kuoppala <mika.kuoppala@linux.intel.com> | 2020-08-17 21:59:26 +0200 |
---|---|---|
committer | Mika Kuoppala <mika.kuoppala@linux.intel.com> | 2020-08-21 12:07:04 +0200 |
commit | 3b4efa148da36f158cce3f662e831af2834b8e0f (patch) | |
tree | d8560a517eaaa439d97a54e5719e579ce13aa599 /drivers/usb/storage/unusual_devs.h | |
parent | drm/i915: Apply Wa_14011264657:gen11+ (diff) | |
download | linux-3b4efa148da36f158cce3f662e831af2834b8e0f.tar.xz linux-3b4efa148da36f158cce3f662e831af2834b8e0f.zip |
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 <nstange@suse.de>
Cc: stable@vger.kernel.org # v5.4+
Cc: Miroslav Benes <mbenes@suse.cz>
Cc: Takashi Iwai <tiwai@suse.de>
Cc: Tyler Hicks <tyhicks@canonical.com>
Cc: Jon Bloomfield <jon.bloomfield@intel.com>
Cc: Chris Wilson <chris.p.wilson@intel.com>
Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200817195926.12671-1-mika.kuoppala@linux.intel.com
Diffstat (limited to 'drivers/usb/storage/unusual_devs.h')
0 files changed, 0 insertions, 0 deletions