Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp732137imm; Mon, 1 Oct 2018 18:14:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV62gT1yb3E4LxLHwY7fz+Ktcb9NdWkW2ux2ZPIDqwFX7z/ZXMUxTGABdx6l5trGjmXUElClX X-Received: by 2002:a17:902:7b84:: with SMTP id w4-v6mr14012140pll.32.1538442853092; Mon, 01 Oct 2018 18:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538442853; cv=none; d=google.com; s=arc-20160816; b=rH1bjOa1jPyQswzJBid9rUxuxMcRQ1g1XO9/CP4NY0SRj1qpeDheqbBcE6B/FobEb3 CYA0TTOYoMKfTCNxB/uCyT86AL7GdtCLEHLhnxU++WXF9ibBoLJ2FWRND/c42OClkdpt 7q6JoUfvMyoT7cjfblhf3ShsjZSgYkqy0cuT31m7onWjgPFbnWjsEtb5VbxwFNazdpRB CUGxELnLyjqoT/PTVKc7srNET04Ohy3ZZ0VapZ3w2CSGp1NAjeKkft5YWH3LoqKIrTJO mUvtU7AoXwQTzdH8ldTzIAgwWQ/E3gHn5bH9MoCMQAzLX4/6QXWXhZvAlqpXd0KyEzmC 5uIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=XknzKrWS+UdAl33DlEGvaF0s8Ywkv7gjIa9wf0ude/s=; b=CHdPU4c5gu/IqKfqFfwtHld0PeT3rt9RhiT7Vx2w/1PnqSCPeohA72qKItaHPPtEmA iGF+Z55PbpEU0EPnDGVQF1eVsknHfHLePBl6WpX4Eo7QuZTOqD12EJRdxWDcQjuwYSaR 1HYkDv+ny5PbDv5cdxBT8ItERzp/mkkyiSsOoMX4npPd2ADgUyuRTQI/w7QY77y1k1JN Xgd5dxFj2R7W2XuIL4anjKeutYN7fIWQv31NSc5XdjPDheRM7ZxHoJNss/rp7/w2s3bX XXwM92vzyRHTcjhFs4TwJbbvp2W97qge/z/f6UaeFisYWTSE2ZeLXzrLSWGYNIJWjYeQ nCUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d35-v6si14493953pla.116.2018.10.01.18.13.59; Mon, 01 Oct 2018 18:14:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727007AbeJBHyC (ORCPT + 99 others); Tue, 2 Oct 2018 03:54:02 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37452 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726459AbeJBHyC (ORCPT ); Tue, 2 Oct 2018 03:54:02 -0400 Received: from localhost (24-104-73-23-ip-static.hfc.comcastbusiness.net [24.104.73.23]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 32F9482; Tue, 2 Oct 2018 01:13:27 +0000 (UTC) Date: Mon, 1 Oct 2018 13:58:52 -0700 From: Greg Kroah-Hartman To: Bjorn Andersson Cc: Luis Chamberlain , Niklas Cassel , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, stable@vger.kernel.org, Rishabh Bhatnagar Subject: Re: [PATCH] firmware: Always initialize the fw_priv list object Message-ID: <20181001205852.GA24030@kroah.com> References: <20180920010938.10315-1-bjorn.andersson@linaro.org> <20180920052204.GA15695@kroah.com> <20180920073415.GC1367@tuxbook-pro> <20181001132703.GA12193@centauri.lan> <20181001181835.GG5238@garbanzo.do-not-panic.com> <20181001183216.GM2523@minitux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181001183216.GM2523@minitux> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 01, 2018 at 11:32:16AM -0700, Bjorn Andersson wrote: > On Mon 01 Oct 11:18 PDT 2018, Luis Chamberlain wrote: > > > On Mon, Oct 01, 2018 at 03:27:03PM +0200, Niklas Cassel wrote: > > > On Thu, Sep 20, 2018 at 12:34:15AM -0700, Bjorn Andersson wrote: > > > > On Wed 19 Sep 22:22 PDT 2018, Greg Kroah-Hartman wrote: > > > > > > > > > On Wed, Sep 19, 2018 at 06:09:38PM -0700, Bjorn Andersson wrote: > > > > > > When freeing the fw_priv the item is taken off the list. This causes an > > > > > > oops in the FW_OPT_NOCACHE case as the list object is not initialized. > > > > > > > > > > > > Make sure to initialize the list object regardless of this flag. > > > > > > > > > > > > Fixes: 422b3db2a503 ("firmware: Fix security issue with request_firmware_into_buf()") > > > > > > Cc: stable@vger.kernel.org > > > > > > Cc: Rishabh Bhatnagar > > > > > > Signed-off-by: Bjorn Andersson > > > > > > --- > > > > > > drivers/base/firmware_loader/main.c | 7 +++++-- > > > > > > 1 file changed, 5 insertions(+), 2 deletions(-) > > > > > > > > > > Is this being triggered by some hardware somewhere today? Or is this > > > > > just a fix found by code inspection? > > > > > > > > > > > > > Hi Greg, > > > > > > > > Yes, I found this issue while attempting to load the firmware and boot > > > > one of the DSPs on one of my Qualcomm dev boards after v4.19-rc4 and it > > > > can be reproduced on the upstream Dragonboard 820c. > > > > > > I still see this issue on v4.19-rc6. > > > > > > It would be nice if this fix gets merged before v4.19 gets released. > > > > This is the first I hear of this and this patch, so you should re-send > > it and I can review it. Also please Cc Rishabh. > > > > Rishabh, had you heard of this and can you confirm as well as > > 422b3db2a503 was your commit? > > > > Thanks Luis, > > It seems like Greg did pick the patch yesterday [1], so hopefully he > sends himself a pull request this week for inclusion in v4.19-rc7. That was going to be my plan :) thanks, greg k-h