From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751951AbdAYKow (ORCPT ); Wed, 25 Jan 2017 05:44:52 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:44582 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751672AbdAYKov (ORCPT ); Wed, 25 Jan 2017 05:44:51 -0500 Date: Wed, 25 Jan 2017 11:45:03 +0100 From: Greg KH To: Mathieu Poirier Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] coresight: fix kernel panic caused by invalid CPU Message-ID: <20170125104503.GA13493@kroah.com> References: <1485193284-31636-1-git-send-email-mathieu.poirier@linaro.org> <1485193284-31636-2-git-send-email-mathieu.poirier@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1485193284-31636-2-git-send-email-mathieu.poirier@linaro.org> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 23, 2017 at 10:41:22AM -0700, Mathieu Poirier wrote: > From: Wang Nan > > Commit d52c9750f150 ("coresight: reset "enable_sink" flag when need be") > caused a kernel panic because of the using of an invalid value: after > 'for_each_cpu(cpu, mask)', value of local variable 'cpu' become invalid, > causes following 'cpu_to_node' access invalid memory area. You should add a "Fixes:" tag when you write something like this, as you have all of the information here. I'll add it, and the stable tag as well... thanks, greg k-h From mboxrd@z Thu Jan 1 00:00:00 1970 From: gregkh@linuxfoundation.org (Greg KH) Date: Wed, 25 Jan 2017 11:45:03 +0100 Subject: [PATCH 1/3] coresight: fix kernel panic caused by invalid CPU In-Reply-To: <1485193284-31636-2-git-send-email-mathieu.poirier@linaro.org> References: <1485193284-31636-1-git-send-email-mathieu.poirier@linaro.org> <1485193284-31636-2-git-send-email-mathieu.poirier@linaro.org> Message-ID: <20170125104503.GA13493@kroah.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, Jan 23, 2017 at 10:41:22AM -0700, Mathieu Poirier wrote: > From: Wang Nan > > Commit d52c9750f150 ("coresight: reset "enable_sink" flag when need be") > caused a kernel panic because of the using of an invalid value: after > 'for_each_cpu(cpu, mask)', value of local variable 'cpu' become invalid, > causes following 'cpu_to_node' access invalid memory area. You should add a "Fixes:" tag when you write something like this, as you have all of the information here. I'll add it, and the stable tag as well... thanks, greg k-h