cgroup: Correct the address format specifier
authorGagan Grover <ggrover@nvidia.com>
Fri, 25 Nov 2016 17:22:19 +0000 (22:22 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Thu, 1 Dec 2016 09:03:47 +0000 (01:03 -0800)
commit43b05368ff2af4da6f9bda7aa9cee9c7e692fba6
tree9ba286d6582197558fefe8ad7043a6844da85e3e
parent14e09c3233fb7578c778b70ec3933ba5cadfccb6
cgroup: Correct the address format specifier

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

Bug 1823317

Change-Id: I19dc309e7f5341663add987f5d0b47ee32e1be50
Reviewed-on: http://git-master/r/1260110
(cherry picked from commit d018ef6518a7527562bedae1eab86838cfcc0570)
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Reviewed-on: http://git-master/r/1262238
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
kernel/cgroup.c