Files
linux/net
Neil Horman 3b1aa6380f dccp_probe: Fix module load dependencies between dccp and dccp_probe
commit 38ff3e6bb9 upstream.

This was just recently reported to me.  When built as modules, the
dccp_probe module has a silent dependency on the dccp module.  This
stems from the fact that the module_init routine of dccp_probe
registers a jprobe on the dccp_sendmsg symbol.  Since the symbol is
only referenced as a text string (the .symbol_name field in the jprobe
struct) rather than the address of the symbol itself, depmod never
picks this dependency up, and so if you load the dccp_probe module
without the dccp module loaded, the register_jprobe call fails with an
-EINVAL, and the whole module load fails.

The fix is pretty easy, we can just wrap the register_jprobe call in a
try_then_request_module call, which forces the dependency to get
satisfied prior to the probe registration.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: maximilian attems <max@stro.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-05-12 14:57:11 -07:00
..
2009-11-02 08:43:45 -06:00
2010-02-09 04:50:56 -08:00
2009-09-26 20:16:15 -07:00
2009-11-06 00:50:39 -08:00
2010-04-26 07:41:34 -07:00
2009-09-02 01:03:53 -07:00
2009-09-30 16:41:34 -07:00
2010-02-09 04:50:56 -08:00
2009-10-11 23:03:47 -07:00
2009-07-12 12:22:34 -07:00
2009-09-02 01:03:53 -07:00