projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48b8c10
)
[PATCH] module: strlen_user() race fix
author
Andrew Morton
<akpm@osdl.org>
Tue, 7 Feb 2006 20:58:45 +0000
(12:58 -0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Wed, 8 Feb 2006 00:12:32 +0000
(16:12 -0800)
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/module.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/module.c
b/kernel/module.c
index e058aedf6b932d35e23a3c0acb18ff3cb01b78c1..5aad477ddc79c94567c02e9ee704f1eb71fa1b66 100644
(file)
--- a/
kernel/module.c
+++ b/
kernel/module.c
@@
-1670,6
+1670,9
@@
static struct module *load_module(void __user *umod,
goto free_mod;
}
+ /* Userspace could have altered the string after the strlen_user() */
+ args[arglen - 1] = '\0';
+
if (find_module(mod->name)) {
err = -EEXIST;
goto free_mod;