drm/i915: restrict kernel address leak in debugfs
commit1464096dd1dacc4bd0cbc9e90d67f09f47292405
authorKees Cook <keescook@chromium.org>
Mon, 11 Mar 2013 19:25:19 +0000 (11 12:25 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 27 Mar 2013 02:41:13 +0000 (27 02:41 +0000)
tree7989a8a0bc5c3de4da0106eb2f7804bcc62f42f2
parent53bd21b81773db2526f59a60fcb1d069380ca011
drm/i915: restrict kernel address leak in debugfs

commit 2563a4524febe8f4a98e717e02436d1aaf672aa2 upstream.

Masks kernel address info-leak in object dumps with the %pK suffix,
so they cannot be used to target kernel memory corruption attacks if
the kptr_restrict sysctl is set.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
[bwh: Backported to 3.2: the rest of the format string is different]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/gpu/drm/i915/i915_debugfs.c