Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757057AbYGTJnZ (ORCPT ); Sun, 20 Jul 2008 05:43:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755354AbYGTJnQ (ORCPT ); Sun, 20 Jul 2008 05:43:16 -0400 Received: from www17.your-server.de ([213.133.104.17]:35898 "EHLO www17.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754349AbYGTJnO (ORCPT ); Sun, 20 Jul 2008 05:43:14 -0400 X-Greylist: delayed 392 seconds by postgrey-1.27 at vger.kernel.org; Sun, 20 Jul 2008 05:43:14 EDT Subject: BUG at security/selinux/avc.c:883 (was: Re: linux-next: Tree for July 17: early crash on x86-64) From: Thomas Meyer To: James Morris Cc: "Rafael J. Wysocki" , Al Viro , Alexander Beregalov , Stephen Rothwell , linux-next@vger.kernel.org, LKML , Ingo Molnar , Kernel Testers List , Stephen Smalley , Eric Paris In-Reply-To: References: <20080718012842.690b8346.sfr@canb.auug.org.au> <20080719035231.GU28946@ZenIV.linux.org.uk> <200807192042.06988.rjw@sisk.pl> Content-Type: text/plain Date: Sun, 20 Jul 2008 11:42:53 +0200 Message-Id: <1216546973.3217.6.camel@dhcppc2> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Content-Transfer-Encoding: 7bit X-Authenticated-Sender: thomas@m3y3r.de Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5320 Lines: 103 Am Sonntag, den 20.07.2008, 05:54 +1000 schrieb James Morris: > On Sat, 19 Jul 2008, Rafael J. Wysocki wrote: > > > > vfs-next/net-next conflict; apply the patch below on top of the > merge. > > > > That helped, thanks. > > > > But next it ran into the BUG_ON() in line 883 of > security/selinux/avc.c . > > Disabling selinux made the kernel boot, finally. > > Ugh, that's not supposed to happen. Where was this in the boot? Do > you > have a console log? > [ 3.845808] ------------[ cut here ]------------ [ 3.845858] kernel BUG at security/selinux/avc.c:883! [ 3.845910] invalid opcode: 0000 [#1] SMP [ 3.846004] last sysfs file: [ 3.846004] Modules linked in: [ 3.846004] [ 3.846004] Pid: 1, comm: swapper Not tainted (2.6.26-next-20080718 #17) [ 3.846004] EIP: 0060:[] EFLAGS: 00010246 CPU: 0 [ 3.846066] EIP is at avc_has_perm_noaudit+0x19/0x359 [ 3.846116] EAX: 00000001 EBX: 00000006 ECX: 00000006 EDX: 00000003 [ 3.846168] ESI: f7803280 EDI: f781ee28 EBP: f781ee0c ESP: f781edb8 [ 3.846220] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 [ 3.846272] Process swapper (pid: 1, ti=f781e000 task=f7830000 task.ti=f781e000) [ 3.846324] Stack: f781ee0c 0006ee18 00000003 00000001 f781edd4 00100000 f7803280 00000001 [ 3.846608] 00000000 f7410f68 f7410f78 f7825000 f781ee10 c0491bcb f781ee64 f7402088 [ 3.846892] 00000004 019ff37b 00000006 f7803280 f781ee28 f781ee48 c04d3e38 00000000 [ 3.847181] Call Trace: [ 3.847280] [] ? __d_lookup+0x9e/0xda [ 3.847379] [] ? avc_has_perm+0x22/0x43 [ 3.847476] [] ? dput+0x34/0xf7 [ 3.847574] [] ? inode_has_perm+0x5b/0x65 [ 3.847673] [] ? selinux_inode_permission+0xff/0x108 [ 3.847771] [] ? security_inode_permission+0x1e/0x20 [ 3.847870] [] ? permission+0xc9/0xdd [ 3.847968] [] ? vfs_permission+0x10/0x12 [ 3.848070] [] ? sys_faccessat+0xb7/0x149 [ 3.848172] [] ? sysfs_create_file+0x20/0x22 [ 3.848270] [] ? flush_cpu_workqueue+0x2a/0x66 [ 3.848368] [] ? pci_mmcfg_insert_resources+0xc1/0xe8 [ 3.848467] [] ? sys_access+0x10/0x12 [ 3.848565] [] ? kernel_init+0x22b/0x24f [ 3.848664] [] ? tcp_congestion_default+0x0/0xf [ 3.848763] [] ? schedule_tail+0x1a/0x49 [ 3.848861] [] ? ret_from_fork+0x6/0x1c [ 3.848959] [] ? kernel_init+0x0/0x24f [ 3.849063] [] ? kernel_init+0x0/0x24f [ 3.849161] [] ? kernel_thread_helper+0x7/0x10 [ 3.849260] ======================= [ 3.849310] Code: c0 b8 e8 6c 7a c0 03 04 95 40 ee 75 c0 ff 40 14 c9 c3 55 89 e5 57 56 53 83 ec 48 83 7d 08 00 89 45 b8 89 55 b4 66 89 4d b2 75 04 <0f> 0b eb fe 64 8b 15 04 50 7a c0 b8 e8 6c 7a c0 0f b7 4d b2 03 [ 3.850916] EIP: [] avc_has_perm_noaudit+0x19/0x359 SS:ESP 0068:f781edb8 [ 3.851057] ---[ end trace 357a5e75e9b6bc6a ]--- [ 3.851106] Kernel panic - not syncing: Attempted to kill init! [ 3.851159] Pid: 1, comm: swapper Tainted: G D 2.6.26-next-20080718 #17 [ 3.851237] [] ? printk+0xf/0x12 [ 3.851336] [] panic+0x39/0xe0 [ 3.851410] [] do_exit+0x5b/0x6d1 [ 3.851486] [] ? apic_timer_interrupt+0x28/0x30 [ 3.851585] [] ? printk+0xf/0x12 [ 3.851682] [] ? oops_exit+0x23/0x28 [ 3.851786] [] die+0x12b/0x133 [ 3.851859] [] do_trap+0x8a/0xa3 [ 3.851934] [] ? do_invalid_op+0x0/0x76 [ 3.852039] [] do_invalid_op+0x6c/0x76 [ 3.852114] [] ? avc_has_perm_noaudit+0x19/0x359 [ 3.852212] [] ? hrtimer_start+0x126/0x140 [ 3.852312] [] error_code+0x72/0x78 [ 3.852387] [] ? avc_has_perm_noaudit+0x19/0x359 [ 3.852486] [] ? __d_lookup+0x9e/0xda [ 3.852584] [] avc_has_perm+0x22/0x43 [ 3.852659] [] ? dput+0x34/0xf7 [ 3.852757] [] inode_has_perm+0x5b/0x65 [ 3.852836] [] selinux_inode_permission+0xff/0x108 [ 3.852912] [] security_inode_permission+0x1e/0x20 [ 3.852989] [] permission+0xc9/0xdd [ 3.853070] [] vfs_permission+0x10/0x12 [ 3.853149] [] sys_faccessat+0xb7/0x149 [ 3.853227] [] ? sysfs_create_file+0x20/0x22 [ 3.853328] [] ? flush_cpu_workqueue+0x2a/0x66 [ 3.853431] [] ? pci_mmcfg_insert_resources+0xc1/0xe8 [ 3.853532] [] sys_access+0x10/0x12 [ 3.853609] [] kernel_init+0x22b/0x24f [ 3.853688] [] ? tcp_congestion_default+0x0/0xf [ 3.853797] [] ? schedule_tail+0x1a/0x49 [ 3.853896] [] ? ret_from_fork+0x6/0x1c [ 3.853996] [] ? kernel_init+0x0/0x24f [ 3.854099] [] ? kernel_init+0x0/0x24f [ 3.854198] [] kernel_thread_helper+0x7/0x10 [ 3.854276] ======================= -- 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/