use %pK instead of %p
authorMithun Maragiri <mmaragiri@nvidia.com>
Tue, 29 Nov 2016 03:29:27 +0000 (19:29 -0800)
committermobile promotions <svcmobile_promotions@nvidia.com>
Thu, 1 Dec 2016 09:05:13 +0000 (01:05 -0800)
commit1af32827857cb052e1bfee59409c10a267598bbc
tree110dc6435f4aff9e9cd38ae78bd59ed16b9bc01d
parent940363b067e3a5904048ebfe928fa48674c3f922
use %pK instead of %p

The format specifier %p can leak kernel addresses.
The fix is designed to use %pK instead of %p, which also evaluates
whether kptr_restrict is set.

CVE-2016-8401
A-31494725
Bug 1836932

Change-Id: I5e62e63c694735ab2711e5451f0deddd57ebfaac
Signed-off-by: Mithun Maragiri <mmaragiri@nvidia.com>
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/1262328
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
drivers/staging/android/ion/ion.c