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 0710A2512C6; Tue, 29 Apr 2025 17:58:30 +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=1745949510; cv=none; b=hWZ3min1Y5iV79kZTQLJWB75dZ/7z7Ef1Jnn8r7I2higAoAijrN+xKZuBySBTrrNz2e3Qlj+lYdcCgXjL8t1IYgGPCU4LDlgMTSFFdLNICukvFFOtmxeyL3iDqRjO/g/TGoNLR/m4OwkdbpcdwYlA2msEon0ofkCHHeqJcxaKa8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745949510; c=relaxed/simple; bh=aeuVLOPCkJZ7Mscr8vKlwdqUbHUKw98kfNTa+QQMhPM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kVbz4N+8NJ6mg4EmF8hG1Te2B1MyBRjBqRC/KYF/LNRf8AWRUbqHXkWlnHdhFgFbhplXiKearTECXMM5OOlmutkn7cIMpGpMgCz3cwsuX3E4eKlJvF/RjqYN8hoNLP348glBsZtewEbv7lr3sdOIzavHJIHxy0xcMR1wTQ6K21U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=k9PmNj/v; 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="k9PmNj/v" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78603C4CEE3; Tue, 29 Apr 2025 17:58:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1745949509; bh=aeuVLOPCkJZ7Mscr8vKlwdqUbHUKw98kfNTa+QQMhPM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k9PmNj/v27aqIabEzR+fMNbEG1NS1PMOHzVBulC2duwQ1d5kVTe9OUYirlevXgugj l67+MnZWfQH5ecxJOyefD01MVQw5MRu4+xMlzMzcB3JusUTyoIH2rw81++Ayiz6kLk J9Z7aoVMg9RxeknjzoOz62AE6Q/6nLXcR92/Y6j8= 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.15 340/373] KVM: s390: Dont use %pK through tracepoints Date: Tue, 29 Apr 2025 18:43:37 +0200 Message-ID: <20250429161137.118122816@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250429161123.119104857@linuxfoundation.org> References: <20250429161123.119104857@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.15-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