KVM: s390: obey kptr_restrict in traces
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 8 Dec 2015 15:55:27 +0000 (16:55 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 15 Dec 2015 16:06:32 +0000 (17:06 +0100)
commit8335713ad08caf2c3dfcb5bc2c93d7e0276142d4
tree8b8c71edb6f97f5a085827e38c33a6b7654f6738
parent7ec7c8c70b26de90f61be7523a6ad14df911219f
KVM: s390: obey kptr_restrict in traces

The s390dbf and trace events provide a debugfs interface.
If kptr_restrict is active, we should not expose kernel
pointers. We can fence the debugfs output by using %pK
instead of %p.

Cc: Kees Cook <keescook@chromium.org>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/trace-s390.h