From: Kees Cook Date: Tue, 11 Apr 2017 04:56:30 +0000 (-0700) Subject: drm/i915: Avoid format string expansion from engine names X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=916a491d11a866218ad92ff4f3124baa97d68ba0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/i915: Avoid format string expansion from engine names While highly unlikely, this makes sure that the string built from engine names won't be processed as a format string. Signed-off-by: Kees Cook Signed-off-by: Jani Nikula Link: http://patchwork.freedesktop.org/patch/msgid/20170411045630.GA6612@beast --- diff --git a/drivers/gpu/drm/i915/intel_hangcheck.c b/drivers/gpu/drm/i915/intel_hangcheck.c index dce742243ba6..9b0ece427bdc 100644 --- a/drivers/gpu/drm/i915/intel_hangcheck.c +++ b/drivers/gpu/drm/i915/intel_hangcheck.c @@ -407,7 +407,7 @@ static void hangcheck_declare_hang(struct drm_i915_private *i915, "%s, ", engine->name); msg[len-2] = '\0'; - return i915_handle_error(i915, hung, msg); + return i915_handle_error(i915, hung, "%s", msg); } /*