Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933328AbZAOV4c (ORCPT ); Thu, 15 Jan 2009 16:56:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932732AbZAOVzg (ORCPT ); Thu, 15 Jan 2009 16:55:36 -0500 Received: from mx2.mail.elte.hu ([157.181.151.9]:59503 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1765134AbZAOVzd (ORCPT ); Thu, 15 Jan 2009 16:55:33 -0500 Date: Thu, 15 Jan 2009 22:54:36 +0100 From: Ingo Molnar To: Vegard Nossum Cc: linux-kernel@vger.kernel.org, Andrew Morton , "Rafael J. Wysocki" , Pekka Enberg , David Howells , Michael LeMay , James Morris , Stephen Smalley , Paul Moore , Eric Paris Subject: Re: [slab corruption] BUG key_jar: Poison overwritten Message-ID: <20090115215436.GA4314@elte.hu> References: <20090115181612.GA27762@elte.hu> <19f34abd0901151258u53232e89rac76c40334703fe2@mail.gmail.com> <20090115210105.GA22416@elte.hu> <19f34abd0901151317l7e4ef229t3dd4fdfdeffaffec@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <19f34abd0901151317l7e4ef229t3dd4fdfdeffaffec@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian 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 Content-Length: 5162 Lines: 97 * Vegard Nossum wrote: > On Thu, Jan 15, 2009 at 10:01 PM, Ingo Molnar wrote: > > > > * Vegard Nossum wrote: > > > >> On Thu, Jan 15, 2009 at 7:16 PM, Ingo Molnar wrote: > >> > > >> > -tip testing found the rather scary looking slab corruption: > >> > > >> > [ 35.419875] CPU0 attaching sched-domain: > >> > [ 35.420101] domain 0: span 0-1 level CPU > >> > [ 35.425883] groups: 0 1 > >> > [ 35.428527] CPU1 attaching sched-domain: > >> > [ 35.432010] domain 0: span 0-1 level CPU > >> > [ 35.437729] groups: 1 0 > >> > [ 37.380005] eth0: no IPv6 routers present > >> > [ 44.478286] ============================================================================= > >> > [ 44.482064] BUG key_jar: Poison overwritten > >> > [ 44.482064] ----------------------------------------------------------------------------- > >> > [ 44.482064] > >> > [ 44.482064] INFO: 0xf5f320c0-0xf5f320c0. First byte 0x6a instead of 0x6b > >> > [ 44.482064] INFO: Allocated in key_alloc+0xe7/0x30e age=291 cpu=1 pid=2815 > >> > [ 44.482064] INFO: Freed in key_cleanup+0xd8/0xdd age=292 cpu=1 pid=2520 > >> > [ 44.482064] INFO: Slab 0xc1f9cfb8 objects=21 used=2 fp=0xf5f320c0 flags=0x400000c3 > >> > [ 44.482064] INFO: Object 0xf5f320c0 @offset=192 fp=0xf5f32240 > >> > [ 44.482064] > >> > [ 44.482064] Bytes b4 0xf5f320b0: 7c 05 ff ff 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a |.��ZZZZZZZZZZZZ > >> > [ 44.482064] Object 0xf5f320c0: 6a 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b jkkkkkkkkkkkkkkk > >> > [ 44.482064] Object 0xf5f320d0: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b kkkkkkkkkkkkkkkk > >> > [ 44.482064] Object 0xf5f320e0: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b kkkkkkkkkkkkkkkk > >> > [ 44.482064] Object 0xf5f320f0: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b kkkkkkkkkkkkkkkk > >> > [ 44.482064] Object 0xf5f32100: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b kkkkkkkkkkkkkkkk > >> > [ 44.482064] Object 0xf5f32110: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b kkkkkkkkkkkkkkkk > >> > [ 44.482064] Object 0xf5f32120: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b kkkkkkkkkkkkkkkk > >> > [ 44.482064] Object 0xf5f32130: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b kkkkkkkkkkkkkkkk > >> > [ 44.482064] Object 0xf5f32140: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b a5 kkkkkkkkkkk� > >> > [ 44.482064] Redzone 0xf5f3214c: bb bb bb bb ���� > >> > [ 44.482064] Padding 0xf5f32174: 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a ZZZZZZZZZZZZ > >> > [ 44.482064] Pid: 2832, comm: sudo Not tainted 2.6.29-rc1-tip-01097-gf5d0b1b-dirty #16445 > >> > [ 44.482064] Call Trace: > >> > [ 44.482064] [] print_trailer+0xcd/0xd5 > >> > [ 44.482064] [] check_bytes_and_report+0x78/0x94 > >> > [ 44.482064] [] check_object+0xa9/0x191 > >> > [ 44.482064] [] __slab_alloc+0x365/0x42c > >> > [ 44.482064] [] ? trace_hardirqs_off+0xb/0xd > >> > [ 44.482064] [] kmem_cache_alloc+0x64/0xc1 > >> > [ 44.482064] [] ? key_alloc+0xe7/0x30e > >> > [ 44.482064] [] ? key_alloc+0xe7/0x30e > >> > [ 44.482064] [] key_alloc+0xe7/0x30e > >> > [ 44.482064] [] keyring_alloc+0x24/0x58 > >> > [ 44.482064] [] install_session_keyring_to_cred+0x43/0x92 > >> > [ 44.482064] [] lookup_user_key+0xe0/0x30b > >> > [ 44.482064] [] keyctl_get_keyring_ID+0x12/0x2e > >> > [ 44.482064] [] sys_keyctl+0x36/0xe3 > >> > [ 44.482064] [] sysenter_do_call+0x12/0x35 > >> > [ 44.482064] FIX key_jar: Restoring 0xf5f320c0-0xf5f320c0=0x6b > >> > [ 44.482064] > >> > [ 44.482064] FIX key_jar: Marking all objects used > >> > > >> > Config attached. The system seemed to stay intact after this incident. > >> > >> > >> Are you sure this is the right config? > >> > >> # Security options > >> # > >> # CONFIG_KEYS is not set > >> > >> ...sys_keyctl() returns -ENOSYS...!? > > > > no, sorry. The right 'bad' config attached. > > Are you sure, is this expected? > > CC kernel/printk.o > cc1: warnings being treated as errors > arch/x86/kernel/cpu/intel_cacheinfo.c: In function 'show_cache_disable': > arch/x86/kernel/cpu/intel_cacheinfo.c:710: error: unused variable 'mask' > arch/x86/kernel/cpu/intel_cacheinfo.c: In function 'store_cache_disable': > arch/x86/kernel/cpu/intel_cacheinfo.c:745: error: unused variable 'mask' > make[2]: *** [arch/x86/kernel/cpu/intel_cacheinfo.o] Error 1 > make[1]: *** [arch/x86/kernel/cpu] Error 2 > make: *** [arch/x86/kernel] Error 2 > make: *** Waiting for unfinished jobs.... > > Will restart make with CONFIG_ALLOW_WARNINGS=y... yes, i had that off via a local patch. Ingo -- 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/