Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp45595imm; Mon, 1 Oct 2018 06:28:47 -0700 (PDT) X-Google-Smtp-Source: ACcGV63uLOE+U8N9TlEd6rNoB5M8Gj3k6DBRDz2j8q2ZIbDb6P5gOcSFmd4507E34lNf95rHoB0t X-Received: by 2002:a62:7501:: with SMTP id q1-v6mr11393093pfc.225.1538400527449; Mon, 01 Oct 2018 06:28:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538400527; cv=none; d=google.com; s=arc-20160816; b=Cv7jqB8n6g+WaQzLObSqgZpW/fHVSf7He5Z3ZlbErnPpQzjMJ7NhLcFXZ3FJyANNQO 3pLugFyig+5UuDNWn47KnlssuO+qTNJJ3NzuRTCQeuqQzfZl+sfM+rU9Lnue16/8O2SW WNsC3PQgqz1xloYH9x0LjKJ1MCSRpEII62i0bClAy0KZ7gTUFHCHfVrrXoU1tBpbhhQ2 v32dF+vpolOa8UUDd5f5F8/E7f6c0TEsJaGbcLoJ0modQKHCQTakWr4XNDrxjTIoIq4p b/7Lcx8S5tzetyIe66aQ6J3cl2+V+KO6Ep+EyMQQLHYDuMroAoIESa4n5L39P2ZeS8aA 1krg== 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=+HMGxKITOXk3F1e3fNwynu4kSWVS6aRObk8kt+wAek4=; b=bg5pj3Odzsmu4R+nlHxvzQVDNBubGwMZy6OmKW5zne21eBCDH4t2b1Nl7qwWCS1Zjo /+wLeI/kBbPa2vyD3fpT9ZwUENxGWXx3mfaN38WJOtPlJRNT6Nxc3r7DOZywINQ0lo8c EtvvU00LEB8/E6MQzbfQyeLOdD1hdXQlCR37TorbR8kP8SiBeYgSM9G3b7e9NUSFadQ8 KO+1HoBaXgNhJIX6JpVh2D+9Q2TXddlPWlV5jfjhO0sB/5myF8WDNFZl8wKGmJNWtNap Ujjng5SDi6+KUr5WHPbCqnIBbZHSa6oEtDR1tfBFU5QWET/ixDV1uFhiLb3mdjSx9iOk 39jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iorbSBw3; 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 d14-v6si12577012pls.477.2018.10.01.06.28.32; Mon, 01 Oct 2018 06:28:47 -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=iorbSBw3; 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 S1729479AbeJAUE5 (ORCPT + 99 others); Mon, 1 Oct 2018 16:04:57 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:47095 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729282AbeJAUE5 (ORCPT ); Mon, 1 Oct 2018 16:04:57 -0400 Received: by mail-lf1-f67.google.com with SMTP id q2-v6so9795371lfc.13 for ; Mon, 01 Oct 2018 06:27:07 -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=+HMGxKITOXk3F1e3fNwynu4kSWVS6aRObk8kt+wAek4=; b=iorbSBw3GCi5iNdDqz5za4C/tUcKZenBOgii3Mqs8gDP0graKx9APk0RwhriWHqdO2 wNSeTOD9AeAgalbkA5i1gcaEEZmfujSUk3otlhNj5/kccdPAymjEZpoT+BtYf+qctoKE lOTBtvcfwLcBArLUJoPhhdJsXJLq3QLpQgFH0= 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=+HMGxKITOXk3F1e3fNwynu4kSWVS6aRObk8kt+wAek4=; b=kSuT2Fs6Zvq3dPUsrjlEScj1lbIu+nbB2ALLpRDzFFMvqdSjr7pkIxVqAZWJ24Vgzi LKNphKgbCtFLRyQJGzhx33Ss/CrItGpCotyjYCGZKv+h4MQk8MGBnUb5z/VBwJcnFLXP 6UaBcqCXkfm7PbspBDRLzZjBfTGeDbngpO0Kzg1zKPlAoBjhnYlKWh7l6cqFXS8veYzV RFEDtnmAMw+TeS7dwKjJFyKWv4huwrMT8Jo8k602uxa/euT60XWvhbjvG7Rp3Ezc33Oh aS1/IiJ0StYl/++1JOMO1bkyseiqohK6AXWSpvGTdQdfr2FQbu9gRcuDjfV0F2evZbvz 4PrQ== X-Gm-Message-State: ABuFfoiVDcb5ZsmMwAVfylhhpVJbOtKj6poUfXAjZyTjLIM0XoC+yIfr 0nJnMEctB91vsmLbAwZe1s0DPg== X-Received: by 2002:a19:6719:: with SMTP id b25-v6mr5428664lfc.54.1538400426125; Mon, 01 Oct 2018 06:27:06 -0700 (PDT) Received: from centauri.lan (h-229-118.A785.priv.bahnhof.se. [5.150.229.118]) by smtp.gmail.com with ESMTPSA id p80-v6sm2729227ljb.19.2018.10.01.06.27.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Oct 2018 06:27:05 -0700 (PDT) Date: Mon, 1 Oct 2018 15:27:03 +0200 From: Niklas Cassel To: Bjorn Andersson Cc: Greg Kroah-Hartman , "Luis R. Rodriguez" , "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: <20181001132703.GA12193@centauri.lan> References: <20180920010938.10315-1-bjorn.andersson@linaro.org> <20180920052204.GA15695@kroah.com> <20180920073415.GC1367@tuxbook-pro> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180920073415.GC1367@tuxbook-pro> 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 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. Kind regards, Niklas