video: tegra: nvmap: Fix print format specifier
authorGagan Grover <ggrover@nvidia.com>
Tue, 29 Nov 2016 13:15:33 +0000 (18:15 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Thu, 1 Dec 2016 09:04:48 +0000 (01:04 -0800)
commit940363b067e3a5904048ebfe928fa48674c3f922
treee2cf68922d2066aef5c184e63aba1ac7cd4e18a9
parent1b37e04845a84938592cc514525d4990bb27cc02
video: tegra: nvmap: Fix print format specifier

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-8408 A-31496571

Bug 1844902

Change-Id: I35c3ddb7b6a52e4edba814de0eaa5e85629130b9
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/1262308
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
drivers/video/tegra/nvmap/nvmap_dev.c