Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp392138imm; Mon, 1 Oct 2018 11:34:02 -0700 (PDT) X-Google-Smtp-Source: ACcGV62yBrf7c09QaSux9jYd9asQTtEMSyi/L5naFui7JHRMOclTnU+aRFB1o53LNS2dO1UKcmOA X-Received: by 2002:a17:902:b285:: with SMTP id u5-v6mr12902137plr.221.1538418842625; Mon, 01 Oct 2018 11:34:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538418842; cv=none; d=google.com; s=arc-20160816; b=zoUoB2/+VNBlegcJ3Re0nSmWAVVh0OmZkAzjMyDdPYBwuZTgPdN4Vl7vud1NFIAT8b xqy5IxOXWeFJ85p6Fa8ZVGP427XHI6fZHAehfsl3FT/MknXH1C7PJTbUJJfGJ2yFwHaF /8dSRteJ+qr7avVE69Zu/+KIV4YmDBSUT0EKDpJPXzWHZWBjivKvhZJML9AwZHf5GlZg OX5jUOx0SA+nlujAWvFG+uPWL2HWrIXr/Vs+79H0V/7fN4GnNhudcvIjYgN23AeJIwWw srtlg6PCuh4cwtspvm0St5hwVA/gSF9Va0OS7ineEWS32L6xn/px99jWHTC2ar8OjNRW 0BFA== 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:dkim-signature; bh=mdx2QaCA/V3pIaAAVa1il4XPojE1oXFXIaI6oUWb55o=; b=U6k8oHhP+wt4l59PWuInMRqF9iG5oOYPEqr6iffdipUd2WgyJL3SdrEt535CsqSK0S MVjrcCs/Wh6sxyZ5nnSPDJfY7G5MXNL9pSJ/CxZoUXXFWM3o5Dm3hpaqi45Hrce40rUh paqJnOQPysSYzFbVYjNMgxniNBLRkIVkNbTwDVmvL3WYTOsTf0y6PBxxD3nwWgjbAAwq O+QZHZfYK3/mpRTk0LK+al9YCuuTnn7YSHholA4ZDyvueMZc3jwbEzDttQ1jkxRtntDE 1jfg1fT5jBfE8km/t1rAThZkLIzu6OTLOh9zMl9txjLfh5Vk0FPaS1eYZ7bQvrX3Kizr rUUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EE4D+wDo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w17-v6si12924019plp.335.2018.10.01.11.33.45; Mon, 01 Oct 2018 11:34:02 -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; dkim=pass header.i=@linaro.org header.s=google header.b=EE4D+wDo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726450AbeJBBLY (ORCPT + 99 others); Mon, 1 Oct 2018 21:11:24 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:47006 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726308AbeJBBLY (ORCPT ); Mon, 1 Oct 2018 21:11:24 -0400 Received: by mail-pg1-f193.google.com with SMTP id a5-v6so1499967pgv.13 for ; Mon, 01 Oct 2018 11:32:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=mdx2QaCA/V3pIaAAVa1il4XPojE1oXFXIaI6oUWb55o=; b=EE4D+wDowS1qHfRw5zY0awFyPg+zf7rJqIT1bkAU2lkxA7FcIALJSseztnP4fAHMP/ T+3BQJSUvDIr3mjxJFupbEhUugfr39YsrVvakpgXEdZ4wrGYYLKPRrvEsRa8v0SKrR7h 1C8bYuUDwTrk41D122KZOHOxus/bo9DLHDeHA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=mdx2QaCA/V3pIaAAVa1il4XPojE1oXFXIaI6oUWb55o=; b=VkK8OvDs+qNbv5me+1qQ+zDhRRHPq8t8PurnbO/09Kmvab5cYlc+JHIVsVi/0G2vBq sHVpdSXdxj0bjdWXv3eh0DqM95XsjXHksGte1el9VYOIuVTDBPfSV4G3ZXKEiaG+KaKU wPr5HuUhEFN3zA81eYwAkLmHJ/TkeqS+5oSu5K3s7TSrCDNbyjQFimT8dLut6FoD2Btw RR2IpzglrjdvDBp8J8nT36fvDTB/L0uY7AfVju9dUmJOrxMbuIhEtDGcOtyvgWDjpoGu 0JACwQVzNkulVqeyxspHKuSvBu7tRZH8ow+lTvNAa5u3pL8BnFPynkff5E6lEsp4pFnJ HjZg== X-Gm-Message-State: ABuFfoidWACi2C+7V/Xs/nZk6u4z/kh/0zkTSJEva2AQLFtyvk4MV34u A1+W4eC3SVfau99mKbJLaeY3Jg== X-Received: by 2002:a63:c84c:: with SMTP id l12-v6mr11066680pgi.77.1538418738972; Mon, 01 Oct 2018 11:32:18 -0700 (PDT) Received: from minitux (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id q25-v6sm26637063pfk.154.2018.10.01.11.32.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Oct 2018 11:32:18 -0700 (PDT) Date: Mon, 1 Oct 2018 11:32:16 -0700 From: Bjorn Andersson To: Luis Chamberlain , Niklas Cassel Cc: Greg Kroah-Hartman , "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: <20181001183216.GM2523@minitux> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181001181835.GG5238@garbanzo.do-not-panic.com> 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 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. [1] https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git/log/?h=char-misc-linus Regards, Bjorn