Patchwork [069/150] drm/i915: restrict kernel address leak in debugfs

mail settings
Submitter Luis Henriques
Date March 26, 2013, 3:19 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/231328/
State New
Headers show


Luis Henriques - March 26, 2013, 3:19 p.m. -stable review patch.  If anyone has any objections, please let me know.


From: Kees Cook <>

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 <>
Signed-off-by: Daniel Vetter <>
[ luis: adjust format string ]
Signed-off-by: Luis Henriques <>
 drivers/gpu/drm/i915/i915_debugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 5ec5222..e6fd143 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -122,7 +122,7 @@  static const char *cache_level_str(int type)
 static void
 describe_obj(struct seq_file *m, struct drm_i915_gem_object *obj)
-	seq_printf(m, "%p: %s%s %8zdKiB %04x %04x %d %d%s%s%s",
+	seq_printf(m, "%pK: %s%s %8zdKiB %04x %04x %d %d%s%s%s",