aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2025-06-16 16:08:41 +0000
committerAlex Deucher <[email protected]>2025-06-24 14:39:24 +0000
commit6847b3b6e84ef37451c074e6a8db3fbd250c8dbf (patch)
tree4612209918f2bf10367a692c2c4b247486c7a068 /lib/crypto/mpi/mpi-cmp.c
parentdrm/amd/display: Fix AMDGPU_MAX_BL_LEVEL value (diff)
downloadkernel-6847b3b6e84ef37451c074e6a8db3fbd250c8dbf.tar.gz
kernel-6847b3b6e84ef37451c074e6a8db3fbd250c8dbf.zip
drm/amd/display: Add sanity checks for drm_edid_raw()
When EDID is retrieved via drm_edid_raw(), it doesn't guarantee to return proper EDID bytes the caller wants: it may be either NULL (that leads to an Oops) or with too long bytes over the fixed size raw_edid array (that may lead to memory corruption). The latter was reported actually when connected with a bad adapter. Add sanity checks for drm_edid_raw() to address the above corner cases, and return EDID_BAD_INPUT accordingly. Fixes: 48edb2a4256e ("drm/amd/display: switch amdgpu_dm_connector to use struct drm_edid") Link: https://bugzilla.suse.com/show_bug.cgi?id=1236415 Signed-off-by: Takashi Iwai <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit 648d3f4d209725d51900d6a3ed46b7b600140cdf) Cc: [email protected]
Diffstat (limited to 'lib/crypto/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions