From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-181.mta0.migadu.com (out-181.mta0.migadu.com [91.218.175.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 34EBE3596E1 for ; Mon, 27 Jul 2026 18:46:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785177981; cv=none; b=oECixnuewXY7RgC2/IUPCB7qY2WvQGF34t8cdbVHn3DuuDj/+U0SNMos/PNEVXCryvWcbIl7Q24Ub7C4phNXO5OFyvqHVjKGsppc2STOUKEKwFNBO4uAD48FrBuLUNTTC+uo31/3VLbkvteZvbWxTHm7tGoWfXG4dD6i81renk4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785177981; c=relaxed/simple; bh=Z/5pwo4klH/G5J4/WGhzTofwYGUJUpFmG7OVLRoY6CY=; h=Mime-Version:Content-Type:Date:Message-Id:To:Cc:Subject:From: References:In-Reply-To; b=qwwc35sBObY2o7BC6QbQtBOsU7CVv/k7UO7mOhCV12SDczD+ciAMR1yj7+njVeWO5GUxHbIVmGC6hk14j/Jxc7B0J49JX7wp0Pwk7lulNPjNxn9rO89470UPQYcpDotoRZ/K9Gan5Hdx4qoI7oI44vx/h2IuxgcjOO/TNKyJ58o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=cknow-tech.com; spf=pass smtp.mailfrom=cknow-tech.com; dkim=pass (2048-bit key) header.d=cknow-tech.com header.i=@cknow-tech.com header.b=Pstfw6IK; arc=none smtp.client-ip=91.218.175.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=cknow-tech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cknow-tech.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cknow-tech.com header.i=@cknow-tech.com header.b="Pstfw6IK" Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cknow-tech.com; s=key1; t=1785177974; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=s0wH+ySFfCBVmnBojBZaXIoCALe+k/ClNs6fjt/QIh0=; b=Pstfw6IK644jlNnRGZZRzPiUJEWtkwg3bh22GraX3/i7mt3gP1kE9IC1GsrEiZtN9HwtV0 MbmNO1kYDW2KbxEiOr9P49jzr3JFdam9Nv4GjjD4EnyoxMaeGntAA6aDHk6vcsi6R0udzB +qL9WEAdvH37Xa/JrZBO5IRJVCi2wuT6cT0F3vO1i/01J0QVy6duT66k2KWM33tHsZvYjQ IdWTyvdQr7nYV4CBGvN1dS+L/UTx/sY/MqpIXlJweYMZ4jPVhCOdsVHOTVktRuhWKjSlzx xk9gIo5Z9YB9UXA4kdjs/bbuTUWyR74sGlTMCREYyq4Bzestgaw3iD+MdtjkZw== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 27 Jul 2026 20:45:58 +0200 Message-Id: To: "Neil Armstrong" , "Jessica Zhang" , "Maarten Lankhorst" , "Maxime Ripard" , "Thomas Zimmermann" , "David Airlie" , "Simona Vetter" , "Andrzej Hajda" , "Robert Foss" , "Laurent Pinchart" , "Jonas Karlman" , "Jernej Skrabec" , "Luca Ceresoli" , "Inki Dae" , "Jagan Teki" , "Marek Szyprowski" , "Laurentiu Palcu" , "Lucas Stach" , "Frank Li" , "Sascha Hauer" , "Pengutronix Kernel Team" , "Fabio Estevam" , "Paul Cercueil" , "Linus Walleij" , "Marek Vasut" , "Stefan Agner" , "Tomi Valkeinen" , "Laurent Pinchart" , "Kieran Bingham" , "Geert Uytterhoeven" , "Magnus Damm" , "Biju Das" , "Sandy Huang" , =?utf-8?q?Heiko_St=C3=BCbner?= , "Andy Yan" , "Yannick Fertre" , "Raphael Gallais-Pou" , "Philippe Cornu" , "Maxime Coquelin" , "Alexandre Torgue" , "Chen-Yu Tsai" , "Samuel Holland" , "Jyri Sarha" , "Jingoo Han" , "Seung-Woo Kim" , "Kyungmin Park" , "Krzysztof Kozlowski" , "Peter Griffin" , "Alim Akhtar" , "Alison Wang" , "Paul Kocialkowski" , "Alain Volmat" , "Raphael Gallais-Pou" , "Thierry Reding" , "Mikko Perttunen" , "Jonathan Hunter" , "Albert Esteve" Cc: , , , , , , , , , , Subject: Re: [PATCH v3 0/4] drm/panel: refcounting panel lookups and references X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "Diederik de Haas" References: <20260717-drm_refcount_wiring-v3-0-023900c32e01@redhat.com> <178472247762.1745070.2847290153778032256.b4-ty@b4> In-Reply-To: <178472247762.1745070.2847290153778032256.b4-ty@b4> X-Migadu-Flow: FLOW_OUT On Wed Jul 22, 2026 at 2:15 PM CEST, Neil Armstrong wrote: > On Fri, 17 Jul 2026 16:02:03 +0200, Albert Esteve wrote: >> The drm_panel subsystem provides kref-based reference counting [1] >> (drm_panel_get/put) but almost nothing in the tree actually uses it. >> This results in a systemic use-after-free pattern throughout the codebas= e. >>=20 >> This series aims to close all those issues. >>=20 >> Patches 1-2: fix the infrastructure. drm_panel_add/remove now keep >> a counted reference for the list entry. drm_panel_bridge_add_typed() >> now holds a counted reference for the lifetime of the panel_bridge. >>=20 >> [...] > > Thanks, Applied to https://gitlab.freedesktop.org/drm/misc/kernel.git (dr= m-misc-next) > > [1/4] drm/panel: have drm_panel_add/remove manage a list reference > https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/61aebeadff4= 0cded27168e53406e0120ad66e114 > [2/4] drm/bridge/panel: hold a reference to the wrapped panel > https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/8f79d34ea89= 50fd825e0d6ecd713705a42f06417 > [3/4] drm/panel: of_drm_find_panel() return a counted reference > https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/b71a623598d= 319cae2acd9df1b297cc948c58bc7 > [4/4] drm/panel: find_panel_by_fwnode() return a counted reference > https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/ac3baea883d= ab989178dd4186090d6bcf52b8d55 That last commit resulted in an extra ``drm_panel.c.orig`` file which=20 wasn't part of the patch and seems incorrect? Cheers, Diederik