From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F1B21EEC2AC for ; Mon, 23 Feb 2026 23:32:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4B52A10E461; Mon, 23 Feb 2026 23:32:00 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.b="jV3LT70c"; dkim=pass (2048-bit key; unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="DAM57+ma"; dkim-atps=neutral Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2540610E461 for ; Mon, 23 Feb 2026 23:31:58 +0000 (UTC) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 61NIESpm3698607 for ; Mon, 23 Feb 2026 23:31:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= pcXNny12eVUei3+MwxRw80MUcAUX1Es/wkupl6bpnH0=; b=jV3LT70cFUxj/uMr 8Ey/Xh2rL+iNxA+GPFKTaTLCnRZFL8R/2gzGZm6YwljL0ZdmR7+R56p4Hi6oGrqT 8LXJg/u1AeFul6Xa2xMBrrOZf+LNL5QGbinBOlQCie7oQyaQzlPfqkY96xghSOoT 14FEtvpo289C3O7tX0Y8l2KvDlULEGl19LPAGNsYaUd4kE/l5c4Fx+AJwLKf37Mn d6Cx0LDY7Z8NDV6P2NU5dsbJdtCns4PBnvXjQAmRq8W/SgGyS4nTfcCBaXp2ApXK 73A32INRXWd44YuxzXwudyZjKEHkBQlV0cpsQlMptRnnk4I1yaS+Ppct50SSfqh0 I6kHGA== Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4cgn81a7w7-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 23 Feb 2026 23:31:57 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-8cb6291d95aso3420294885a.1 for ; Mon, 23 Feb 2026 15:31:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1771889517; x=1772494317; darn=lists.freedesktop.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=pcXNny12eVUei3+MwxRw80MUcAUX1Es/wkupl6bpnH0=; b=DAM57+ma+peUdovQzi4qf4jSNinbke+jS1gtO2P8o3I/qwKuwA5VY08kYxi+2BuJl8 nxSAgHmqw403F24vq8O0Hqz1S+MkqZuImeuHWPjz4JK3OTOdR9tguzpuYhm/qiBr5VfS ijEio5SFTCdrJRWQvlfldU8wXK92pI3vCgcqJwucmH74T17au91iTH/FHdXLsEnWPL48 9rdP4PQhRkYSOo9X8demKCAmeWSTlgA4+J8AfmPfo5hIDdAHx7kRyROocKXXMmsEB4V0 XRiuJBOE1cYFsv8LL/9Rs13r8MCoOMXTJtKX4hOkwWQ0ec2sWZlxrbaYM+x3ZSvWJveI Lksg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771889517; x=1772494317; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pcXNny12eVUei3+MwxRw80MUcAUX1Es/wkupl6bpnH0=; b=CxJ9mhROS/SAaynVtc6Ihhefe4Ob5NpaFnEDY7AEDb2/qLvRj3TjYBketLw+eWF/rQ Fj4weoaX29FC7EvcWbebrCXKQOWCVn8ug5VWv5VtmiasPngICpjJ3DpuQQ00/oG+s2jr 90dQXAZuhnUET+Kju8/kkQdpK+iPRUrhO+xL4jwqtBrVXUQgnFcGkc7MVyJJJDJIzCpC gUkapkshE+VLz0ApfRrbkc9iGuLE0KcJCnC0prx2F+Fg0kZ1ld4q2577k/V8BHLTYxdZ QIxsYVsrGVDCfR6b//3F2y6xYYwfsVX7K8ORKO/KdDWtQFqQyqqYzvJMtnIMrpTiL5PP xo6Q== X-Forwarded-Encrypted: i=1; AJvYcCWZ28SbfBpdQOYZArxNig+wuZWGk+TLh7luDrdBWb2U7G2RZ7PVJp2mkoHM7lm0pkJlnW473g26saM=@lists.freedesktop.org X-Gm-Message-State: AOJu0Ywho0YoF+yXCzpQm4dEXoDRYNYiwaEs8CWRJ9ZAxxcAJ/wj8Wf1 E3uNd/anxVzWHVMAorJOYmoTnboqzTpUIa1b+fA7vAa293mz2QLzd+zAQZIp2RTygmTBMYNUqMN 1dlAdTc6RBVNdBvK4Mk8h8jZhyaxIN3e1eQRjWGYd83ClkG0Ku1/BwXAIo5Bxjt7N34C8Ti0= X-Gm-Gg: AZuq6aIBRLrCMhIyLBksk2a/sLP7U2Dr6A3GrQvjVXYkPXUamJ+F42MP7GUUMJJYDrS ZEedYqJO8T7f/8mimM+p/VIO0X2oYvAxTERfAPLewcQAh190kwRCAtqi0DHVUMEYsI9Eywt5Vca Fsz2sH0NPY3zkvwDCfizcQ+izuD4szkpe0oGCN+gxX9h3IIXyHptdWxq5mLTQeHNZ0kMH+FWfy6 3JQxeHDmS0VIjGSCHRdIOs2gqPFf/05VkYZoH/7Ft60gH8aJR8c3nu22leovhjxlzCDz2tN0vtr F4TAhwLL83YFIg1Sh8pO46/ubnYwmShp5GOtefU5j1RKRjv9GShwl6yP1bJ0F3P61vE4V6ELS9A NbxdmNpnBoSgEuDwD7vSg61LRt/nTZKUwZIBZNv5t6h2CoyNnc4Wt/b/6Zm8d76d51pknbWhH6C cL8K3PrfiTfQzOTs1/CUpPG8+a0ajsELXziC4= X-Received: by 2002:a05:620a:8412:b0:8ca:105a:f5d1 with SMTP id af79cd13be357-8cb8ca0a6ddmr1049864285a.30.1771889516518; Mon, 23 Feb 2026 15:31:56 -0800 (PST) X-Received: by 2002:a05:620a:8412:b0:8ca:105a:f5d1 with SMTP id af79cd13be357-8cb8ca0a6ddmr1049860585a.30.1771889515893; Mon, 23 Feb 2026 15:31:55 -0800 (PST) Received: from umbar.lan (2001-14ba-a073-af00-264b-feff-fe8b-be8a.rev.dnainternet.fi. [2001:14ba:a073:af00:264b:feff:fe8b:be8a]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5a0eeb0b8f0sm1809097e87.14.2026.02.23.15.31.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Feb 2026 15:31:54 -0800 (PST) Date: Tue, 24 Feb 2026 01:31:52 +0200 From: Dmitry Baryshkov To: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= Cc: Rob Clark , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/msm/dpu: Don't use %pK through printk (again) Message-ID: References: <20260223-restricted-pointers-msm-v1-1-14c0b451e372@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20260223-restricted-pointers-msm-v1-1-14c0b451e372@linutronix.de> X-Proofpoint-GUID: zwLRNh-6e3iuseVBYxSH3M4BNLB-PzgV X-Proofpoint-ORIG-GUID: zwLRNh-6e3iuseVBYxSH3M4BNLB-PzgV X-Authority-Analysis: v=2.4 cv=CbsFJbrl c=1 sm=1 tr=0 ts=699ce36d cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=xqWC_Br6kY4A:10 a=8nJEP1OIZ-IA:10 a=HzLeVaNsDn8A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=EcddL8Wb1xXwbACcv5wA:9 a=3ZKOabzyN94A:10 a=wPNLvfGTeEIA:10 a=NFOGd7dJGGMPyQGDc5-O:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjIzMDIwNSBTYWx0ZWRfXyboSz+Mf3jj2 XP3soJ8c1AjMWaIYuh7LhQEr/4P1ZnQZu44pLzgfB3WPl8J6dfTB/Rf8EgusT4nsNSFMq3sZcqG 20F8aASHiLuUStxsLnpo7seiz8X2rRPjlGHbZ8eYRSifm0gl5cBZ4e+ClhqR38IRQEDuGayZFkj FmZ+XQTJMP0I/U0CrcdFqnZjGw8SqZkstxH7vttzIE+8M47CGzAZUFFAfkRW2jI2tbA8+GfJBxe 7yGDaLZpHPnPajF7C5Cy3MnEelH80avznAVXhXBfmGl/t7Z+aLXM7uMbzBriV/8ubQMmHAV9oIU Wd3kTNb6LuPeJ5gKh+nw/xIBSC7WfaTRCdz5xzZkkIDOri15LCfqLV6kZPHkOJlYeXDMD9/yqy4 m6nCA7Ig/CNJ/TBacKdtSSXhhi9DXq9oHUM6EUlbcQZZmYQAsErvCo4QaM8ufS95ic63yTcgW1A iDrzBlYsa1JAt0lue+Q== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-02-23_05,2026-02-23_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 adultscore=0 impostorscore=0 priorityscore=1501 suspectscore=0 phishscore=0 spamscore=0 malwarescore=0 clxscore=1015 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2602130000 definitions=main-2602230205 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Mon, Feb 23, 2026 at 08:16:55AM +0100, Thomas Wei=DFschuh wrote: > In the past %pK was preferable to %p as it would not leak raw pointer > values into the kernel log. > Since commit ad67b74d2469 ("printk: hash addresses printed with %p") > the regular %p has been improved to avoid this issue. > Furthermore, restricted pointers ("%pK") were never meant to be used > through printk(). They can still unintentionally leak raw pointers or > acquire sleeping locks in atomic contexts. >=20 > Switch to the regular pointer formatting which is safer and > easier to reason about. >=20 > This was previously fixed in this driver in commit 1ba9fbe40337 > ("drm/msm: Don't use %pK through printk") but an additional usage > was reintroduced in commit 39a750ff5fc9 ("drm/msm/dpu: Add DSPP GC > driver to provide GAMMA_LUT DRM property") >=20 > Signed-off-by: Thomas Wei=DFschuh > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dspp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Fixes: 39a750ff5fc9 ("drm/msm/dpu: Add DSPP GC driver to provide GAMMA_LUT = DRM property") Reviewed-by: Dmitry Baryshkov --=20 With best wishes Dmitry