Skip to content

Commit 6c9567e

Browse files
t-8chfrankjaa
authored andcommitted
KVM: s390: Don't use %pK through tracepoints
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 <thomas.weissschuh@linutronix.de> Reviewed-by: Michael Mueller <mimu@linux.ibm.com> Link: https://lore.kernel.org/r/20250217-restricted-pointers-s390-v1-1-0e4ace75d8aa@linutronix.de Signed-off-by: Janosch Frank <frankja@linux.ibm.com> Message-ID: <20250217-restricted-pointers-s390-v1-1-0e4ace75d8aa@linutronix.de>
1 parent a64dcfb commit 6c9567e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/s390/kvm/trace-s390.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ TRACE_EVENT(kvm_s390_create_vcpu,
5656
__entry->sie_block = sie_block;
5757
),
5858

59-
TP_printk("create cpu %d at 0x%pK, sie block at 0x%pK",
59+
TP_printk("create cpu %d at 0x%p, sie block at 0x%p",
6060
__entry->id, __entry->vcpu, __entry->sie_block)
6161
);
6262

@@ -255,7 +255,7 @@ TRACE_EVENT(kvm_s390_enable_css,
255255
__entry->kvm = kvm;
256256
),
257257

258-
TP_printk("enabling channel I/O support (kvm @ %pK)\n",
258+
TP_printk("enabling channel I/O support (kvm @ %p)\n",
259259
__entry->kvm)
260260
);
261261

0 commit comments

Comments
 (0)