From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AD1CEC43334 for ; Tue, 19 Jul 2022 16:47:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231888AbiGSQrY (ORCPT ); Tue, 19 Jul 2022 12:47:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbiGSQrW (ORCPT ); Tue, 19 Jul 2022 12:47:22 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C592A545E3; Tue, 19 Jul 2022 09:47:17 -0700 (PDT) Received: from fraeml745-chm.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4LnPpC6PYwz67xX3; Wed, 20 Jul 2022 00:45:23 +0800 (CST) Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by fraeml745-chm.china.huawei.com (10.206.15.226) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 19 Jul 2022 18:47:06 +0200 Received: from localhost (10.81.209.49) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 19 Jul 2022 17:47:05 +0100 Date: Tue, 19 Jul 2022 17:47:04 +0100 From: Jonathan Cameron To: Dan Williams CC: , Bjorn Helgaas , Lukas Wunner , Alison Schofield , "Vishal Verma" , Dave Jiang , "Ben Widawsky" , , , Subject: Re: [PATCH V14 7/7] cxl/port: Introduce cxl_cdat_valid() Message-ID: <20220719174704.0000344e@Huawei.com> In-Reply-To: <62d221b999ece_242d29476@dwillia2-xfh.jf.intel.com.notmuch> References: <20220715030424.462963-1-ira.weiny@intel.com> <20220715030424.462963-8-ira.weiny@intel.com> <62d221b999ece_242d29476@dwillia2-xfh.jf.intel.com.notmuch> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.29; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.81.209.49] X-ClientProxiedBy: lhreml749-chm.china.huawei.com (10.201.108.199) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 15 Jul 2022 19:26:01 -0700 Dan Williams wrote: > ira.weiny@ wrote: > > From: Ira Weiny > > > > The CDAT data is protected by a checksum and should be the proper > > length. > > > > Introduce cxl_cdat_valid() to validate the data. While at it check and > > store the sequence number. > > I am going to drop this one. Userspace can determine validity when it > parses it. When the kernel grows a CDAT parser it will rely on the > standard validation of ACPI-table-like structures from a future > __acpi_table_parse_entries() derivative for this purpose. OK, for now I guess.