From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Jones Subject: [4.4-rc7] spinlock recursion while oom'ing. Date: Sun, 3 Jan 2016 17:27:28 -0500 Message-ID: <20160103222728.GA11973@codemonkey.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org To: Linux Kernel Cc: linux-mm@kvack.org List-Id: linux-mm.kvack.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