提交 30948df8 编写于 作者: K Kees Cook 提交者: Greg Kroah-Hartman

staging: unisys: avoid format string parsing

This makes sure the kthread name can't be parsed as a format string.
Signed-off-by: NKees Cook <keescook@chromium.org>
Signed-off-by: NBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 59fd2c8b
......@@ -316,7 +316,7 @@ static int visor_thread_start(struct visor_thread_info *thrinfo,
void *thrcontext, char *name)
{
/* used to stop the thread */
thrinfo->task = kthread_run(threadfn, thrcontext, name);
thrinfo->task = kthread_run(threadfn, thrcontext, "%s", name);
if (IS_ERR(thrinfo->task)) {
pr_debug("%s failed (%ld)\n",
__func__, PTR_ERR(thrinfo->task));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册