Skip to content

Commit d6755bd

Browse files
keeslinvjw
authored andcommitted
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: Kees Cook <[email protected]> Signed-off-by: John W. Linville <[email protected]>
1 parent a5eb1ae commit d6755bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/wireless/rsi/rsi_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static inline int rsi_create_kthread(struct rsi_common *common,
6363
u8 *name)
6464
{
6565
init_completion(&thread->completion);
66-
thread->task = kthread_run(func_ptr, common, name);
66+
thread->task = kthread_run(func_ptr, common, "%s", name);
6767
if (IS_ERR(thread->task))
6868
return (int)PTR_ERR(thread->task);
6969

0 commit comments

Comments
 (0)