From: jsg Date: Tue, 28 Mar 2023 04:01:47 +0000 (+0000) Subject: drm/i915/sseu: fix max_subslices array-index-out-of-bounds access X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9e88da3ec8f1a5b67c0b8f380d0056e20caf42d2;p=openbsd drm/i915/sseu: fix max_subslices array-index-out-of-bounds access From Andrea Righi 1a1682abf7399318ac074b1f2ac6a8c992b5b3da in linux-6.1.y/6.1.21 193c41926d152761764894f46e23b53c00186a82 in mainline linux --- diff --git a/sys/dev/pci/drm/i915/gt/intel_sseu.h b/sys/dev/pci/drm/i915/gt/intel_sseu.h index aa87d3832d6..d7e8c374f15 100644 --- a/sys/dev/pci/drm/i915/gt/intel_sseu.h +++ b/sys/dev/pci/drm/i915/gt/intel_sseu.h @@ -27,7 +27,7 @@ struct drm_printer; * is only relevant to pre-Xe_HP platforms (Xe_HP and beyond use the * I915_MAX_SS_FUSE_BITS value below). */ -#define GEN_MAX_SS_PER_HSW_SLICE 6 +#define GEN_MAX_SS_PER_HSW_SLICE 8 /* * Maximum number of 32-bit registers used by hardware to express the