Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp930125ybk; Fri, 15 May 2020 18:08:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyayzLKMXownZZfiAZho3jT0uqT84tKRg0JQQKGSbSU9iBUY4QXIV4AJJxK0ozy09VZyI0+ X-Received: by 2002:a17:906:9605:: with SMTP id s5mr5285840ejx.135.1589591299843; Fri, 15 May 2020 18:08:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589591299; cv=none; d=google.com; s=arc-20160816; b=FnEYygzVrct0r4akUKMjXIWOz/v+e4jvGx/upljhObP8B3AHZBHN9WRQ5lKFK9S9i7 X82fhsZAyJTMzw6UctjCNNCgjHsexCXs5pWegrir3OBp/JBcGmPjObVKAAeJaWgzxEhx OaKJWEIew0TqWPdIZNtkP+beMaXWEwez6CpKkT1TgBmFx/cBjGYVynPc33q1uqT6CUPE hHiTL/6k499BrXDb+dgO1L4IZ5uDC0ogc/CktYJADMiyP61QRmELz4bT0kc2JgbOYG6h yh3hSbShrBEqYtbLhnDJFNavReaOvev6XncCPXXem8weSc3Xo81EvQD0rNI1fMrC8AwI 2ELw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=m5wWi4zwve7Yga52EBlx0nkz/MFClZtxjUAQqODyXXw=; b=KSuorKJjXqtrCzIaQLZ7GFY7WXL7iuC0LP00vY9go8lDsP4+BLbt3emiH6F/b4tu/m KzLNu4SF56ApR/3SXnVsTfPUv9E2cHIMeH/qCM1eSRAWexEduvtiJ56IkMAUFzINqBvU 72NHtbF7AwxNvFDumma4FPw/tex++CbF6Yk8v0fjwRK8R6ZErFsi3cvNTxlF0/jbsaJA /43p04rXdBKKbasbxdna8pBILL62+I/YOtqRQj2F5dUyMZyWluX3A0vDUTOmxS8Uz4w3 Vqkp+yuUAWk2dM+sH0gS6tSagRDzAuycjOwuYxd1FyzwKnjTwbxA8GQh0Fol6flsmvLr iKWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si111961edy.546.2020.05.15.18.07.56; Fri, 15 May 2020 18:08:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727856AbgEPBF6 (ORCPT + 99 others); Fri, 15 May 2020 21:05:58 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:45929 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726198AbgEPBF6 (ORCPT ); Fri, 15 May 2020 21:05:58 -0400 Received: by mail-pl1-f194.google.com with SMTP id u22so1595898plq.12; Fri, 15 May 2020 18:05:56 -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:content-transfer-encoding :in-reply-to:user-agent; bh=m5wWi4zwve7Yga52EBlx0nkz/MFClZtxjUAQqODyXXw=; b=Yzg8EbwYJ699znw/qQssAohAxPH3VNDrgGSot5ft37x+ZFZsBKtMaRakQETwCx59RC hFCpjD+HFV+071aVuQZGair3nU/Q+g0VxrrhF4FSThPRixupyc47vBkw0VXG722a04oY EZBAQGmh69ujOhx4WG/qOJia90I7oet5pItrPM7J+aCs3YEbNUG0QS82rZ7W63qbZE+Z NH/PGRUoNyBogd9zNB+2FYr+vixXvjrIKfGsfAeL/oKL/qJ/rsGlwXYEEuAFe5vMZ67s +6azimvbf5ILiZVzesVLXnT0S2jpiC4nTPgjVhS+mDHGWkIDKrssbZuzIWMD3PZa37z4 c1QA== X-Gm-Message-State: AOAM533HMQMzR1/AOAaW0AcwEaWF58Iu5HMNqE3PW9Lx8Syc0M+ROmYT zH5tcIpYavCx1yZDd9qgfMk= X-Received: by 2002:a17:90a:a484:: with SMTP id z4mr6184941pjp.214.1589591155899; Fri, 15 May 2020 18:05:55 -0700 (PDT) Received: from 42.do-not-panic.com (42.do-not-panic.com. [157.230.128.187]) by smtp.gmail.com with ESMTPSA id d18sm2454752pjv.34.2020.05.15.18.05.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 May 2020 18:05:54 -0700 (PDT) Received: by 42.do-not-panic.com (Postfix, from userid 1000) id 04928404B0; Sat, 16 May 2020 01:05:53 +0000 (UTC) Date: Sat, 16 May 2020 01:05:53 +0000 From: Luis Chamberlain To: Scott Branden Cc: Mimi Zohar , Greg Kroah-Hartman , David Brown , Alexander Viro , Shuah Khan , bjorn.andersson@linaro.org, Shuah Khan , Arnd Bergmann , "Rafael J . Wysocki" , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-fsdevel@vger.kernel.org, BCM Kernel Feedback , Olof Johansson , Andrew Morton , Dan Carpenter , Colin Ian King , Kees Cook , Takashi Iwai , linux-kselftest@vger.kernel.org, Andy Gross Subject: Re: [PATCH v5 0/7] firmware: add partial read support in request_firmware_into_buf Message-ID: <20200516010553.GF11244@42.do-not-panic.com> References: <20200508002739.19360-1-scott.branden@broadcom.com> <1589387039.5098.147.camel@kernel.org> <20200515204700.GC11244@42.do-not-panic.com> <1e75c270-eae5-8f1d-ecc6-1fd2fb248f29@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1e75c270-eae5-8f1d-ecc6-1fd2fb248f29@broadcom.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 Fri, May 15, 2020 at 04:28:08PM -0700, Scott Branden wrote: > Hi Luis, > > On 2020-05-15 1:47 p.m., Luis Chamberlain wrote: > > On Wed, May 13, 2020 at 12:23:59PM -0400, Mimi Zohar wrote: > > > Hi Scott, > > > > > > On Thu, 2020-05-07 at 17:27 -0700, Scott Branden wrote: > > > > Please consider this version series ready for upstream acceptance. > > > > > > > > This patch series adds partial read support in request_firmware_into_buf. > > > > In order to accept the enhanced API it has been requested that kernel > > > > selftests and upstreamed driver utilize the API enhancement and so > > > > are included in this patch series. > > > > > > > > Also in this patch series is the addition of a new Broadcom VK driver > > > > utilizing the new request_firmware_into_buf enhanced API. > > > Up to now, the firmware blob was read into memory allowing IMA to > > > verify the file signature. ?With this change, ima_post_read_file() > > > will not be able to verify the file signature. > > > > > > (I don't think any of the other LSMs are on this hook, but you might > > > want to Cc the LSM or integrity mailing list.) > > Scott, so it sounds we need a resolution for pread for IMA for file > > signature verification. It seems that can be addressed though. Feel > > free to submit the u32 flag changes which you picked up on though in > > the meantime. > Sure, I can submit a new patch to change the existing enum to > a u32.? Great thanks! > For the new pread flags I am adding I could also leave as > a u32 or change from a u32 to an enum since there is currently only > one flag in use.? Then, in the future if another flag was added we would > need > to change it back to a u32. Yes that approach works well, enum for now. Luis