Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1327370

[PATCH 1/3] modules: fix modparam async_probe request

From Rusty Russell <rusty@rustcorp.com.au>
Newsgroups linux.kernel
Subject [PATCH 1/3] modules: fix modparam async_probe request
Date 2016-02-05 01:20 +0100
Message-ID <qYChZ-XM-17@gated-at.bofh.it> (permalink)
References <qYChY-XM-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: "Luis R. Rodriguez" <mcgrof@suse.com>

Commit f2411da746985 ("driver-core: add driver module
asynchronous probe support") added async probe support,
in two forms:

  * in-kernel driver specification annotation
  * generic async_probe module parameter (modprobe foo async_probe)

To support the generic kernel parameter parse_args() was
extended via commit ecc8617053e0 ("module: add extra
argument for parse_params() callback") however commit
failed to f2411da746985 failed to add the required argument.

This causes a crash then whenever async_probe generic
module parameter is used. This was overlooked when the
form in which in-kernel async probe support was reworked
a bit... Fix this as originally intended.

Cc: Hannes Reinecke <hare@suse.de>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: stable@vger.kernel.org (4.2+)
Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> [minimized]
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
 kernel/module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/module.c b/kernel/module.c
index 8358f4697c0c..2149f7003e49 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -3496,7 +3496,7 @@ static int load_module(struct load_info *info, const char __user *uargs,
 
 	/* Module is ready to execute: parsing args may do that. */
 	after_dashes = parse_args(mod->name, mod->args, mod->kp, mod->num_kp,
-				  -32768, 32767, NULL,
+				  -32768, 32767, mod,
 				  unknown_module_param_cb);
 	if (IS_ERR(after_dashes)) {
 		err = PTR_ERR(after_dashes);
-- 
2.5.0

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/3] module stable fixes. Rusty Russell <rusty@rustcorp.com.au> - 2016-02-05 01:20 +0100
  [PATCH 1/3] modules: fix modparam async_probe request Rusty Russell <rusty@rustcorp.com.au> - 2016-02-05 01:20 +0100
  [PATCH 3/3] modules: fix longstanding /proc/kallsyms vs module insertion race. Rusty Russell <rusty@rustcorp.com.au> - 2016-02-05 01:20 +0100
    RE: [PATCH 3/3] modules: fix longstanding /proc/kallsyms vs  module insertion race. 平松雅巳 / HIRAMATU,MASAMI   <masami.hiramatsu.pt@hitachi.com> - 2016-02-05 07:50 +0100
  RE: [PATCH 0/3] module stable fixes. 平松雅巳 / HIRAMATU,MASAMI   <masami.hiramatsu.pt@hitachi.com> - 2016-02-05 08:00 +0100

csiph-web