[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CADnq5_MsNtgObTgUWNQkS6EsHhXwVyi8EYROdhyvVin8YMsq5Q@mail.gmail.com>
Date: Fri, 21 Mar 2025 09:40:14 -0400
From: Alex Deucher <alexdeucher@...il.com>
To: Denis Arefev <arefev@...mel.ru>
Cc: Kenneth Feng <kenneth.feng@....com>, Alex Deucher <alexander.deucher@....com>,
Christian König <christian.koenig@....com>,
David Airlie <airlied@...il.com>, Simona Vetter <simona@...ll.ch>, Lijo Lazar <lijo.lazar@....com>,
Ma Jun <Jun.Ma2@....com>, Mario Limonciello <mario.limonciello@....com>,
Srinivasan Shanmugam <srinivasan.shanmugam@....com>, Yang Wang <kevinyang.wang@....com>,
amd-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org, lvc-project@...uxtesting.org
Subject: Re: [PATCH 0/5] drm/amd/pm: Prevent division by zero
On Fri, Mar 21, 2025 at 6:53 AM Denis Arefev <arefev@...mel.ru> wrote:
>
> This series of patches prevents possible division by zero.
>
> The user can set any speed value.
> If speed is greater than UINT_MAX/8, division by zero is possible.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
Applied the series. Thanks!
Alex
>
> Denis Arefev (5):
> drm/amd/pm: Prevent division by zero
> drm/amd/pm: Prevent division by zero
> drm/amd/pm: Prevent division by zero
> drm/amd/pm: Prevent division by zero
> drm/amd/pm: Prevent division by zero
>
> drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_thermal.c | 6 +++---
> drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_thermal.c | 4 ++--
> drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_thermal.c | 2 +-
> drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c | 3 +++
> drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 2 +-
> 5 files changed, 10 insertions(+), 7 deletions(-)
>
> I did not change these files, because the functions you are
> interested in are not used there for a long time.
> drivers/gpu/drm/radeon/si_dpm.c
> drivers/gpu/drm/radeon/ci_dpm.c
>
> --
> 2.43.0
>
Powered by blists - more mailing lists