From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752542AbcEXDXB (ORCPT ); Mon, 23 May 2016 23:23:01 -0400 Received: from mail.windriver.com ([147.11.1.11]:40693 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751311AbcEXDXA (ORCPT ); Mon, 23 May 2016 23:23:00 -0400 Cc: xiao.zhang@windriver.com, linux-kernel@vger.kernel.org, rmk+kernel@arm.linux.org.uk To: rostedt@goodmis.org, mingo@redhat.com From: ZhangXiao Subject: bug report, DEBUG_LOCKS_WARN_ON at kernel/locking/lockdep.c:3646 check_flags Message-ID: <5743C8FC.3090203@windriver.com> Date: Tue, 24 May 2016 11:22:36 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Experts, With ARM , versatile-pb When I enable PROVE_LOCKING, DEBUG_LOCKDEP and KPROBES_SANITY_TEST, there will be a call trace like below: Kprobe smoke test: started ------------[ cut here ]------------ WARNING: CPU: 0 PID: 1 at kernel/locking/lockdep.c:3646 check_flags+0xdc/0x200 DEBUG_LOCKS_WARN_ON(!current->hardirqs_enabled) Modules linked in: CPU: 0 PID: 1 Comm: swapper Not tainted 4.6.0-WR8.0.0.0_standard+ #45 Hardware name: ARM-Versatile (Device Tree Support) [] (unwind_backtrace) from [] (show_stack+0x20/0x24) [] (show_stack) from [] (dump_stack+0x20/0x28) [] (dump_stack) from [] (__warn+0xe0/0x10c) [] (__warn) from [] (warn_slowpath_fmt+0x48/0x50) [] (warn_slowpath_fmt) from [] (check_flags+0xdc/0x200) [] (check_flags) from [] (lock_acquire+0x50/0x258) [] (lock_acquire) from [] (mutex_lock_nested+0x60/0x3a8) [] (mutex_lock_nested) from [] (unregister_jprobes.part.5+0x2c/0x94) [] (unregister_jprobes.part.5) from [] (unregister_jprobe+0x2c/0x34) [] (unregister_jprobe) from [] (init_test_probes+0x240/0x51c) [] (init_test_probes) from [] (init_kprobes+0x15c/0x19c) [] (init_kprobes) from [] (do_one_initcall+0x114/0x1d8) [] (do_one_initcall) from [] (kernel_init_freeable+0x1fc/0x2cc) [] (kernel_init_freeable) from [] (kernel_init+0x18/0x104) [] (kernel_init) from [] (ret_from_fork+0x14/0x28) ---[ end trace e251ef8fa7e2aa1e ]--- possible reason: unannotated irqs-on. irq event stamp: 274608 hardirqs last enabled at (274607): [] __mutex_unlock_slowpath+0x158/0x1b0 hardirqs last disabled at (274608): [] __und_svc+0x44/0x58 softirqs last enabled at (274584): [] __do_softirq+0x3e0/0x550 softirqs last disabled at (274551): [] irq_exit+0x94/0xd8 Kprobe smoke test: passed successfully Thanks Xiao