Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp691174pxb; Wed, 27 Jan 2021 19:26:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxYC/xRW5DSAGQJSEjzKSk3myFTVsx/f502iDK0iqof9PXxtaHa6/RISkgqRFdeVnUsgass X-Received: by 2002:a05:6402:20e:: with SMTP id t14mr11950187edv.178.1611804389787; Wed, 27 Jan 2021 19:26:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611804389; cv=none; d=google.com; s=arc-20160816; b=veQiI45yM7qUnqRiEuDjWPfy/2mGHNVqafd70OCx5qUQA6hdtvPujdRFVuS0BZVjb4 xK89yjL5LZL+dE9lbVSiwbVLTOced2GLIAJ0tdFPum7cJ965bElSS7b/ASaiQewQJpqZ MDC277o7FxWrWhuQ5PWMUpDbH7OXcBTwykIuf9OrXv6U7wgNYCEWekRNG6XLc/rWYTd4 6a42MLv6bSt5MMHkpxwvn8BV58ORe6qeE4aO/1/A6pWgtgVucLXHEfIYfYcwk/Y7rRvc 0LLUVxwEc/GJNr1K3uc72y+iCpVkEfPqAsiZlMbzQlyN9O2lwKJqIVAA5V+KG3On710L AuXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=OYYp98emCYbezQq/m91klUFEwQ6HOz/V/2yrmLptqo4=; b=1JDj6sY9kdtV1l4+7xeLgvtC6iVI52u6mpEmlY+RfTKiduXkceUIxRYAi3Zu3GqiYS csuM3tG4JXcuiAj9DtrEMDfj+6KgCqykdpsSjmTOibCFHuVnEs8tQaRx5jfFV/pWFrO1 +rZGg2WZUrk14woJAs5fWd46+Lgmye3RJo6o9iLPVGdjUSR/Un2UvuNu8Z8esVLHJ/tW LT9NzKe3GtegR0o0BHLT2p90alfpjTYAPxmmDtxQSy/FVaRUcir5afzEwYXO3DJ1ahoW DSq6aDl0Dr5+9OB3nLtMZAcr2QLcXjpyEjoNNiSrL27Ge1L3bCop1b1Obzqqw90Qo0oh I/sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sTbRz3Fp; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r15si2264282edb.42.2021.01.27.19.26.05; Wed, 27 Jan 2021 19:26:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-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=@gmail.com header.s=20161025 header.b=sTbRz3Fp; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229732AbhA1DY5 (ORCPT + 99 others); Wed, 27 Jan 2021 22:24:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229692AbhA1DY4 (ORCPT ); Wed, 27 Jan 2021 22:24:56 -0500 Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E3A2C061573; Wed, 27 Jan 2021 19:24:16 -0800 (PST) Received: by mail-ot1-x333.google.com with SMTP id a109so3930762otc.1; Wed, 27 Jan 2021 19:24:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OYYp98emCYbezQq/m91klUFEwQ6HOz/V/2yrmLptqo4=; b=sTbRz3Fp8BxbEGcPcXFbGFBNj0QyTWronVAx9s45RhvLqwqMYvEgkeyYflthoHozF+ aZYjJLzGDBKwwINye9XlLR+l8gkcn2xrHsegUFrL/3h92NSeuIIoWr2dC3EB/Yt3zFty Z6GhSRbAFDclKAbXik8guHiDYlduBdUjwkc7Zyn56n2yl3BGNTFldY2qMUzqNKAgZCAE zZZhuBGo9Ycp6pjDd9AOcEIMx0HlUPhkAq3PE7XvobdWM3t1R7Mh9lFjmvRYAC+vI2YB Y6ovslDTqG29U8Sf3Fw3NMht4PGl93juTer8P+o3hTe3uimKxFBGlRQ3Sl1BZ/zDwETt 3sWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OYYp98emCYbezQq/m91klUFEwQ6HOz/V/2yrmLptqo4=; b=PaYfmO5HmisjfCRTp2aUvDOPzSWeQaPm5ZD+dBvL/t0EqvLQsHBJLM13osEP0ylqON e2QxKtzLxgCl5WjMhG30L4SQlIz7nt4wQUQ5yPgjhtrbp4XMQH0f+Tn7X8PgCS0uzUE1 ncLYXU+3F3sVyJnVXd1hJoYqIFpdWErJsaq4u3LQMjG1aKxTCXQSIRPHSqHUrKOAq4Sr eciHFc1xEwE2gtufeSmMcYQQA/GpAj1ULRgH6hjb5WXjpXOgTYnzfM+ja5dwZqLqychd vepbs+Rmp/cLZLMAFsZ6aKwtwgr8H3kAQXz3uwPO7zOXyw6eAm2x6dxcvDobx8tBEwch Hb3w== X-Gm-Message-State: AOAM533wzGHR2J8fhQ++q0AQbs4ij2AHourURagfxchfazY3sJdBcWNn fEKojf3tEzkJB4GCfxQsXqxaIPFG7XnzysirCMN3J5umat0= X-Received: by 2002:a9d:1421:: with SMTP id h30mr10327853oth.45.1611804255820; Wed, 27 Jan 2021 19:24:15 -0800 (PST) MIME-Version: 1.0 References: <20210115181819.34732-1-ebiggers@kernel.org> <20210115181819.34732-3-ebiggers@kernel.org> In-Reply-To: <20210115181819.34732-3-ebiggers@kernel.org> From: Amy Parker Date: Wed, 27 Jan 2021 19:24:05 -0800 Message-ID: Subject: Re: [PATCH 2/6] fs-verity: don't pass whole descriptor to fsverity_verify_signature() To: Eric Biggers Cc: linux-fscrypt@vger.kernel.org, linux-fsdevel@vger.kernel.org, Ext4 Developers List , linux-f2fs-devel@lists.sourceforge.net, linux-api@vger.kernel.org, "Theodore Ts'o" , Jaegeuk Kim , Victor Hsieh Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Fri, Jan 15, 2021 at 10:22 AM Eric Biggers wrote: > > From: Eric Biggers > > Now that fsverity_get_descriptor() validates the sig_size field, > fsverity_verify_signature() doesn't need to do it. > > Just change the prototype of fsverity_verify_signature() to take the > signature directly rather than take a fsverity_descriptor. > > Signed-off-by: Eric Biggers Reviewed-by: Amy Parker