Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp410037imm; Mon, 1 Oct 2018 11:54:05 -0700 (PDT) X-Google-Smtp-Source: ACcGV60N0ZSY3RWaetXUdHu5xeJYBtGwgqvjQW/aLfkN6KDiipRKgsXyHQLaayV3JCslideJ1onr X-Received: by 2002:a65:5347:: with SMTP id w7-v6mr11636450pgr.17.1538420044989; Mon, 01 Oct 2018 11:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538420044; cv=none; d=google.com; s=arc-20160816; b=NVRg2xsjTffSco1NiCWzJMbd6h5WaPrjVzLoWX8xwi9L3MKjS0tbrDREvop9K/d1BT 9IR/Jq3wGC2L0q6iUZ8KzmUVQbXK4cCVLFTMpHlJFS+fOumVDQesQdPDQPC42mcLuFXa kwzdqm7t0K4B8Qd6I+DTlq+bzyf9At6Rc0Kw1Tscwe6GDp0qbN7vKFQ3/pAQzGYwFXs6 6ttkFSkc64LWiQ8evsvQlEYw0BRtuLaFKxNDPT0OCeJWBDcZJo6nxfkwFZgQjJ46jdmG If3tDl2Tlhcg587odA8K59V2tdEBdV5gf4lIZrHOUsy2fqczwOal49cVAVtzifWjG4DS ua6Q== 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=ks8aQKngydDGhwlATvyDlt0jiv3564bWZDPWlTAPtTk=; b=VGluI1pocVkMM1rFUmn+PRYsbsfltjs5QVJNxlkOTlYtVLneDeL7k7SwdCRlUzDN+7 T2ND76hfCaVqH9iOapYSD2C8IDfNld+ZhCRSv81+kPpK1MUyVRU01FPy91lng/187gXV uqkTwxj6DvjDU+paOJ9jNem5rp+5M28G1eS+6CoocrvvJ61AQgIxsYyqMyPlM1P74mAD GnZTDt/0VJpXYA/3BCFkIH0Z99VaxTW7T9ytl/pAxhgYXiNNU015DvAiB+XIGP91H9Gy zfvqIgzG1HwyiS/399hUhf4aaMc670RSERw6p0JWAze0p+HlxjcJItRns3NH5fSZhc05 ZGtQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l22-v6si5461292pgh.593.2018.10.01.11.53.49; Mon, 01 Oct 2018 11:54:04 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726476AbeJBBct (ORCPT + 99 others); Mon, 1 Oct 2018 21:32:49 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:39508 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725975AbeJBBct (ORCPT ); Mon, 1 Oct 2018 21:32:49 -0400 Received: by mail-pf1-f194.google.com with SMTP id j8-v6so9903367pff.6; Mon, 01 Oct 2018 11:53:39 -0700 (PDT) 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=ks8aQKngydDGhwlATvyDlt0jiv3564bWZDPWlTAPtTk=; b=IauZHHo9seNAbU1SXmzGWk2j8uvQPhnTw4WFdeN3SeU3HrwzE3fPspr2YEbTWbdir+ NuWxyvni5hzUMLtMudM3aG8pWBaD/TJL5EDMJgMgQ7cXXabtLL3kaegJxrcBgNjVnR35 xH6ZZIBlqyq0Mze9GM3U8sxwp1NcDym4jW1HYegWT+VZ4iYtSbdCrj/JW/b3Xq8ToxJO TW7SapOOfdvrIHKiYnC39g8UXOs6EQpVhI7aHKwnvMhJ8dRuKPWsCqpZ8qBdMBpM4E3q xv7ZLFsCJ4lluWRb504F3aFujkvjw9ZQ5m65CNkDYb2F0tyFZITActhT/BfkKzPzOof4 N/IQ== X-Gm-Message-State: ABuFfojNftHdSuy5dwujSI2shN7Ztxxb/Ndpv/sJ7BOauT31zPWCw4in /sgI8SW87hU6N1aAvgHqxXg= X-Received: by 2002:a17:902:4e:: with SMTP id 72-v6mr13087199pla.318.1538420018433; Mon, 01 Oct 2018 11:53:38 -0700 (PDT) Received: from garbanzo.do-not-panic.com (c-73-71-40-85.hsd1.ca.comcast.net. [73.71.40.85]) by smtp.gmail.com with ESMTPSA id c69-v6sm21034663pfg.2.2018.10.01.11.53.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Oct 2018 11:53:37 -0700 (PDT) Received: by garbanzo.do-not-panic.com (sSMTP sendmail emulation); Mon, 01 Oct 2018 11:53:33 -0700 Date: Mon, 1 Oct 2018 11:53:33 -0700 From: Luis Chamberlain To: Bjorn Andersson Cc: Niklas Cassel , 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: <20181001185333.GH5238@garbanzo.do-not-panic.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. > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git/log/?h=char-misc-linus The patch looks good. Next time please send patches to the maintainer as well. Luis