From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kernel.org ([198.145.29.99]:52056 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726493AbeJaDy4 (ORCPT ); Tue, 30 Oct 2018 23:54:56 -0400 Date: Tue, 30 Oct 2018 20:00:51 +0100 From: Greg Kroah-Hartman To: Santosh Shilimkar Cc: Marc Zyngier , Santosh Shilimkar , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, stable@vger.kernel.org Subject: Re: [PATCH] soc: ti: QMSS: Fix usage of irq_set_affinity_hint Message-ID: <20181030190051.GA1697@kroah.com> References: <20181030111103.12110-1-marc.zyngier@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: stable-owner@vger.kernel.org List-ID: On Tue, Oct 30, 2018 at 10:18:08AM -0700, Santosh Shilimkar wrote: > Hi Greg, > > On 10/30/2018 4:11 AM, Marc Zyngier wrote: > > The Keystone QMSS driver is pretty damaged, in the sense that it > > does things like this: > > > > irq_set_affinity_hint(irq, to_cpumask(&cpu_map)); > > > > where cpu_map is a local variable. As we leave the function, this > > will point to nowhere-land, and things will end-up badly. > > > > Instead, let's use a proper cpumask that gets allocated, giving > > the driver a chance to actually work with things like irqbalance > > as well as have a hypothetical 64bit future. > > > > Signed-off-by: Marc Zyngier > > --- > > I found this one by inspection after finding a similar bug in an > > unrelated driver. It is only compile-tested. It would probably > > a Cc stable, but that's Santosh's decision. > > Would be able to apply this fix from Marc for stable or it needs > to be re-posted with CC to stable ? This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.