From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751511AbdJEWxj (ORCPT ); Thu, 5 Oct 2017 18:53:39 -0400 Received: from ozlabs.org ([103.22.144.67]:33987 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751395AbdJEWxi (ORCPT ); Thu, 5 Oct 2017 18:53:38 -0400 From: Michael Ellerman To: Kees Cook , Abdul Haleem Cc: sachinp , Stephen Rothwell , linux-next , linuxppc-dev , linux-kernel Subject: Re: [linux-next][Oops] CPU toggle resulted in kernel crash In-Reply-To: References: <1507224106.3792.26.camel@abdul.in.ibm.com> Date: Fri, 06 Oct 2017 09:53:36 +1100 Message-ID: <87o9plyznz.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kees Cook writes: > On Thu, Oct 5, 2017 at 10:21 AM, Abdul Haleem > wrote: >> Hi, >> >> CPU off on in a loop for single cpu results in kernel panic for >> 4.14.0-rc2-next-20170929 >> >> Machine: Power 8 PowerVM LPAR >> Kernel: 4.14.0-rc2-next-20170929 >> gcc: 5.1.1 >> config : attached >> >> Steps to recreate: >> ----------------- >> The issue is not reproducible all the time. >> >> The trace occurred when CPU toggle operation for cpu14 in a loop for 10 >> iterations. >> >> the Faulting instruction address: 0xc00000000035465c >> maps to: >> >> 0xc00000000035465c is in deactivate_slab (mm/slub.c:261). >> 256 >> 257 /* Returns the freelist pointer recorded at location ptr_addr. */ >> 258 static inline void *freelist_dereference(const struct kmem_cache *s, >> 259 void *ptr_addr) >> 260 { >> 261 return freelist_ptr(s, (void *)*(unsigned long *)(ptr_addr), >> 262 (unsigned long)ptr_addr); >> 263 } >> 264 >> 265 static inline void *get_freepointer(struct kmem_cache *s, void *object) > > This looks like slub cache corruption (a NULL pointer dereference for > the heap freelist). Abdul, try turning on CONFIG_SLUB_DEBUG, and booting with slub_debug=FZP on the command line. cheers