public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Ajay Kaher <ajay.kaher@broadcom.com>
Cc: stable@vger.kernel.org, alexey.makhalov@broadcom.com,
	vasavi.sirnapalli@broadcom.com, "Tao Zhou" <tao.zhou1@amd.com>,
	"Hawking Zhang" <Hawking.Zhang@amd.com>,
	"Christian König" <christian.koenig@amd.com>,
	"Alex Deucher" <alexander.deucher@amd.com>,
	"Srinivasan Shanmugam" <srinivasan.shanmugam@amd.com>
Subject: Re: [PATCH v5.10, v5.4] drm/amdgpu: Fix possible NULL dereference in amdgpu_ras_query_error_status_helper()
Date: Thu, 23 May 2024 14:06:05 +0200	[thread overview]
Message-ID: <2024052358-unleash-thieving-86f8@gregkh> (raw)
In-Reply-To: <1716294141-48647-1-git-send-email-ajay.kaher@broadcom.com>

On Tue, May 21, 2024 at 05:52:19PM +0530, Ajay Kaher wrote:
> From: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
> 
> [ Upstream commit b8d55a90fd55b767c25687747e2b24abd1ef8680 ]
> 
> Return invalid error code -EINVAL for invalid block id.
> 
> Fixes the below:
> 
> drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:1183 amdgpu_ras_query_error_status_helper() error: we previously assumed 'info' could be null (see line 1176)
> 
> Suggested-by: Hawking Zhang <Hawking.Zhang@amd.com>
> Cc: Tao Zhou <tao.zhou1@amd.com>
> Cc: Hawking Zhang <Hawking.Zhang@amd.com>
> Cc: Christian König <christian.koenig@amd.com>
> Cc: Alex Deucher <alexander.deucher@amd.com>
> Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> [Ajay: applied AMDGPU_RAS_BLOCK_COUNT condition to amdgpu_ras_error_query()
>        as amdgpu_ras_query_error_status_helper() not present in v5.10, v5.4
>        amdgpu_ras_query_error_status_helper() was introduced in 8cc0f5669eb6]
> Signed-off-by: Ajay Kaher <ajay.kaher@broadcom.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 3 +++
>  1 file changed, 3 insertions(+)

All now queued up, thanks.

greg k-h

      parent reply	other threads:[~2024-05-23 12:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-21 12:22 [PATCH v5.10, v5.4] drm/amdgpu: Fix possible NULL dereference in amdgpu_ras_query_error_status_helper() Ajay Kaher
2024-05-21 12:22 ` [PATCH v5.15] drm/amdgpu: Fix possible NULL dereference in amdgpu_ras_query_error_status_helper Ajay Kaher
2024-05-21 12:22 ` [PATCH v6.6, v6.1] drm/amdgpu: Fix possible NULL dereference in amdgpu_ras_query_error_status_helper() Ajay Kaher
2024-05-23 12:06 ` Greg KH [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2024052358-unleash-thieving-86f8@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=Hawking.Zhang@amd.com \
    --cc=ajay.kaher@broadcom.com \
    --cc=alexander.deucher@amd.com \
    --cc=alexey.makhalov@broadcom.com \
    --cc=christian.koenig@amd.com \
    --cc=srinivasan.shanmugam@amd.com \
    --cc=stable@vger.kernel.org \
    --cc=tao.zhou1@amd.com \
    --cc=vasavi.sirnapalli@broadcom.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox