Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp631870iog; Fri, 24 Jun 2022 10:34:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vgQwNXQv3S56gr0ku3T7QS+dTE9BIf7zofgjZ/fNZ1vLhPWsj2G3Dr8my992NML+xdiRaX X-Received: by 2002:a17:907:3ea6:b0:726:3554:cf7a with SMTP id hs38-20020a1709073ea600b007263554cf7amr111159ejc.384.1656092061290; Fri, 24 Jun 2022 10:34:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656092061; cv=none; d=google.com; s=arc-20160816; b=ORrJfAaiPy9sMauIXewpe4KCQsUWStPPU0j7zIgI/ZBWMBB6jUnweeg5JosutEgzYH sSwZamb8WBJ5HnNkF4GNYixLm7u5Gblc+m3JNdea6mpPfIUHvdO3kxH1thBJCjIgG+tp Q5SpKgsY2zhlELreCqzxBgvGyJPV+gOJco4t9A1pZQcbKzROV8krwG/vWXnv1+Tgsg9M 013KGg6QvICeSsxH0tlxeyYQYy3IHI0nUNCcw5oInJn4r7xnJNuEnOCSYjgJKeZEejzI +EKTI70nUK2wCmCMe2u5GQh15kmqeJf3VkVbjh9p/qNcYN8GLNYWGrBjKU+GsbN/isAJ Adkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=v2GOxsdoVsaZXbVgLmusuJ8AUNrNNpTNLGvKGWBrh8o=; b=PzIcpVFI9WeeU9nDYS87ViMf+pqOq3tEOnhUX/OYTika6oEajf4WghI9LCt3N7WWNl d5ZFLJzGJQJcwsd0ShJzMMrG+hGhlWVmxF59Z1mFbJcsuKUv7IJUuQWM3l7m7if90fvf tlU0y5S1YPKJO9ys1q+qQ/ywK2Mht5e59TCKNJWhQcXXOxS2d+d29kIePqJ9toen3xrU o/VZVQYJ7XoCegRZ3OEW7ZQR5DlKRVJscjLaIdDbCczAacNZCe3w2+1EII69QEONkeWK HgS5nn6q+m/J7fGavCUbFO632c8Ndt/vikG1A30lVoyMhtADSVY889e8E2G9E0pCjKUz ONvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=OJsudXwO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g18-20020a1709065d1200b007262c09f357si3951518ejt.349.2022.06.24.10.33.42; Fri, 24 Jun 2022 10:34:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=OJsudXwO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229552AbiFXRa3 (ORCPT + 99 others); Fri, 24 Jun 2022 13:30:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229797AbiFXRa0 (ORCPT ); Fri, 24 Jun 2022 13:30:26 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33FF83DA4C for ; Fri, 24 Jun 2022 10:30:25 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id p3-20020a17090a428300b001ec865eb4a2so6413047pjg.3 for ; Fri, 24 Jun 2022 10:30:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=v2GOxsdoVsaZXbVgLmusuJ8AUNrNNpTNLGvKGWBrh8o=; b=OJsudXwOMYv/+uIFVCAy9ZHd+hLkuAC8DSDK1yeMkLccT+t9CIPMdgpMgi3dNglErN vjrXLXCxn0Isb7JwLx6gtRLjX0ue9nCcYi2HxBQfyTL7gzwOzMUurRZnVPzjGGXytiUX 8QKEfAbE62kS6eIKHPOs4cbXWEQzFVqou8DJ8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=v2GOxsdoVsaZXbVgLmusuJ8AUNrNNpTNLGvKGWBrh8o=; b=G0h1w7NOTWK0Osz8fE2Z+6FPlE1lSmjS/Kyu9Am8wZZOsKxBTfW0UUnivQj8q8kra2 NfVOPbFi3ZRaCMgatfDOlhCI4jJ8bEx7qIpJIRqnvhMyvjVXOvZhrGR+W04E1Hrpi7sp ArpR5SMnBVc83DTcbNlpkTog+gihFJQSYaiNAMpMXe0kAPB33fBSlycb980HppiJ9mTu vwbh2wXy49kHcBOy4gbyI6V8o8AYjB7VMC5Wfitp4JeT9dGxBwzKLeAe1u5Ta23PWko2 oVTjuRxDxQBFglMZTQhJo8LG68Ym7tYs/144iqfIsAp7UBZoa92zB3pWq8Igci80wfaN Bbhg== X-Gm-Message-State: AJIora9f2G9ltvvS6IRMJpDnn6DpxjW73hmUg8q57rxlmPXD8pnyv/Ai G+0TkxrW4QnirlUeEwqS1ms36Q== X-Received: by 2002:a17:90b:1b0e:b0:1ec:e2f6:349e with SMTP id nu14-20020a17090b1b0e00b001ece2f6349emr5218674pjb.14.1656091824621; Fri, 24 Jun 2022 10:30:24 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id m13-20020a170902e40d00b00167838b82e0sm2059425ple.205.2022.06.24.10.30.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jun 2022 10:30:24 -0700 (PDT) Date: Fri, 24 Jun 2022 10:30:23 -0700 From: Kees Cook To: Ard Biesheuvel Cc: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Matthew Garrett , Peter Jones , Jeremy Kerr , Tony Luck , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen Subject: Re: [PATCH v3 1/9] pstore: Add priv field to pstore_record for backend specific use Message-ID: <202206241029.9C0891C5B6@keescook> References: <20220624084925.724516-1-ardb@kernel.org> <20220624084925.724516-2-ardb@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220624084925.724516-2-ardb@kernel.org> X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 24, 2022 at 10:49:17AM +0200, Ard Biesheuvel wrote: > The EFI pstore backend will need to store per-record variable name data > when we switch away from the efivars layer. Add a priv field to struct > pstore_record, and document it as holding a backend specific pointer > that is assumed to be a kmalloc()d buffer, and will be kfree()d when the > entire record is freed. > > Signed-off-by: Ard Biesheuvel I'm a fan! This is useful, and I'll likely try to use it for some of the RAM-specific things too. :) Acked-by: Kees Cook -- Kees Cook