Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751384AbaLQBVy (ORCPT ); Tue, 16 Dec 2014 20:21:54 -0500 Received: from mx1.redhat.com ([209.132.183.28]:38265 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751075AbaLQBVw (ORCPT ); Tue, 16 Dec 2014 20:21:52 -0500 Message-ID: <1418779308.3025.1.camel@localhost> Subject: Re: linux-next 20141216 BUG: sleeping function called from invalid context at mm/slab.c:2849 From: Eric Paris To: Valdis Kletnieks , rgb@redhat.com Cc: Paul Moore , linux-kernel@vger.kernel.org, selinux@tycho.nsa.gov, linux-audit@redhat.com Date: Tue, 16 Dec 2014 20:21:48 -0500 In-Reply-To: <2966.1418778594@turing-police.cc.vt.edu> References: <2966.1418778594@turing-police.cc.vt.edu> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I haven't looked into it, but I'd place my first bet on the audit multicast code... Richard? On Tue, 2014-12-16 at 20:09 -0500, Valdis Kletnieks wrote: > Not sure who's to blame here, but I'm tending towards selinux based on > who was holding the locks... > > Spotted these two while booting single-user on 20141216. 20141208 > doesn't throw these, so it's something in the last week or so.. > > Tossed it twice - once for /sbin/sulogin, and then a second time for /bin/bash. > > [ 34.061285] BUG: sleeping function called from invalid context at mm/slab.c:2849 > [ 34.062863] in_atomic(): 1, irqs_disabled(): 0, pid: 885, name: sulogin > [ 34.064416] 2 locks held by sulogin/885: > [ 34.064418] #0: (&sig->cred_guard_mutex){+.+.+.}, at: [] prepare_bprm_creds+0x28/0x8b > [ 34.064428] #1: (tty_files_lock){+.+.+.}, at: [] selinux_bprm_committing_creds+0x55/0x22b > [ 34.064438] CPU: 1 PID: 885 Comm: sulogin Not tainted 3.18.0-next-20141216 #30 > [ 34.064440] Hardware name: Dell Inc. Latitude E6530/07Y85M, BIOS A15 06/20/2014 > [ 34.064442] ffff880223744f10 ffff88022410f9b8 ffffffff916ba529 0000000000000375 > [ 34.064447] ffff880223744f10 ffff88022410f9e8 ffffffff91063185 0000000000000006 > [ 34.064452] 0000000000000000 0000000000000000 0000000000000000 ffff88022410fa38 > [ 34.064457] Call Trace: > [ 34.064463] [] dump_stack+0x50/0xa8 > [ 34.064467] [] ___might_sleep+0x1b6/0x1be > [ 34.064472] [] __might_sleep+0x119/0x128 > [ 34.064477] [] cache_alloc_debugcheck_before.isra.45+0x1d/0x1f > [ 34.064480] [] kmem_cache_alloc+0x43/0x1c9 > [ 34.064484] [] __alloc_skb+0x42/0x1a3 > [ 34.064488] [] skb_copy+0x3e/0xa3 > [ 34.064492] [] audit_log_end+0x83/0x100 > [ 34.064496] [] ? avc_audit_pre_callback+0x103/0x103 > [ 34.064500] [] common_lsm_audit+0x441/0x450 > [ 34.064503] [] slow_avc_audit+0x63/0x67 > [ 34.064506] [] avc_has_perm+0xca/0xe3 > [ 34.064510] [] inode_has_perm+0x5a/0x65 > [ 34.064514] [] selinux_bprm_committing_creds+0x98/0x22b > [ 34.064519] [] security_bprm_committing_creds+0xe/0x10 > [ 34.064522] [] install_exec_creds+0xe/0x79 > [ 34.064527] [] load_elf_binary+0xe36/0x10d7 > [ 34.064542] [] search_binary_handler+0x81/0x18c > [ 34.064545] [] do_execveat_common.isra.31+0x4e3/0x7b7 > [ 34.064548] [] do_execve+0x1f/0x21 > [ 34.064552] [] SyS_execve+0x25/0x29 > [ 34.064557] [] stub_execve+0x69/0xa0 > > [ 48.826654] BUG: sleeping function called from invalid context at mm/slab.c:2849 > [ 48.829282] in_atomic(): 1, irqs_disabled(): 0, pid: 885, name: bash > [ 48.829284] 2 locks held by bash/885: > [ 48.829297] #0: (&sig->cred_guard_mutex){+.+.+.}, at: [] prepare_bprm_creds+0x28/0x8b > [ 48.829307] #1: (&(&newf->file_lock)->rlock){+.+.+.}, at: [] iterate_fd+0x34/0x11c > [ 48.829310] CPU: 3 PID: 885 Comm: bash Not tainted 3.18.0-next-20141216 #30 > [ 48.829311] Hardware name: Dell Inc. Latitude E6530/07Y85M, BIOS A15 06/20/2014 > [ 48.829317] ffff880223744f10 ffff88022410f928 ffffffff916ba529 0000000000000375 > [ 48.829321] ffff880223744f10 ffff88022410f958 ffffffff91063185 0000000000000002 > [ 48.829325] 0000000000000000 0000000000000000 0000000000000000 ffff88022410f9a8 > [ 48.829327] Call Trace: > [ 48.829333] [] dump_stack+0x50/0xa8 > [ 48.829338] [] ___might_sleep+0x1b6/0x1be > [ 48.829341] [] __might_sleep+0x119/0x128 > [ 48.829347] [] cache_alloc_debugcheck_before.isra.45+0x1d/0x1f > [ 48.829350] [] kmem_cache_alloc+0x43/0x1c9 > [ 48.829356] [] __alloc_skb+0x42/0x1a3 > [ 48.829360] [] skb_copy+0x3e/0xa3 > [ 48.829367] [] audit_log_end+0x83/0x100 > [ 48.829372] [] ? avc_audit_pre_callback+0x103/0x103 > [ 48.829377] [] common_lsm_audit+0x441/0x450 > [ 48.829381] [] slow_avc_audit+0x63/0x67 > [ 48.829386] [] avc_has_perm+0xca/0xe3 > [ 48.829391] [] ? selinux_file_permission+0x9b/0x9b > [ 48.829395] [] file_has_perm+0x6d/0x7c > [ 48.829400] [] match_file+0x2e/0x3b > [ 48.829404] [] iterate_fd+0xf4/0x11c > [ 48.829409] [] selinux_bprm_committing_creds+0xd0/0x22b > [ 48.829415] [] security_bprm_committing_creds+0xe/0x10 > [ 48.829419] [] install_exec_creds+0xe/0x79 > [ 48.829426] [] load_elf_binary+0xe36/0x10d7 > [ 48.829431] [] search_binary_handler+0x81/0x18c > [ 48.829435] [] do_execveat_common.isra.31+0x4e3/0x7b7 > [ 48.829462] [] do_execve+0x1f/0x21 > [ 48.829466] [] SyS_execve+0x25/0x29 > [ 48.829472] [] stub_execve+0x69/0xa0 > -- 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/