cgroup: Correct the address format specifier
authorAmulya Y <ayarlagadda@nvidia.com>
Thu, 5 Apr 2018 21:30:07 +0000 (14:30 -0700)
committerWinnie Hsu <whsu@nvidia.com>
Thu, 19 Apr 2018 17:00:53 +0000 (10:00 -0700)
commit6176adbe2d355128e3ac7d03398f750a5807348d
treeded1a94f72228bfd2121cf7390ea11fa0b5fedb1
parent1fb5cb3f31c991efcb7fb31e1fbbe94f5b2f39b7
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
Bug 1935735

Change-Id: I19dc309e7f5341663add987f5d0b47ee32e1be50
Signed-off-by: Gagan Grover <ggrover@nvidia.com>
Signed-off-by: Amulya Yarlagadda <ayarlagadda@nvidia.com>
Reviewed-on: http://git-master/r/1260110
(cherry picked from commit d018ef6518a7527562bedae1eab86838cfcc0570)
Reviewed-on: https://git-master.nvidia.com/r/1689551
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
kernel/cgroup.c