From: Abhinav Kumar <quic_abhinavk@quicinc.com>
To: Johan Hovold <johan@kernel.org>,
Douglas Anderson <dianders@chromium.org>,
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
Rob Clark <robdclark@gmail.com>
Cc: Andrzej Hajda <andrzej.hajda@intel.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Robert Foss <robert.foss@linaro.org>,
"Laurent Pinchart" <Laurent.pinchart@ideasonboard.com>,
Jonas Karlman <jonas@kwiboo.se>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Daniel Vetter <daniel@ffwll.ch>, Sean Paul <sean@poorly.run>,
Stephen Boyd <swboyd@chromium.org>,
Bjorn Andersson <andersson@kernel.org>,
"Manivannan Sadhasivam" <manivannan.sadhasivam@linaro.org>,
Kuogee Hsieh <quic_khsieh@quicinc.com>,
Steev Klimaszewski <steev@kali.org>,
<dri-devel@lists.freedesktop.org>,
<linux-arm-msm@vger.kernel.org>,
<freedreno@lists.freedesktop.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 00/10] drm/msm: probe deferral fixes
Date: Fri, 21 Oct 2022 09:05:52 -0700 [thread overview]
Message-ID: <139426b9-0e5b-e4c3-27c6-584ab48517c2@quicinc.com> (raw)
In-Reply-To: <Y1I77HYeOkx1fz1E@hovoldconsulting.com>
Hi Johan
On 10/20/2022 11:27 PM, Johan Hovold wrote:
> On Tue, Sep 20, 2022 at 11:06:30AM +0200, Johan Hovold wrote:
>> On Tue, Sep 13, 2022 at 10:53:10AM +0200, Johan Hovold wrote:
>>> The MSM DRM driver is currently broken in multiple ways with respect to
>>> probe deferral. Not only does the driver currently fail to probe again
>>> after a late deferral, but due to a related use-after-free bug this also
>>> triggers NULL-pointer dereferences.
>>>
>>> These bugs are not new but have become critical with the release of
>>> 5.19 where probe is deferred in case the aux-bus EP panel driver has not
>>> yet been loaded.
>>>
>>> The underlying problem is lifetime issues due to careless use of
>>> device-managed resources.
>>
>> Any chance of getting this merged for 6.1?
>
> Is anyone picking these up as fixes for 6.1-rc as we discussed?
>
> Johan
All of these except the last two ( as discussed ) have landed in the
-fixes tree
https://gitlab.freedesktop.org/drm/msm/-/commit/6808abdb33bf90330e70a687d29f038507e06ebb
Thanks
Abhinav
>
>>> Changes in v2
>>> - use a custom devres action instead of amending the AUX bus interface
>>> (Doug)
>>> - split sanity check fixes and cleanups per bridge type (Dmitry)
>>> - add another Fixes tag for the missing bridge counter reset (Dmitry)
>>>
>>>
>>> Johan Hovold (10):
>>> drm/msm: fix use-after-free on probe deferral
>>> drm/msm/dp: fix memory corruption with too many bridges
>>> drm/msm/dsi: fix memory corruption with too many bridges
>>> drm/msm/hdmi: fix memory corruption with too many bridges
>>> drm/msm/dp: fix IRQ lifetime
>>> drm/msm/dp: fix aux-bus EP lifetime
>>> drm/msm/dp: fix bridge lifetime
>>> drm/msm/hdmi: fix IRQ lifetime
>>> drm/msm/dp: drop modeset sanity checks
>>> drm/msm/dsi: drop modeset sanity checks
>>>
>>> drivers/gpu/drm/msm/dp/dp_display.c | 26 +++++++++++++++++++-------
>>> drivers/gpu/drm/msm/dp/dp_parser.c | 6 +++---
>>> drivers/gpu/drm/msm/dp/dp_parser.h | 5 +++--
>>> drivers/gpu/drm/msm/dsi/dsi.c | 9 +++++----
>>> drivers/gpu/drm/msm/hdmi/hdmi.c | 7 ++++++-
>>> drivers/gpu/drm/msm/msm_drv.c | 1 +
>>> 6 files changed, 37 insertions(+), 17 deletions(-)
next prev parent reply other threads:[~2022-10-21 16:06 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-13 8:53 Johan Hovold
2022-09-13 8:53 ` [PATCH v2 01/10] drm/msm: fix use-after-free on probe deferral Johan Hovold
2022-09-22 19:48 ` [Freedreno] " Kuogee Hsieh
2022-09-22 20:01 ` Kuogee Hsieh
2022-09-13 8:53 ` [PATCH v2 02/10] drm/msm/dp: fix memory corruption with too many bridges Johan Hovold
2022-09-22 19:51 ` [Freedreno] " Kuogee Hsieh
2022-09-22 19:54 ` Dmitry Baryshkov
2022-09-13 8:53 ` [PATCH v2 03/10] drm/msm/dsi: " Johan Hovold
2022-09-22 19:51 ` Kuogee Hsieh
2022-09-22 19:54 ` Dmitry Baryshkov
2022-09-13 8:53 ` [PATCH v2 04/10] drm/msm/hdmi: " Johan Hovold
2022-09-22 19:52 ` [Freedreno] " Kuogee Hsieh
2022-09-22 19:54 ` Dmitry Baryshkov
2022-09-13 8:53 ` [PATCH v2 05/10] drm/msm/dp: fix IRQ lifetime Johan Hovold
2022-09-22 19:54 ` [Freedreno] " Kuogee Hsieh
2022-09-13 8:53 ` [PATCH v2 06/10] drm/msm/dp: fix aux-bus EP lifetime Johan Hovold
2022-09-13 12:36 ` Doug Anderson
2022-09-13 8:53 ` [PATCH v2 07/10] drm/msm/dp: fix bridge lifetime Johan Hovold
2022-09-22 19:56 ` [Freedreno] " Kuogee Hsieh
2022-09-13 8:53 ` [PATCH v2 08/10] drm/msm/hdmi: fix IRQ lifetime Johan Hovold
2022-09-22 19:55 ` Kuogee Hsieh
2022-09-23 6:17 ` Johan Hovold
2022-09-13 8:53 ` [PATCH v2 09/10] drm/msm/dp: drop modeset sanity checks Johan Hovold
2022-09-22 19:57 ` Kuogee Hsieh
2022-09-26 18:17 ` Abhinav Kumar
2022-09-27 7:14 ` Johan Hovold
2022-09-27 18:42 ` Abhinav Kumar
2022-09-28 12:24 ` Johan Hovold
2022-09-28 15:33 ` Abhinav Kumar
2022-09-28 15:57 ` Johan Hovold
2022-09-13 8:53 ` [PATCH v2 10/10] drm/msm/dsi: " Johan Hovold
2022-09-22 19:58 ` [Freedreno] " Kuogee Hsieh
2022-09-26 18:21 ` Abhinav Kumar
2022-09-27 7:16 ` Johan Hovold
2022-09-27 18:44 ` Abhinav Kumar
2022-09-13 20:23 ` [PATCH v2 00/10] drm/msm: probe deferral fixes Steev Klimaszewski
2022-09-14 6:01 ` Johan Hovold
2022-09-16 16:43 ` Steev Klimaszewski
2022-09-20 9:06 ` Johan Hovold
2022-10-21 6:27 ` Johan Hovold
2022-10-21 16:05 ` Abhinav Kumar [this message]
2022-10-24 11:33 ` Johan Hovold
2022-10-24 15:01 ` Rob Clark
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=139426b9-0e5b-e4c3-27c6-584ab48517c2@quicinc.com \
--to=quic_abhinavk@quicinc.com \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=andersson@kernel.org \
--cc=andrzej.hajda@intel.com \
--cc=daniel@ffwll.ch \
--cc=dianders@chromium.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=jernej.skrabec@gmail.com \
--cc=johan@kernel.org \
--cc=jonas@kwiboo.se \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=neil.armstrong@linaro.org \
--cc=quic_khsieh@quicinc.com \
--cc=robdclark@gmail.com \
--cc=robert.foss@linaro.org \
--cc=sean@poorly.run \
--cc=steev@kali.org \
--cc=swboyd@chromium.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®