Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp570762ybg; Tue, 28 Jul 2020 13:05:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJJkVO7N0irh9Gmkvr/c8Uzdj1oEadJ7jHnbcKVxx8uffGmjH7HveO35jUSC/9Wvxe0f9H X-Received: by 2002:a17:906:c002:: with SMTP id e2mr28034577ejz.244.1595966726455; Tue, 28 Jul 2020 13:05:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595966726; cv=none; d=google.com; s=arc-20160816; b=t+FgOQYPsXSJk1WiS3YF5hk5Mz+XHq5K/9o8/87x7ViNV1CLE6vuI2H0LKhR5cbW78 7YKFedgDda1ZAD2Igx9BAF4FenIzozSIxVYh2Z6ctftP1Z0VQ/A//9s21iaKN0u/kGED YWpDC4DbkKtWz5WskOuzUSbbLO7zNlIxlT680MWiAyBYCzxVyeCh7bvpeKb5AA+q5Ph2 Sd+H/odT1+KLY2E0kss7ZrvmOwE/M9r4x0CpqkTVYn2T2kwLShJ8596q+SFiWI5VqwAT 8zMok3pgFyAFgjNCf56A01hZODlN8hyeu9/GQTz93l+4XOgX2QcCy9MSwNEdHmiugk6e 3+pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=EGdVh0mVPJ3aMn3gpiePgkRaCvT/ls7JNgDj3rKn3aE=; b=foiXnqO+jTR87JXOs72nzFYNlmf3oW7F/M41d2wBQuNUbNjfLQacEOHl3bnQhU1tlV /Ij69WVsXGIvXT8G/Ybp+lT8SjbKS6MC5N20bZDMKoQzo8TRKto7sVfbkxa4llQgGbT4 w12KyqvFH+cGyoBm1B96pYjbfWt3OTrc+OxOQJZn/f6VX/kwXiFIwse3ZBzAkt3h8uPZ JS/GghuIHeDyIzJg917yd1c8Ebo0wcSniXKkFTDwKjPCnHXJq4PWeO28d0JVEUM9z3l7 SCOEEmYZSnvjC+TMLSqwnoPoSnegD7jmyA30o1ZP7TZJuYAMopFSvtzPCZbskspjmwR2 3Dnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=loUq6fsR; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j9si4413601edv.57.2020.07.28.13.05.04; Tue, 28 Jul 2020 13:05:26 -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=loUq6fsR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728963AbgG1T4t (ORCPT + 99 others); Tue, 28 Jul 2020 15:56:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:37176 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728874AbgG1T4s (ORCPT ); Tue, 28 Jul 2020 15:56:48 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 8BC242070A; Tue, 28 Jul 2020 19:56:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595966208; bh=t6ZBb6aKjOP/D53m5Lux0B4l1dQapES6T4xqgzSEF5o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=loUq6fsR9oQLkUjlfoFYvKPr2i6bqC2ehfaKt0sMzOhA6vcojo09dKpNP4VbTxW2E DF9qQ0DxImikxo7X1nRO5ZV5hDN+Br9zU/HrU0uT4QuGJg7KWwiO6dd6l5KMBHxbej P/ZKKP7Qx1kmZ0W6BZXMajP5aV5AwEY2cU4oWR0U= Date: Tue, 28 Jul 2020 21:56:40 +0200 From: Greg Kroah-Hartman To: Kees Cook Cc: Mimi Zohar , 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 Subject: Re: [PATCH v3 15/19] IMA: Add support for file reads without contents Message-ID: <20200728195640.GA342741@kroah.com> References: <20200724213640.389191-1-keescook@chromium.org> <20200724213640.389191-16-keescook@chromium.org> <1595856214.4841.86.camel@kernel.org> <202007281244.2F2681AE9@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202007281244.2F2681AE9@keescook> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 28, 2020 at 12:44:50PM -0700, Kees Cook wrote: > On Mon, Jul 27, 2020 at 09:23:34AM -0400, Mimi Zohar wrote: > > On Fri, 2020-07-24 at 14:36 -0700, Kees Cook wrote: > > > From: Scott Branden > > > > > > When the kernel_read_file LSM hook is called with contents=false, IMA > > > can appraise the file directly, without requiring a filled buffer. When > > > such a buffer is available, though, IMA can continue to use it instead > > > of forcing a double read here. > > > > > > Signed-off-by: Scott Branden > > > Link: https://lore.kernel.org/lkml/20200706232309.12010-10-scott.branden@broadcom.com/ > > > Signed-off-by: Kees Cook > > > > After adjusting the comment below. > > > > Reviewed-by: Mimi Zohar > > Sure! > > Greg, shall I send a v4 with added Reviews and the comment change or is > that minor enough that you're able to do it? v4 is needed, as this series is a mess of reviewes and you will have to redo at least one patch and drop some others, right? thanks, greg k-h