From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754269AbaHFTrZ (ORCPT ); Wed, 6 Aug 2014 15:47:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63022 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752161AbaHFTrY (ORCPT ); Wed, 6 Aug 2014 15:47:24 -0400 Date: Wed, 6 Aug 2014 15:46:56 -0400 From: Dave Jones To: Peter Zijlstra Cc: Linux Kernel Subject: Re: perf related boot hang. Message-ID: <20140806194656.GA11570@redhat.com> Mail-Followup-To: Dave Jones , Peter Zijlstra , Linux Kernel References: <20140806143621.GA13832@redhat.com> <20140806161934.GF19379@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140806161934.GF19379@twins.programming.kicks-ass.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 06, 2014 at 06:19:34PM +0200, Peter Zijlstra wrote: > On Wed, Aug 06, 2014 at 10:36:21AM -0400, Dave Jones wrote: > > On Linus current tree, when I cold-boot one of my boxes, it locks up > > during boot up with this trace.. > > > > Kernel panic - not syncing: Watchdog detected hard LOCKUP on cpu 2 > > CPU: 2 PID: 577 Comm: in:imjournal Not tainted 3.16.0+ #33 > > ffff880244c06c88 000000008b73013e ffff880244c06bf0 ffffffffb47ee207 > > ffffffffb4c51118 ffff880244c06c78 ffffffffb47ebcf8 0000000000000010 > > ffff880244c06c88 ffff880244c06c20 000000008b73013e 0000000000000000 > > Call Trace: > > [] dump_stack+0x4e/0x7a > > [] panic+0xd4/0x207 > > [] watchdog_overflow_callback+0x118/0x120 > > [] __perf_event_overflow+0xae/0x350 > > [] ? perf_event_task_disable+0xa0/0xa0 > > [] ? x86_perf_event_set_period+0xbf/0x150 > > [] perf_event_overflow+0x14/0x20 > > [] intel_pmu_handle_irq+0x206/0x410 > > [] perf_event_nmi_handler+0x2b/0x50 > > [] nmi_handle+0xd2/0x390 > > [] ? nmi_handle+0x5/0x390 > > [] ? lock_acquired+0x131/0x450 > > [] default_do_nmi+0x72/0x1c0 > > > > > > If I reset it, it then seems to always boot up fine. > > Uhm,. cute! And that's the entire stacktrace? It would seem to me there > would be at least a 'task' context below that. CPUs simply do not _only_ > run NMI code, and that trace starts at default_do_nmi(). This one happened during runtime, but I got a whole stack.. Kernel panic - not syncing: Watchdog detected hard LOCKUP on cpu 2 CPU: 2 PID: 7538 Comm: kworker/u8:8 Not tainted 3.16.0+ #34 Workqueue: btrfs-endio-write normal_work_helper [btrfs] ffff880244c06c88 000000001b486fe1 ffff880244c06bf0 ffffffff8a7f1e37 ffffffff8ac52a18 ffff880244c06c78 ffffffff8a7ef928 0000000000000010 ffff880244c06c88 ffff880244c06c20 000000001b486fe1 0000000000000000 Call Trace: [] dump_stack+0x4e/0x7a [] panic+0xd4/0x207 [] watchdog_overflow_callback+0x118/0x120 [] __perf_event_overflow+0xae/0x350 [] ? perf_event_task_disable+0xa0/0xa0 [] ? x86_perf_event_set_period+0xbf/0x150 [] perf_event_overflow+0x14/0x20 [] intel_pmu_handle_irq+0x206/0x410 [] perf_event_nmi_handler+0x2b/0x50 [] nmi_handle+0xd2/0x390 [] ? nmi_handle+0x5/0x390 [] ? match_held_lock+0x8/0x1b0 [] default_do_nmi+0x72/0x1c0 [] do_nmi+0xb8/0x100 [] end_repeat_nmi+0x1e/0x2e [] ? match_held_lock+0x8/0x1b0 [] ? match_held_lock+0x8/0x1b0 [] ? match_held_lock+0x8/0x1b0 <> [] lock_acquired+0xaf/0x450 [] ? lock_hrtimer_base.isra.20+0x25/0x50 [] _raw_spin_lock_irqsave+0x78/0x90 [] ? lock_hrtimer_base.isra.20+0x25/0x50 [] lock_hrtimer_base.isra.20+0x25/0x50 [] hrtimer_try_to_cancel+0x33/0x1e0 [] hrtimer_cancel+0x1a/0x30 [] tick_nohz_restart+0x17/0x90 [] __tick_nohz_full_check+0xc3/0x100 [] nohz_full_kick_work_func+0xe/0x10 [] irq_work_run_list+0x44/0x70 [] irq_work_run+0x2a/0x50 [] update_process_times+0x5b/0x70 [] tick_sched_handle.isra.21+0x25/0x60 [] tick_sched_timer+0x41/0x60 [] __run_hrtimer+0x72/0x470 [] ? tick_sched_do_timer+0xb0/0xb0 [] hrtimer_interrupt+0x117/0x270 [] local_apic_timer_interrupt+0x37/0x60 [] smp_apic_timer_interrupt+0x3f/0x50 [] apic_timer_interrupt+0x6f/0x80 [] ? __slab_alloc+0x1da/0x620 [] ? preempt_count_sub+0xab/0x100 [] ? _raw_spin_unlock+0x31/0x50 [] ? btrfs_alloc_free_block+0x276/0x3e0 [btrfs] [] ? __lock_is_held+0x56/0x80 [] kmem_cache_alloc+0x21f/0x300 [] ? btrfs_alloc_free_block+0x276/0x3e0 [btrfs] [] btrfs_alloc_free_block+0x276/0x3e0 [btrfs] [] split_leaf+0x167/0x750 [btrfs] [] btrfs_search_slot+0x9d9/0xb10 [btrfs] [] ? free_extent_buffer+0x4f/0xa0 [btrfs] [] btrfs_csum_file_blocks+0x48a/0x720 [btrfs] [] add_pending_csums.isra.41+0x50/0x70 [btrfs] [] btrfs_finish_ordered_io+0x340/0x660 [btrfs] [] finish_ordered_fn+0x15/0x20 [btrfs] [] normal_work_helper+0xca/0x5d0 [btrfs] [] process_one_work+0x1fe/0x6d0 [] ? process_one_work+0x19e/0x6d0 [] worker_thread+0x6b/0x4a0 [] ? process_one_work+0x6d0/0x6d0 [] kthread+0x108/0x120 [] ? debug_smp_processor_id+0x17/0x20 [] ? kthread_create_on_node+0x250/0x250 [] ret_from_fork+0x7c/0xb0 [] ? kthread_create_on_node+0x250/0x250