diff options
author | Kees Cook <keescook@chromium.org> | 2014-05-22 11:48:41 -0700 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-05-29 13:08:10 -0400 |
commit | d6755bd4fb411035ec7cf0dc6dfa1bc448e35d62 (patch) | |
tree | d9914b8336069ca0625b753a3ad1e6bbf371fa10 /drivers/net/wireless/rsi | |
parent | a5eb1aeb25df89c627248a162cc35ffb556dc486 (diff) | |
download | linux-d6755bd4fb411035ec7cf0dc6dfa1bc448e35d62.tar.gz linux-d6755bd4fb411035ec7cf0dc6dfa1bc448e35d62.tar.bz2 linux-d6755bd4fb411035ec7cf0dc6dfa1bc448e35d62.zip |
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 <keescook@chromium.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rsi')
-rw-r--r-- | drivers/net/wireless/rsi/rsi_common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rsi/rsi_common.h b/drivers/net/wireless/rsi/rsi_common.h index f2f70784d4ad..d3fbe33d2324 100644 --- a/drivers/net/wireless/rsi/rsi_common.h +++ b/drivers/net/wireless/rsi/rsi_common.h @@ -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); |