Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp773909ybk; Wed, 13 May 2020 12:43:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4In7Bq2DRWRv/NFweEswLtBvec73F5fVQyrcgyuBkopPq0KXRDp/O9AY8UAQnKvXP8BTR X-Received: by 2002:a50:b961:: with SMTP id m88mr1183813ede.4.1589399011971; Wed, 13 May 2020 12:43:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589399011; cv=none; d=google.com; s=arc-20160816; b=deu+5UhWKyI03iXOHCGOUtjR0mEosNKGcjYbnSdUYJ8GH1Ss3GrEwUyXNyj2QgVmK6 9d+3YnzRrNpyfKnD0rlPJiAa8VV033sMKnbXkkgiyqVcbHmGX4mVNbYDOg1NCu9cFi/N XNczUwKyKn+S65WB5rBN+EAp4x63aKmf1ozb47H8uwZOqkV0THz9zaZ4n4cwIZHC9JN0 EbEtN7mZaPuMgQsG8pHfrmMD8/7aEYJeCobqrotFHb0DTX9ml6b/LsOocjen2QUbrvfJ Tu4Zm3a340jUWKVvUNauJL5EgCbSMmIf1j95KQj6zlaiXamcoXKEiumO3PTlUeBzKVDN Zjsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=m9izSOZDzA62EkVIVJaM9RQB78HtwGR7Vc4fH0Cr3MY=; b=h0jgPtOqeRnUW6AB/wJjezTFPyG2hfRVUnybLcCqEmDV1V1QKHDyfYyUS84/u+/8rC StMmp6LRSgywkjG6QA5lKPLzhSZ50Iwqwm18dU25WHmSTOKtJTFMAcSSzo0g5KNOLMcD /MQeaEUwNGv+r0rtML3DZRr/2PnCLyWHmTcB36Hw4yZbuKVAVIzo0ZhkGht7ho6po5hV MUZN1f+o7VzLm6XPUPGtAa/NFtAzMzLMzk0xsOHqgQt7FUtTQzscEut4Bx2ZdhsAjGmA 6KQjtEn1+jG7cPgBq6Yz7bC0/OOal7js/cO4Qjw4TSAoOUm2D/O0olRw8bt5dvRVAJpL +78A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=LatWmSXj; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t2si367126ejx.348.2020.05.13.12.43.08; Wed, 13 May 2020 12:43:31 -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; dkim=pass header.i=@broadcom.com header.s=google header.b=LatWmSXj; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390735AbgEMTlL (ORCPT + 99 others); Wed, 13 May 2020 15:41:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2390733AbgEMTlK (ORCPT ); Wed, 13 May 2020 15:41:10 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12BC1C061A0F for ; Wed, 13 May 2020 12:41:10 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id j5so975321wrq.2 for ; Wed, 13 May 2020 12:41:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=m9izSOZDzA62EkVIVJaM9RQB78HtwGR7Vc4fH0Cr3MY=; b=LatWmSXjR+eXddCxx4Fpk4fo9igRHLhD0wdivRc/eNsLlnnZs5nWsT8gJG8meyHtw4 UUQkcffYPMX4wdRgrMtJsNtJX3jUTj4ye3jBgUQduaGLLcqEOsJSw4CXVNHD0b8AxF3i nGGoOxnAcHym+F6QKUhTXu1sRVeypKEn8nPbQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=m9izSOZDzA62EkVIVJaM9RQB78HtwGR7Vc4fH0Cr3MY=; b=CiwtLafSXhRErT0lzTnGq53oFMR99JEhtrky9zak47i8BEcN6QMRKkyoZI+QnANt4b N6PagnnwJHshN45MeRd1jWMbATucu//OOh1wEtjUn6VOWf11zCsAxssEN9Mi1nbHwzjd niZ5FJ2qBN/+6+vCPpJG7hLQo/GmMhp7rftnrGM+yNsh47AaTZ96HmWPmsJ2/CptzbRN IdVFYlwJySfCnq7U8GWfhVszFgPOWJ8vIhJ9qqrie2ySoSFJda4oW6JWWFxh+Xjg8my+ ADZBSPxWz73Hl867HWJxqfWXo1y7lW8dvmGsypZo7ljR8gIylPyYP12RWpOKOU1CTsH3 VsCA== X-Gm-Message-State: AOAM532CwzZvk4FGfkpR01bgvKOgAJ6GmTUNaLfDW+R4R2zfmBGbVHUK Z8DMC7clffiuUvWuULsZz2tSkQ== X-Received: by 2002:a5d:4950:: with SMTP id r16mr1048168wrs.350.1589398868576; Wed, 13 May 2020 12:41:08 -0700 (PDT) Received: from [10.136.13.65] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id n9sm15165510wmj.5.2020.05.13.12.41.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 May 2020 12:41:07 -0700 (PDT) Subject: Re: [PATCH v5 1/7] fs: introduce kernel_pread_file* support To: Mimi Zohar , Luis Chamberlain , Greg Kroah-Hartman , David Brown , Alexander Viro , Shuah Khan , bjorn.andersson@linaro.org, Shuah Khan , Arnd Bergmann Cc: "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 , linux-security-module , linux-integrity References: <20200508002739.19360-1-scott.branden@broadcom.com> <20200508002739.19360-2-scott.branden@broadcom.com> <1589395153.5098.158.camel@kernel.org> <0e6b5f65-8c61-b02e-7d35-b4ae52aebcf3@broadcom.com> <1589396593.5098.166.camel@kernel.org> <1589398747.5098.178.camel@kernel.org> From: Scott Branden Message-ID: Date: Wed, 13 May 2020 12:41:01 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <1589398747.5098.178.camel@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-05-13 12:39 p.m., Mimi Zohar wrote: > On Wed, 2020-05-13 at 12:18 -0700, Scott Branden wrote: >> On 2020-05-13 12:03 p.m., Mimi Zohar wrote: >>> On Wed, 2020-05-13 at 11:53 -0700, Scott Branden wrote: >> Even if the kernel successfully verified the firmware file signature it >> would just be wasting its time.  The kernel in these use cases is not always >> trusted.  The device needs to authenticate the firmware image itself. > There are also environments where the kernel is trusted and limits the > firmware being provided to the device to one which they signed. > >>> The device firmware is being downloaded piecemeal from somewhere and >>> won't be measured? >> It doesn't need to be measured for current driver needs. > Sure the device doesn't need the kernel measuring the firmware, but > hardened environments do measure firmware. > >> If someone has such need the infrastructure could be added to the kernel >> at a later date.  Existing functionality is not broken in any way by >> this patch series. > Wow!  You're saying that your patch set takes precedence over the > existing expectations and can break them. Huh? I said existing functionality is NOT broken by this patch series. > > Mimi