Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4854865pjb; Mon, 27 Jul 2020 06:56:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziPQ/xbClrFLr4BL//UXqhQa9/la0OtlQ7ph/YdojNzhK+gN8ogJ/owuKxM8AHRmycCqxV X-Received: by 2002:aa7:d814:: with SMTP id v20mr21369830edq.296.1595858177828; Mon, 27 Jul 2020 06:56:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595858177; cv=none; d=google.com; s=arc-20160816; b=TPR7RZzPu7f7a/8qKZtSKx+Ni8li/mqPBTLIXzolDVSoYpxUMuV0z8zguyZUPShd7S b47GQSDavIuyIqedvdBE3U6nR81FwzBD7NivXu/KLhr5ubnJrhY40njZyZa7853icGIC pHLGFmYLa8gJhbiEYPjZgCYbCT9j9ZjoTAlp4z87FGoRICDm1TgyrTtOCuvoOi13Ok9C LHs9jqdMLAwnYm/uen+nvTJfeG6JrVWXLOKsAlfFC0/i5Zac0lpk8FLaDVuhWyQLXS6g oKFeKB2nsi2KpXxs9abSp5yD+QxJtf97tOiOUnZXEVnhA/TeKK3qGkldKKN1XPd5hxw6 gV3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=8zyaXWxT8EYN4f5bONhvV50212xQ9mtY2tjVpO6kDW8=; b=BBa9KzUa06xvi1rnZmYhXhvMwvfsjJJSvZn4PxazwksjZo3hDUAm6doX+rPUOKlnan Zr8m1CZqyP194tnTLg8VvN6ATC2yA5KF76JNErTCVUIPRRJ5oRymElHjh4M2ZXqrnEQI bGUMOQIyC28LDLf7OIDkvQ4YBL36BQZCz3TvAWJgdvASiGMx/NRLhTev/Iu2fk3gAiMh ny8es3trhX62qlE2D0LQ69AtXv8Da325XvJRvR/Y2iSnChGJ1iVWwBokdxexp4CVwYOL f1lUfEQrp1fIjSxxESuahmvZtLU6wBGgyOfgLpjKKXmcuWOeNDKLyqksmGV7d7rySLCF otJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UcMWrZGH; 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 g26si3407234edu.335.2020.07.27.06.55.55; Mon, 27 Jul 2020 06:56:17 -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=@kernel.org header.s=default header.b=UcMWrZGH; 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 S1728980AbgG0NfD (ORCPT + 99 others); Mon, 27 Jul 2020 09:35:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:37970 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726298AbgG0NfD (ORCPT ); Mon, 27 Jul 2020 09:35:03 -0400 Received: from localhost.localdomain (pool-96-246-152-186.nycmny.fios.verizon.net [96.246.152.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2C2A62083B; Mon, 27 Jul 2020 13:35:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595856902; bh=lsb8DwuA8VH82LyNkysVJs9u8cUS6ID7TdHH9rnuG9E=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=UcMWrZGHef3xmGLz2KuVpjsTc4DIyfyoqvrtijkOjBGNC5pfY8sc+CNGTT4ppkVzm MuHrVj5LSOyuoI/u/aR8bJpLPmTQFiNAi1Zjjjq1/mHJJ0n6l9NoUF1sondP0D6+nF 76pshYuPvhHtjLWejlPFBh082rkCH/MoxpsRrNl8= Message-ID: <1595856900.4841.88.camel@kernel.org> Subject: Re: [PATCH v3 04/19] fs/kernel_read_file: Remove FIRMWARE_PREALLOC_BUFFER enum From: Mimi Zohar To: Kees Cook , Greg Kroah-Hartman Cc: stable@vger.kernel.org, Scott Branden , Luis Chamberlain , Jessica Yu , SeongJae Park , KP Singh , linux-efi@vger.kernel.org, linux-security-module@vger.kernel.org, linux-integrity@vger.kernel.org, selinux@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 27 Jul 2020 09:35:00 -0400 In-Reply-To: <20200724213640.389191-5-keescook@chromium.org> References: <20200724213640.389191-1-keescook@chromium.org> <20200724213640.389191-5-keescook@chromium.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2020-07-24 at 14:36 -0700, Kees Cook wrote: > FIRMWARE_PREALLOC_BUFFER is a "how", not a "what", and confuses the LSMs > that are interested in filtering between types of things. The "how" > should be an internal detail made uninteresting to the LSMs. > > Fixes: a098ecd2fa7d ("firmware: support loading into a pre-allocated buffer") > Fixes: fd90bc559bfb ("ima: based on policy verify firmware signatures (pre-allocated buffer)") > Fixes: 4f0496d8ffa3 ("ima: based on policy warn about loading firmware (pre-allocated buffer)") > Cc: stable@vger.kernel.org > Acked-by: Scott Branden > Signed-off-by: Kees Cook Thank you for updating the pre-allocated buffer comment. Reviewed-by: Mimi Zohar