提交 58e1e542 编写于 作者: K Kees Cook 提交者: Greg Kroah-Hartman

Staging: unisys: fix potential format string leak

Since "name" is always used directly, force "%s" for the kthread
format string to avoid any potential format string leaks.
Signed-off-by: NKees Cook <keescook@chromium.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 2c7e1d4e
...@@ -167,7 +167,7 @@ static int visor_thread_start(struct visor_thread_info *thrinfo, ...@@ -167,7 +167,7 @@ static int visor_thread_start(struct visor_thread_info *thrinfo,
{ {
/* used to stop the thread */ /* used to stop the thread */
init_completion(&thrinfo->has_stopped); init_completion(&thrinfo->has_stopped);
thrinfo->task = kthread_run(threadfn, thrcontext, name); thrinfo->task = kthread_run(threadfn, thrcontext, "%s", name);
if (IS_ERR(thrinfo->task)) { if (IS_ERR(thrinfo->task)) {
thrinfo->id = 0; thrinfo->id = 0;
return PTR_ERR(thrinfo->task); return PTR_ERR(thrinfo->task);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册