FPII-2537 : Information disclosure vulnerability in Qualcomm components CVE-2016-6752 A-31498159

Format specifier %p can leak kernel addresses while not valuing the kptr_restrict system settings.
When kptr_restrict is set to (1), kernel pointers printed using the %pK format specifier will be replaced with 0's.
So that %pK will not leak kernel pointers to unprivileged users.
So change the format specifier from %p to %pK.

Debugging Note : &pK prints only Zeros as address.
if you need actual address information, pls echo 0 to kptr_restrict.
$ echo 0 > /proc/sys/kernel/kptr_restrict

Change-Id: I78d13d0144241f8eff5374b81e49302e0bbdf673
1 file changed