From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-m15580.qiye.163.com (mail-m15580.qiye.163.com [101.71.155.80]) (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 CEEDA41324F for ; Thu, 22 Jan 2026 05:56:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=101.71.155.80 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769061396; cv=none; b=hhCZJCaugXpxAQ6/Y6RVEFU4kRDNzGT0ITmsTFc1gai6fZorJdG7YO9/STmQdhOJDyqewtSouK+uYrv0Z62udlmOWr+tOw1EY+jMpGFKAJAihleUHAN79sDYCI8qeNZjJGvRA0QtB+vCc9wVBNT2GBdC2+97CQOdZGYpmSYpBsI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769061396; c=relaxed/simple; bh=SRP36essbLoeI4l9FsWffwQZWAO0W3fdXx+cIqGhVVQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=A9H2PaHdRhahpKzNBdMjXpoQud+8IkUQwVYEBdFiRsBHl0kYH/p7OVZcjIsYWbaGsmBJegz8HvhTET9xrZuP6y8GRLF6xUCRVKzGkNWDHklFGZbl6NoevpiG2GzkfL5CvMX+LLwoieivRztz/m3CdlRQiPcopQY+AF5bunhKLKU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rock-chips.com; spf=pass smtp.mailfrom=rock-chips.com; dkim=pass (1024-bit key) header.d=rock-chips.com header.i=@rock-chips.com header.b=I92+oDEg; arc=none smtp.client-ip=101.71.155.80 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rock-chips.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rock-chips.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=rock-chips.com header.i=@rock-chips.com header.b="I92+oDEg" Received: from [127.0.0.1] (unknown [58.22.7.114]) by smtp.qiye.163.com (Hmail) with ESMTP id 318612bcb; Thu, 22 Jan 2026 10:27:15 +0800 (GMT+08:00) Message-ID: <8e770288-f29b-4e72-b5a6-e3cfd77b87fb@rock-chips.com> Date: Thu, 22 Jan 2026 10:27:13 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/6] Rockchip DRM use-after-free & null-ptr-deref fixes To: Cristian Ciocaltea Cc: Sandy Huang , =?UTF-8?Q?Heiko_St=C3=BCbner?= , Andy Yan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Dmitry Baryshkov , Dmitry Baryshkov , kernel@collabora.com, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org References: <20260122-drm-rk-fixes-v1-0-3942f185750e@collabora.com> Content-Language: en-US From: Chaoyi Chen In-Reply-To: <20260122-drm-rk-fixes-v1-0-3942f185750e@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-HM-Tid: 0a9be387049103abkunm77d59df1bb420 X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFDSUNOT01LS0k3V1ktWUFJV1kPCRoVCBIfWUFZGU9OTFZLSRgfSElLGkoaTUlWFRQJFh oXVRMBExYaEhckFA4PWVdZGBILWUFZTkNVSUlVTFVKSk9ZV1kWGg8SFR0UWUFZT0tIVUpLSU9PT0 hVSktLVUpCS0tZBg++ DKIM-Signature: a=rsa-sha256; b=I92+oDEgnhBj/xd19A1BnS+A6cqHFKTL38BIABnUxSdl1aNhq9t2J9vngMWKoJfjXkmkjLddbyv9G0fUmx2KjJg6a4Gdgq6zqv9BTh9pD64IuRiGOQ+4TdxbGOH5xX6gEvENNT3Vkulj7X1U8UA/rI4huZzfmJ2gIrurHe946ks=; c=relaxed/relaxed; s=default; d=rock-chips.com; v=1; bh=S49y2L4gD63j6L5j9pyo9jE88T6ardth6Lb6pcKfHeg=; h=date:mime-version:subject:message-id:from; Hi Cristian, On 1/22/2026 7:17 AM, Cristian Ciocaltea wrote: > The first three patches in the series are fixes for use-after-free & > null-ptr-deref related issues found in dw_dp and inno-hdmi Rockchip DRM > drivers. > Have you tried calling unbind() and bind() multiple times? In this case, can DRM still work properly? > The remaining ones provide a few minor improvements to dw_dp and > dw_hdmi_qp. > > Signed-off-by: Cristian Ciocaltea > --- > Cristian Ciocaltea (6): > drm/rockchip: inno-hdmi: Switch to drmm_kzalloc() > drm/rockchip: dw_dp: Switch to drmm_kzalloc() > drm/rockchip: dw_dp: Fix null-ptr-deref in dw_dp_remove() > drm/rockchip: dw_dp: Simplify error handling > drm/rockchip: dw_dp: Drop unnecessary #include > drm/rockchip: dw_hdmi_qp: Switch to drmm_encoder_init() > > drivers/gpu/drm/rockchip/dw_dp-rockchip.c | 35 ++++++++++---------------- > drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c | 13 +++++----- > drivers/gpu/drm/rockchip/inno_hdmi-rockchip.c | 3 ++- > 3 files changed, 21 insertions(+), 30 deletions(-) > --- > base-commit: 68b271a3a94cfd6c7695a96b6398b52feb89e2c2 > change-id: 20260122-drm-rk-fixes-a7622c71553e > > > > -- Best, Chaoyi