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 3806C2451C8; Tue, 29 Apr 2025 17:24:28 +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=1745947469; cv=none; b=VBOs1hp8P2n7UTQJdtjnsnG36KFyBPKCKxs8raK7Lyy+YUW6tJ2UOaCB07TvRl42MhP/uRyTfLO/rFbIrvH4h8dnSXMtjZyv0y5mYdgWbL9ToZ2ZPffuJW9fScuOLPy48nah/fN/GHMlCzGugXR7AkvIh7flmIZBJx5ZOC0Q398= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745947469; c=relaxed/simple; bh=0kdqT+2nFIbmqKoO+dE/e6JZEbDz036QS1/xLWTV0ec=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=K3uJGCk7K/iBjS5t+q5zbQradiyKweC+UxK/DlFBopeKw03uLjqaxi4humdmgkchmCFg1xrAlGRa6BVN8UjaijdiyFQoCBa7t5gbBxRZjqttIppK2LI9gbB6Jsbh/zjeU0KHR87YNRLE2P2lSlqz9/bjXkyfRvuyFSnTG3XjJ+I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZOXc6nby; 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="ZOXc6nby" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 537E6C4CEE3; Tue, 29 Apr 2025 17:24:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1745947468; bh=0kdqT+2nFIbmqKoO+dE/e6JZEbDz036QS1/xLWTV0ec=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZOXc6nbyL2MUTOdCduA7gLXuivPV0LJ8vpwVop7qQA0HTvQb/ouSjT/90RP7HM5by saYjLiuciFPQbHVYJkj5vu5OnQlBhrzBB5fEQPKcxLVGRfzmt2zIFOdwuq4GdvNpHZ LIGutf2tGxOx7nn1eVHJ+SF7eTvZ7CHt+qcpo2Eg= 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.10 264/286] KVM: s390: Dont use %pK through tracepoints Date: Tue, 29 Apr 2025 18:42:48 +0200 Message-ID: <20250429161118.779028623@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250429161107.848008295@linuxfoundation.org> References: <20250429161107.848008295@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 5.10-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