lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Mon, 16 May 2016 10:34:06 -0400
From:	Alex Deucher <alexdeucher@...il.com>
To:	Heloise NH <os@...as.ac.cn>
Cc:	"Deucher, Alexander" <alexander.deucher@....com>,
	Christian Koenig <christian.koenig@....com>,
	Dave Airlie <airlied@...ux.ie>,
	LKML <linux-kernel@...r.kernel.org>,
	Maling list - DRI developers 
	<dri-devel@...ts.freedesktop.org>
Subject: Re: [PATCH] gpu:drm:radeon:fix array out fo bouds

On Mon, May 16, 2016 at 12:58 AM, Heloise NH <os@...as.ac.cn> wrote:
> From: tom will <os@...as.ac.cn>
>
> When the initial value of i is greater than zero,
> it may cause endless loop, resulting in array out
> of bouds, fix it.
>
> Signed-off-by: tom will <os@...as.ac.cn>

Applied to both radeon and amgpu.

Thanks!

Alex

> ---
>  drivers/gpu/drm/radeon/kv_dpm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/radeon/kv_dpm.c b/drivers/gpu/drm/radeon/kv_dpm.c
> index d024074..a7e9786 100644
> --- a/drivers/gpu/drm/radeon/kv_dpm.c
> +++ b/drivers/gpu/drm/radeon/kv_dpm.c
> @@ -2164,7 +2164,7 @@ static void kv_apply_state_adjust_rules(struct radeon_device *rdev,
>         if (pi->caps_stable_p_state) {
>                 stable_p_state_sclk = (max_limits->sclk * 75) / 100;
>
> -               for (i = table->count - 1; i >= 0; i++) {
> +               for (i = table->count - 1; i >= 0; i--) {
>                         if (stable_p_state_sclk >= table->entries[i].clk) {
>                                 stable_p_state_sclk = table->entries[i].clk;
>                                 break;
> --
> 2.1.0
>
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@...ts.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ