From: Sam Ravnborg <sam@ravnborg.org>
To: Alisa Khabibrakhmanova <khabibrakhmanova@ispras.ru>
Cc: David Airlie <airlied@linux.ie>,
ldv-project@linuxtesting.org, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drm/via: Add new condition to via_dma_cleanup()
Date: Tue, 26 Jul 2022 19:23:26 +0200 [thread overview]
Message-ID: <YuAjDvYey1hhI1AJ@ravnborg.org> (raw)
In-Reply-To: <20220725104555.124044-1-khabibrakhmanova@ispras.ru>
Hi Alisa,
On Mon, Jul 25, 2022 at 01:45:55PM +0300, Alisa Khabibrakhmanova wrote:
> Pointer dev_priv->mmio, which was checked for NULL at via_do_init_map(),
> is passed to via_do_cleanup_map() and is dereferenced there without check.
>
> The patch adds the condition in via_dma_cleanup() which prevents potential NULL
> pointer dereference.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> Fixes: 22f579c621e2 ("drm: Add via unichrome support")
> Signed-off-by: Alisa Khabibrakhmanova <khabibrakhmanova@ispras.ru>
Thanks for your patch. Due to other changes in drm-misc where we
maintain the via driver this patch fails to apply.
It would be great if you could redo the patch after -rc2 - on top of
-next. Then we can apply it to drm-misc.
You will see that the individual files for the driver is merged to a
single file, and this change does not hit -next until later.
Sam
WARNING: multiple messages have this Message-ID (diff)
From: Sam Ravnborg <sam@ravnborg.org>
To: Alisa Khabibrakhmanova <khabibrakhmanova@ispras.ru>
Cc: David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>,
ldv-project@linuxtesting.org, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/via: Add new condition to via_dma_cleanup()
Date: Tue, 26 Jul 2022 19:23:26 +0200 [thread overview]
Message-ID: <YuAjDvYey1hhI1AJ@ravnborg.org> (raw)
In-Reply-To: <20220725104555.124044-1-khabibrakhmanova@ispras.ru>
Hi Alisa,
On Mon, Jul 25, 2022 at 01:45:55PM +0300, Alisa Khabibrakhmanova wrote:
> Pointer dev_priv->mmio, which was checked for NULL at via_do_init_map(),
> is passed to via_do_cleanup_map() and is dereferenced there without check.
>
> The patch adds the condition in via_dma_cleanup() which prevents potential NULL
> pointer dereference.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> Fixes: 22f579c621e2 ("drm: Add via unichrome support")
> Signed-off-by: Alisa Khabibrakhmanova <khabibrakhmanova@ispras.ru>
Thanks for your patch. Due to other changes in drm-misc where we
maintain the via driver this patch fails to apply.
It would be great if you could redo the patch after -rc2 - on top of
-next. Then we can apply it to drm-misc.
You will see that the individual files for the driver is merged to a
single file, and this change does not hit -next until later.
Sam
next prev parent reply other threads:[~2022-07-26 17:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-25 10:45 [PATCH] drm/via: Add new condition to via_dma_cleanup() Alisa Khabibrakhmanova
2022-07-25 10:45 ` Alisa Khabibrakhmanova
2022-07-26 17:23 ` Sam Ravnborg [this message]
2022-07-26 17:23 ` Sam Ravnborg
2022-07-29 9:06 ` Alisa Khabibrakhmanova
2022-07-29 9:06 ` Alisa Khabibrakhmanova
2022-09-06 19:25 ` Daniel Vetter
2022-09-06 19:25 ` Daniel Vetter
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=YuAjDvYey1hhI1AJ@ravnborg.org \
--to=sam@ravnborg.org \
--cc=airlied@linux.ie \
--cc=dri-devel@lists.freedesktop.org \
--cc=khabibrakhmanova@ispras.ru \
--cc=ldv-project@linuxtesting.org \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.