Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6755bd4 authored by Kees Cook's avatar Kees Cook Committed by John W. Linville
Browse files

rsi: avoid format string leak to thread name



Since the rsi_create_kthread interface does not include any format
string arguments, make sure that the resulting thread name can never
accidentally process the name as a format string.

Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent a5eb1aeb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ static inline int rsi_create_kthread(struct rsi_common *common,
				     u8 *name)
{
	init_completion(&thread->completion);
	thread->task = kthread_run(func_ptr, common, name);
	thread->task = kthread_run(func_ptr, common, "%s", name);
	if (IS_ERR(thread->task))
		return (int)PTR_ERR(thread->task);