aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/acp
diff options
context:
space:
mode:
authorAnson Jacob <Anson.Jacob@amd.com>2021-03-03 12:33:15 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-05-11 14:47:25 +0200
commit1874b0ef1426b873de94c61861e38f29a8df714c (patch)
treef5046eca44f65314c8bde675053a36beaffe6f11 /drivers/gpu/drm/amd/acp
parent7b3eb98a3ef464d7da7dd471c63514acf4ee225d (diff)
downloadkernel_replicant_linux-1874b0ef1426b873de94c61861e38f29a8df714c.tar.gz
kernel_replicant_linux-1874b0ef1426b873de94c61861e38f29a8df714c.tar.bz2
kernel_replicant_linux-1874b0ef1426b873de94c61861e38f29a8df714c.zip
drm/amdkfd: Fix UBSAN shift-out-of-bounds warning
[ Upstream commit 50e2fc36e72d4ad672032ebf646cecb48656efe0 ] If get_num_sdma_queues or get_num_xgmi_sdma_queues is 0, we end up doing a shift operation where the number of bits shifted equals number of bits in the operand. This behaviour is undefined. Set num_sdma_queues or num_xgmi_sdma_queues to ULLONG_MAX, if the count is >= number of bits in the operand. Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1472 Reported-by: Lyude Paul <lyude@redhat.com> Signed-off-by: Anson Jacob <Anson.Jacob@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Tested-by: Lyude Paul <lyude@redhat.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/acp')
0 files changed, 0 insertions, 0 deletions