From: Kees Cook Date: Thu, 22 May 2014 18:57:16 +0000 (-0700) Subject: staging/rtl8821ae: avoid format string leak to thread name X-Git-Tag: v4.14-rc1~7083^2~39^2~443 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6fdb1f4fb05998bb255cf4e2605bc5f0e842eb24;p=platform%2Fkernel%2Flinux-rpi.git staging/rtl8821ae: avoid format string leak to thread name This makes sure the cfg->name can never accidentally be processed as a format string in the worker thread name. Signed-off-by: Kees Cook Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8821ae/base.c b/drivers/staging/rtl8821ae/base.c index a4c9cc4..49ee311 100644 --- a/drivers/staging/rtl8821ae/base.c +++ b/drivers/staging/rtl8821ae/base.c @@ -404,7 +404,8 @@ static int _rtl_init_deferred_work(struct ieee80211_hw *hw) /**/ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) /**/ - rtlpriv->works.rtl_wq = alloc_workqueue(rtlpriv->cfg->name, 0, 0); + rtlpriv->works.rtl_wq = alloc_workqueue("%s", 0, 0, + rtlpriv->cfg->name); /**/ #else rtlpriv->works.rtl_wq = create_workqueue(rtlpriv->cfg->name);