Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934667AbcKJPzF (ORCPT ); Thu, 10 Nov 2016 10:55:05 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:34990 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934327AbcKJPzD (ORCPT ); Thu, 10 Nov 2016 10:55:03 -0500 Date: Thu, 10 Nov 2016 16:55:11 +0100 From: Greg Kroah-Hartman To: "Luis R. Rodriguez" Cc: Yves-Alexis Perez , linux-kernel@vger.kernel.org, Yves-Alexis Perez , Ming Lei , Johannes Berg , Jouni Malinen , Kees Cook , Jiri Kosina , Jiri Slaby , Tom Gundersen , Kay Sievers , Josh Boyer , Dmitry Torokhov , Andy Lutomirski , Harald Hoyer , Seth Forshee , Bjorn Andersson , Daniel Wagner , stable@vger.kernel.org Subject: Re: [PATCH] firmware: fix async/manual firmware loading Message-ID: <20161110155511.GA10806@kroah.com> References: <20161030145048.6291-1-corsac@corsac.net> <20161030145048.6291-2-corsac@corsac.net> <20161109203921.GH13978@wotan.suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161109203921.GH13978@wotan.suse.de> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1323 Lines: 35 On Wed, Nov 09, 2016 at 09:39:21PM +0100, Luis R. Rodriguez wrote: > On Sun, Oct 30, 2016 at 03:50:48PM +0100, Yves-Alexis Perez wrote: > > From: Yves-Alexis Perez > > > > wait_for_completion_interruptible_timeout() return value is either > > -ERESTARTSYS (in case it was interrupted), 0 (in case the timeout expired) > > or the number of jiffies left until timeout. The return value is stored in > > a long, but in _request_firmware_load() it's silently casted to an int, > > which can overflow and give a negative value, indicating an error. > > > > Fix this by re-using the timeout variable and only set retval when it's > > safe. > > Please amend the commit log as I noted in the previous response, and > resend. > > > Signed-off-by: Yves-Alexis Perez > > Cc: Ming Lei > > Cc: "Luis R. Rodriguez" > > Cc: Greg Kroah-Hartman > > Other than the commit log you can add on you resend: > > Acked-by: Luis R. Rodriguez. > > Modulo I don't personally thing this this is sable material but I'll let > Greg decide. Does it fix a regression? A reported issue with an older kernel version that people have hit? It shouldn't be hard to figure out if a patch should be in stable or not... thanks, greg k-h