]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: fix TLB invalidation for Gen12 video and compute engines
authorAndrzej Hajda <andrzej.hajda@intel.com>
Mon, 14 Nov 2022 10:38:24 +0000 (11:38 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Nov 2022 16:44:00 +0000 (08:44 -0800)
commit550c0f615f5c23d1f37e2741b6bbe66c02001c43
treeedf677f29dd9a9eae66a7ac0ce57562354c780f7
parentda9a01153aa8043041277548b29b72faf1d78367
drm/i915: fix TLB invalidation for Gen12 video and compute engines

In case of Gen12 video and compute engines, TLB_INV registers are masked -
to modify one bit, corresponding bit in upper half of the register must
be enabled, otherwise nothing happens.

CVE: CVE-2022-4139
Suggested-by: Chris Wilson <chris.p.wilson@intel.com>
Signed-off-by: Andrzej Hajda <andrzej.hajda@intel.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Fixes: 2947b9324e2f ("drm/i915: Flush TLBs before releasing backing store")
Cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpu/drm/i915/gt/intel_gt.c