Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754069AbcDFOiQ (ORCPT ); Wed, 6 Apr 2016 10:38:16 -0400 Received: from e23smtp06.au.ibm.com ([202.81.31.148]:43219 "EHLO e23smtp06.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750877AbcDFOiP (ORCPT ); Wed, 6 Apr 2016 10:38:15 -0400 X-IBM-Helo: d23dlp03.au.ibm.com X-IBM-MailFrom: srikar@linux.vnet.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org Date: Wed, 6 Apr 2016 18:56:37 +0530 From: Srikar Dronamraju To: Anton Blanchard Cc: Peter Zijlstra , Ingo Molnar , tglx@linutronix.de, efault@gmx.de, htejun@gmail.com, linux-kernel@vger.kernel.org, tj@kernel.org, torvalds@linux-foundation.org, zhaolei@cn.fujitsu.com, yangds.fnst@cn.fujitsu.com, hpa@zytor.com, Stephen Rothwell , Michael Ellerman , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] sched/cpuacct: Check for NULL when using task_pt_regs() Message-ID: <20160406132637.GA2108@linux.vnet.ibm.com> Reply-To: Srikar Dronamraju References: <20160404140312.GA28495@linux.vnet.ibm.com> <20160406065436.GB3078@gmail.com> <20160406203219.788ae7cf@kryten> <20160406110803.GI2906@worktop> <20160406215950.04bc3f0b@kryten> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20160406215950.04bc3f0b@kryten> User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16040613-0021-0000-0000-00000366BBB7 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 433 Lines: 19 * Anton Blanchard [2016-04-06 21:59:50]: > Looks good, and the patch below does fix the oops for me. > > Anton > -- > > task_pt_regs() can return NULL for kernel threads, so add a check. > This fixes an oops at boot on ppc64. > > Signed-off-by: Anton Blanchard Works for me too. Reported-and-Tested-by: Srikar Dronamraju -- Thanks and Regards Srikar Dronamraju