From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 AB863253359; Tue, 29 Apr 2025 16:53:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745945607; cv=none; b=emSLgvQ1hVhy9E80lvUnjC29kUvI0J49UbsKl4N+cTYg782XgikXPLefA8LMwUm8XUmQW9kP2t3qugufOFUt0+ZgbomW4Og6BK1FIEmP6+lUU52zqeLmlfcQwOyDsQMgmsXxPsfONXkihdAD62ObzynkaKdOFpuibrlLEGegy9E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745945607; c=relaxed/simple; bh=bk8UeQRBcHLR7qFhux1iU1mD6IpwBdirfOgPaTN3XeQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=a4Q5YFz1k3pjiS9Dl5h+m58SgYxfRFfeR3iZcbuYBwPJ4BeK06/ILlaAF4hCWxbgaveVKBm3Cm/ScOs0LApDun1+2nSxYsD4fD7TDW3nJfJ7YA6lvPkFlOONBhGHvDO9sBRV6KOSU8CMPMl6585fXwUg4ZZXK0vVJ5edFl+4loE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=orNwbLEZ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="orNwbLEZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7844C4CEE3; Tue, 29 Apr 2025 16:53:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1745945607; bh=bk8UeQRBcHLR7qFhux1iU1mD6IpwBdirfOgPaTN3XeQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=orNwbLEZcFyWYO90D8jpkHE3bwrV4xUSwQ6672gj213DT0ygpyskjoik0R7mKF/1Z 5soSYF0pgQQ1jE3dpJdnghoM/KHzuelRwOlDmUIUraBaby+TJYlUYaYqVefdyZ2nnR j00rgAh4g4YkUumXpdBVyaCGlXcs/fd299RzwXjU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Michael Mueller , Janosch Frank , Sasha Levin Subject: [PATCH 5.4 169/179] KVM: s390: Dont use %pK through tracepoints Date: Tue, 29 Apr 2025 18:41:50 +0200 Message-ID: <20250429161056.235916897@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250429161049.383278312@linuxfoundation.org> References: <20250429161049.383278312@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 5.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Weißschuh [ Upstream commit 6c9567e0850be2f0f94ab64fa6512413fd1a1eb1 ] Restricted pointers ("%pK") are not meant to be used through TP_format(). It can unintentionally expose security sensitive, raw pointer values. Use regular pointer formatting instead. Link: https://lore.kernel.org/lkml/20250113171731-dc10e3c1-da64-4af0-b767-7c7070468023@linutronix.de/ Signed-off-by: Thomas Weißschuh Reviewed-by: Michael Mueller Link: https://lore.kernel.org/r/20250217-restricted-pointers-s390-v1-1-0e4ace75d8aa@linutronix.de Signed-off-by: Janosch Frank Message-ID: <20250217-restricted-pointers-s390-v1-1-0e4ace75d8aa@linutronix.de> Signed-off-by: Sasha Levin --- arch/s390/kvm/trace-s390.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/s390/kvm/trace-s390.h b/arch/s390/kvm/trace-s390.h index 6f0209d45164f..9c5f546a2e1a3 100644 --- a/arch/s390/kvm/trace-s390.h +++ b/arch/s390/kvm/trace-s390.h @@ -56,7 +56,7 @@ TRACE_EVENT(kvm_s390_create_vcpu, __entry->sie_block = sie_block; ), - TP_printk("create cpu %d at 0x%pK, sie block at 0x%pK", + TP_printk("create cpu %d at 0x%p, sie block at 0x%p", __entry->id, __entry->vcpu, __entry->sie_block) ); @@ -255,7 +255,7 @@ TRACE_EVENT(kvm_s390_enable_css, __entry->kvm = kvm; ), - TP_printk("enabling channel I/O support (kvm @ %pK)\n", + TP_printk("enabling channel I/O support (kvm @ %p)\n", __entry->kvm) ); -- 2.39.5