From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752533AbcACW1f (ORCPT ); Sun, 3 Jan 2016 17:27:35 -0500 Received: from arcturus.aphlor.org ([188.246.204.175]:58520 "EHLO arcturus.aphlor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752202AbcACW1b (ORCPT ); Sun, 3 Jan 2016 17:27:31 -0500 Date: Sun, 3 Jan 2016 17:27:28 -0500 From: Dave Jones To: Linux Kernel Cc: linux-mm@kvack.org Subject: [4.4-rc7] spinlock recursion while oom'ing. Message-ID: <20160103222728.GA11973@codemonkey.org.uk> Mail-Followup-To: Dave Jones , Linux Kernel , linux-mm@kvack.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-Spam-Score: -2.9 (--) X-Spam-Report: Spam detection software, running on the system "arcturus.aphlor.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This is an odd one.. Out of memory: Kill process 5861 (trinity-c10) score 504 or sacrifice child BUG: spinlock recursion on CPU#1, trinity-c8/8828 lock: 0xffff8800a3635410, .magic: dead4ead, .owner: trinity-c8/8828, .owner_cpu: 1 CPU: 1 PID: 8828 Comm: trinity-c8 Not tainted 4.4.0-rc7-gelk-debug+ #3 00000000000001f8 ffff8800968d7808 ffffffff9a4d4451 ffff8800a3635410 ffff8800968d7838 ffffffff9a117b36 ffff8800a3635410 ffff8800a3635420 ffff8800a3635410 ffff8800a3635398 ffff8800968d7870 ffffffff9a117d63 Call Trace: [] dump_stack+0x4e/0x7d [] spin_dump+0xc6/0x130 [] do_raw_spin_lock+0x163/0x1a0 [] _raw_spin_lock+0x1f/0x30 [] find_lock_task_mm+0x5b/0xd0 [] oom_kill_process+0x2a0/0x660 [] out_of_memory+0x45d/0x4b0 [] ? check_panic_on_oom+0x80/0x80 [] ? __alloc_pages_direct_compact+0x7f/0x160 [] __alloc_pages_nodemask+0xd40/0xe80 [] ? copy_process+0x1d9/0x2ab0 [] ? __alloc_pages_direct_compact+0x160/0x160 [] ? print_section+0x50/0x60 [] ? preempt_count_sub+0xc1/0x120 [] ? preempt_schedule_irq+0x86/0xb0 [] ? retint_kernel+0x1b/0x1d [] ? deactivate_slab+0x3a3/0x400 [] ? _raw_spin_unlock+0x18/0x30 [] ? __slab_alloc.isra.62.constprop.64+0x45/0x50 [] ? kasan_kmalloc+0x5e/0x70 [] ? kasan_slab_alloc+0xd/0x10 [] ? kmem_cache_alloc+0xf1/0x200 [] alloc_kmem_pages_node+0x25/0x30 [] copy_process+0x1f7/0x2ab0 [] ? preempt_count_sub+0x1a/0x120 [] ? _raw_spin_unlock+0x18/0x30 [] ? iov_iter_init+0x82/0xc0 [] ? jiffies_to_timeval+0x52/0x70 [] ? taskstats_exit+0x5a0/0x5a0 [] ? sched_clock_local+0x3f/0xb0 [] ? [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an odd one.. Out of memory: Kill process 5861 (trinity-c10) score 504 or sacrifice child BUG: spinlock recursion on CPU#1, trinity-c8/8828 lock: 0xffff8800a3635410, .magic: dead4ead, .owner: trinity-c8/8828, .owner_cpu: 1 CPU: 1 PID: 8828 Comm: trinity-c8 Not tainted 4.4.0-rc7-gelk-debug+ #3 00000000000001f8 ffff8800968d7808 ffffffff9a4d4451 ffff8800a3635410 ffff8800968d7838 ffffffff9a117b36 ffff8800a3635410 ffff8800a3635420 ffff8800a3635410 ffff8800a3635398 ffff8800968d7870 ffffffff9a117d63 Call Trace: [] dump_stack+0x4e/0x7d [] spin_dump+0xc6/0x130 [] do_raw_spin_lock+0x163/0x1a0 [] _raw_spin_lock+0x1f/0x30 [] find_lock_task_mm+0x5b/0xd0 [] oom_kill_process+0x2a0/0x660 [] out_of_memory+0x45d/0x4b0 [] ? check_panic_on_oom+0x80/0x80 [] ? __alloc_pages_direct_compact+0x7f/0x160 [] __alloc_pages_nodemask+0xd40/0xe80 [] ? copy_process+0x1d9/0x2ab0 [] ? __alloc_pages_direct_compact+0x160/0x160 [] ? print_section+0x50/0x60 [] ? preempt_count_sub+0xc1/0x120 [] ? preempt_schedule_irq+0x86/0xb0 [] ? retint_kernel+0x1b/0x1d [] ? deactivate_slab+0x3a3/0x400 [] ? _raw_spin_unlock+0x18/0x30 [] ? __slab_alloc.isra.62.constprop.64+0x45/0x50 [] ? kasan_kmalloc+0x5e/0x70 [] ? kasan_slab_alloc+0xd/0x10 [] ? kmem_cache_alloc+0xf1/0x200 [] alloc_kmem_pages_node+0x25/0x30 [] copy_process+0x1f7/0x2ab0 [] ? preempt_count_sub+0x1a/0x120 [] ? _raw_spin_unlock+0x18/0x30 [] ? iov_iter_init+0x82/0xc0 [] ? jiffies_to_timeval+0x52/0x70 [] ? taskstats_exit+0x5a0/0x5a0 [] ? sched_clock_local+0x3f/0xb0 [] ? __cleanup_sighand+0x30/0x30 [] ? acct_account_cputime+0x40/0x50 [] ? preempt_count_sub+0xc1/0x120 [] _do_fork+0x107/0x510 [] ? fork_idle+0x130/0x130 [] ? enter_from_user_mode+0x50/0x50 [] ? __this_cpu_preempt_check+0x13/0x20 [] ? __context_tracking_enter+0x95/0x140 [] ? syscall_exit_register+0x310/0x310 [] SyS_clone+0x19/0x20 [] tracesys_phase2+0x84/0x89