Christian Borntraeger
860ec7c6e2
s390/debug: use pK for kernel pointers
...
the s390 debug feature (/sys/kernel/debug/s390dbf/) shows the kernel
pointer of the calling function even for kptr_restrict == 2. Let us
use pK instead of p.
This hides the kernel addresses for kptr_restrict == 2:
root@host $ echo 2 > /proc/sys/kernel/kptr_restrict
root@host $ tail -n1 /sys/kernel/debug/s390dbf/cio_msg/sprintf
00 01511461280:386645 2 - 00 0000000000000000 snsid: device 0.0.3f68: rc=0 3990/e9 3390/0c
root@host $ echo 1 > /proc/sys/kernel/kptr_restrict
root@host $ tail -n1 /sys/kernel/debug/s390dbf/cio_msg/sprintf
00 01511461280:386645 2 - 00 000000000071171c snsid: device 0.0.3f68: rc=0 3990/e9 3390/0c
root@host $ echo 0 > /proc/sys/kernel/kptr_restrict
root@host $ tail -n1 /sys/kernel/debug/s390dbf/cio_msg/sprintf
00 01511461280:386645 2 - 00 000000000071171c snsid: device 0.0.3f68: rc=0 3990/e9 3390/0c
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2017-11-24 14:28:34 +01:00
..
2017-11-14 11:01:47 +01:00
2017-11-14 11:01:47 +01:00
2012-05-16 14:42:41 +02:00
2017-11-02 11:10:55 +01:00
2017-10-18 14:11:29 +02:00
2017-11-14 11:01:47 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-17 11:54:55 -08:00
2017-11-13 11:47:01 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-24 14:28:34 +01:00
2017-11-02 11:10:55 +01:00
2017-11-24 11:02:41 +01:00
2017-07-26 08:25:09 +02:00
2017-11-02 11:10:55 +01:00
2017-11-13 11:47:01 -08:00
2017-11-02 11:10:55 +01:00
2017-11-13 11:47:01 -08:00
2017-11-20 08:51:01 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-13 11:47:01 -08:00
2017-11-14 11:01:47 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-08 09:47:54 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-10-12 07:16:50 +02:00
2017-10-05 15:01:18 +02:00
2017-11-13 11:47:01 -08:00
2017-11-16 15:06:11 +01:00
2017-11-02 11:10:55 +01:00
2017-11-14 22:08:12 +01:00
2017-11-14 22:08:08 +01:00
2017-11-02 11:10:55 +01:00
2017-11-13 11:47:01 -08:00
2017-03-31 07:53:35 +02:00
2017-11-16 15:06:17 +01:00
2017-06-12 16:26:00 +02:00
2017-11-16 15:06:14 +01:00
2017-11-02 11:10:55 +01:00
2017-11-13 11:47:01 -08:00
2017-11-02 11:10:55 +01:00
2017-11-13 11:47:01 -08:00
2017-11-02 11:10:55 +01:00
2017-11-13 11:47:01 -08:00
2017-11-13 11:47:01 -08:00
2017-11-09 16:54:30 +01:00
2017-11-02 11:10:55 +01:00
2017-11-20 08:51:01 +01:00
2017-03-02 08:42:34 +01:00
2017-10-09 11:15:36 +02:00
2017-11-13 11:47:01 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-13 11:47:01 -08:00
2017-11-02 11:10:55 +01:00
2017-08-23 13:31:51 +02:00
2017-11-13 17:56:58 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-14 11:01:47 +01:00
2017-11-13 11:47:01 -08:00
2017-06-12 16:25:57 +02:00