Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758287AbZDGQfQ (ORCPT ); Tue, 7 Apr 2009 12:35:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753437AbZDGQfB (ORCPT ); Tue, 7 Apr 2009 12:35:01 -0400 Received: from fxip-0047f.externet.hu ([88.209.222.127]:38957 "EHLO pomaz-ex.szeredi.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753398AbZDGQfA (ORCPT ); Tue, 7 Apr 2009 12:35:00 -0400 To: linux-kernel@vger.kernel.org CC: rusty@rustcorp.com.au, srostedt@redhat.com, mingo@elte.hu Subject: [bug] lockdep warning: module_mutex vs. ftrace_lock Message-Id: From: Miklos Szeredi Date: Tue, 07 Apr 2009 18:34:56 +0200 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3185 Lines: 70 ======================================================= [ INFO: possible circular locking dependency detected ] 2.6.29-09854-gd508afb-dirty #6 ------------------------------------------------------- modprobe/3184 is trying to acquire lock: (ftrace_lock){+.+.+.}, at: [] ftrace_convert_nops+0x32/0x267 but task is already holding lock: (module_mutex){+.+.+.}, at: [] sys_init_module+0x3f/0x1d3 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (module_mutex){+.+.+.}: [] __lock_acquire+0x12fe/0x1668 [] lock_acquire+0xee/0x112 [] mutex_lock_nested+0x4f/0x305 [] module_update_tracepoints+0x1c/0x73 [] tracepoint_update_probes+0x21/0x23 [] tracepoint_probe_register+0x4a/0x68 [] register_ftrace_graph+0x2a9/0x30f [] trace_selftest_startup_function_graph+0x2e/0xbb [] register_tracer+0x151/0x26e [] init_graph_trace+0x10/0x12 [] do_one_initcall+0x5b/0x135 [] kernel_init+0x12f/0x185 [] child_rip+0xa/0x20 [] 0xffffffffffffffff -> #0 (ftrace_lock){+.+.+.}: [] __lock_acquire+0x101b/0x1668 [] lock_acquire+0xee/0x112 [] mutex_lock_nested+0x4f/0x305 [] ftrace_convert_nops+0x32/0x267 [] ftrace_init_module+0x17/0x19 [] load_module+0x1122/0x160b [] sys_init_module+0x5c/0x1d3 [] system_call_fastpath+0x16/0x1b [] 0xffffffffffffffff other info that might help us debug this: 1 lock held by modprobe/3184: #0: (module_mutex){+.+.+.}, at: [] sys_init_module+0x3f/0x1d3 stack backtrace: Pid: 3184, comm: modprobe Not tainted 2.6.29-09854-gd508afb-dirty #6 Call Trace: [] print_circular_bug_tail+0xc5/0xd0 [] __lock_acquire+0x101b/0x1668 [] ? find_symbol_in_section+0x39/0xda [] ? each_symbol_in_section+0x3a/0x7a [] lock_acquire+0xee/0x112 [] ? ftrace_convert_nops+0x32/0x267 [] mutex_lock_nested+0x4f/0x305 [] ? ftrace_convert_nops+0x32/0x267 [] ? ftrace_call+0x5/0x2b [] ftrace_convert_nops+0x32/0x267 [] ftrace_init_module+0x17/0x19 [] load_module+0x1122/0x160b [] ? trace_hardirqs_on_caller+0x114/0x138 [] sys_init_module+0x5c/0x1d3 [] system_call_fastpath+0x16/0x1b -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/