diff options
author | Tetsuo Handa <[email protected]> | 2011-07-26 16:08:41 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-07-26 16:49:44 -0700 |
commit | 912193521b719fbfc2f16776febf5232fe8ba261 (patch) | |
tree | df180e94ec0595744da6eb11f6164e539c73ea91 /tools/perf/util/scripting-engines/trace-event-perl.c | |
parent | aacb3d17a73f6447c04e4d769391238dcf85568d (diff) |
exec: do not call request_module() twice from search_binary_handler()
Currently, search_binary_handler() tries to load binary loader module
using request_module() if a loader for the requested program is not yet
loaded. But second attempt of request_module() does not affect the result
of search_binary_handler().
If request_module() triggered recursion, calling request_module() twice
causes 2 to the power of MAX_KMOD_CONCURRENT (= 50) repetitions. It is
not an infinite loop but is sufficient for users to consider as a hang up.
Therefore, this patch changes not to call request_module() twice, making 1
to the power of MAX_KMOD_CONCURRENT repetitions in case of recursion.
Signed-off-by: Tetsuo Handa <[email protected]>
Reported-by: Richard Weinberger <[email protected]>
Tested-by: Richard Weinberger <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions