Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2183180rwi; Fri, 21 Oct 2022 00:17:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6T6YjQlYAE2LMW0Jg24lDLOEBhDncojjVIk+SmfzIAnG4z+E7owSbuCp6oEjIdaVgvvyia X-Received: by 2002:a17:907:2bef:b0:78d:8b6c:a20b with SMTP id gv47-20020a1709072bef00b0078d8b6ca20bmr14568775ejc.674.1666336679456; Fri, 21 Oct 2022 00:17:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666336679; cv=none; d=google.com; s=arc-20160816; b=yeH5snuzMinMnNk3RRkCZrEyZfPSnW2LVKWA+PhYHay3VGfx46FER3WP/g9K/wEXyC WK7xFKziHvboA2orMFnaEn6OhM/xX4WSg7wozsW5sUMkrrUslubWMu8kguktGdY6FPII 6TA0M5noiY19IKB8EWkJrFtM0k9TIIlT0VYw7VHJKQs9qgwcVf3s2LP5qs4aplijMZh4 RLO1Lv3/Es6sJlOdksVQmNrR76TaXpHorQMdV1N3K+aURJ5AE9SEYwNDXQfBQFoqR98Y KpAVWLGTPX5sBEvkaS6WqK2Gb+vDLaWw00OdGzepVcS0n7inF6k1SKra4k9NEPGW1G0j /TEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=C8TyVskBdDJGMgk+93GL/sTkJCf2K+nJgKbA81leNoU=; b=ajNIS4XleN8EFtaIHiPPxmxmnJ/tZBHpT92RqTqFn/P1a+2HIId5Ir4kiTobH4savx GMuKatVCoYP/f98k4CQFqRb6J5o2GiZMpQgeCE+CmbOsZCe5MACXlXoU+/tH0Ev+Uzaw QFAqJnuG3WpNVcMsjC2kq9z/Q3/CS2mzHC9DMLAJpQOMc+wi+jVpJSuhiYry8MdU7P5U zsDIFTzFWgE0+nzEJYu8mLOVEqcHr3mzUwFZxw94HmH4skWpJA5rdqY68Vua8FRyW8rN La9ERrGoko9Pw7FNlpjOYI4VXIiFtVms7qjsL6WgocYk63R9eoRUDcJhXCvdVUBueTW8 dTuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XejgPAxh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp35-20020a1709073e2300b00781d695b597si21908543ejc.473.2022.10.21.00.17.33; Fri, 21 Oct 2022 00:17:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XejgPAxh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230136AbiJUG2T (ORCPT + 99 others); Fri, 21 Oct 2022 02:28:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230134AbiJUG2O (ORCPT ); Fri, 21 Oct 2022 02:28:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 649B423B692; Thu, 20 Oct 2022 23:28:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 06D5761DB4; Fri, 21 Oct 2022 06:28:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50FB5C433B5; Fri, 21 Oct 2022 06:28:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666333691; bh=vki3SV9SSyngMAmDw2B3Z/Wta7lXrBwkYK2vC4dHXsE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XejgPAxhO/ZnuUjU7V4eEv8ZNsIq5EHgiZwVRaQg7SqALQHSOvn1pbEX1kK7Wl5nu MGEapxwGWcGFJrgPZ7Iuw78CLtoChPKaiP/lMrUFVDd3rncHXnFKFCbOB8O7sXTbYl xkuxrAie2iu9GeckYRe1o9gdhPQdfpZ99E6GVsNjXUwiRl9y2wHvPSz9FqetXSqkWm Vng1In4qGW2AkZFbrAXz7Ys9Ae+Px8E2gfRSAiTaL6nu7gPtMNgEeujdkSDeJfyZNX 3gkEKFh5qiMCoxHjBVB7e2tDpnnCRN4b6CQ0XYSsySd9WSFr/C+OZS1ECHqr+Tnplp fspZK3lJ2y3Ag== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1ollVc-0000lm-HY; Fri, 21 Oct 2022 08:27:57 +0200 Date: Fri, 21 Oct 2022 08:27:56 +0200 From: Johan Hovold To: Douglas Anderson , Dmitry Baryshkov , Rob Clark , Abhinav Kumar Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Daniel Vetter , Sean Paul , Stephen Boyd , Bjorn Andersson , Manivannan Sadhasivam , Kuogee Hsieh , Steev Klimaszewski , 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 Message-ID: References: <20220913085320.8577-1-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > 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(-)