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 X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0EE4C433E0 for ; Thu, 11 Feb 2021 20:34:50 +0000 (UTC) Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 857CA64D73 for ; Thu, 11 Feb 2021 20:34:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 857CA64D73 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-nvdimm-bounces@lists.01.org Received: from ml01.vlan13.01.org (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 0028A100EA2C0; Thu, 11 Feb 2021 12:34:50 -0800 (PST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::632; helo=mail-ej1-x632.google.com; envelope-from=dan.j.williams@intel.com; receiver= Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id EF125100EB82D for ; Thu, 11 Feb 2021 12:34:47 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id hs11so12113125ejc.1 for ; Thu, 11 Feb 2021 12:34:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tgwnKmmGdWDCxHejoZP0bKZIVRKg9fBvIThmjXyQsEw=; b=T4khnwoqjyVlyFJZe9yf1Hqe4YwtQNZKtdD3iNfNqQ3nG8ihJ93iGi2kdceUV+6WzP U30lqWYAoU4mnF/BTzmNiDn4M6OkmoL/HSgxMTpuO8yxCwt9b20YfLoT23FpwzW1dGZV bJ9zVra/TCEhEZSE2YLcmboDfhtC1K936PkyqsjxzXjp6koe4GNl9qeIo5TqD11dyDhQ rl8C6iPZN9DWwkPlmqnfjSZEIMNUIg8irYR1gK33qxg7+RjyMrbSLaErpObkBK/eVVOw as5S3Ag8QkadmDt6w065AidBrxpozcVJ5kcqol0urwlsmpCou6dwkfgMj5QHHlihU880 k99w== 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=tgwnKmmGdWDCxHejoZP0bKZIVRKg9fBvIThmjXyQsEw=; b=OaxPelKc0aG7hDbY0VGv7nL9SQTizhc4Vnj5eS+YH4hg/EfnvlZLS7nX6rhJBcvfH3 wOMzXfK1PJzhMFCyqB6bqc5/iwUcS1QJlNd/CCJgNKfCp6V1F2F5LHXMKd+ualP+/sHM LP1S/xY6/Ki1x59XxcBwvUr+OPMy4N5Jn5xXFDL3ry1Ni1vjf+F4pA1B8FQpfHZEBlPp E9kWgO+WCALi5xalv6UE4l9uzvkcA+8uFliJ6trCsik0GncMG4hm2HOdyR89Ox0jfv5O vfaz2vZ+r2IKgLLhjOsC1Wm8a4/ouQKsT1sloGaHZcVCyXxKmTzrB/tJeDbsj+9bJOOb i9mw== X-Gm-Message-State: AOAM533px0mmhb6fZXGC8JUB87sjckDcmFsLtfLiBcjAiceZ0vxFg6nY LGfETV+Tc/JL92EypNiVi87V8US3RWNLsqrAHTalEg== X-Google-Smtp-Source: ABdhPJyw5zAj09pkfw9O4vZ91q761XWqJWsJYNmylmwXEAFa0RMljdC5RPj7aoX4jj2C6VUAHgj24Ehk/wHibuXDiBo= X-Received: by 2002:a17:906:36cc:: with SMTP id b12mr10342308ejc.323.1613075685691; Thu, 11 Feb 2021 12:34:45 -0800 (PST) MIME-Version: 1.0 References: <20210210000259.635748-1-ben.widawsky@intel.com> <20210210000259.635748-7-ben.widawsky@intel.com> <20210211120215.00007d3d@Huawei.com> <20210211174502.72thmdqlh2q5tdu3@intel.com> In-Reply-To: <20210211174502.72thmdqlh2q5tdu3@intel.com> From: Dan Williams Date: Thu, 11 Feb 2021 12:34:35 -0800 Message-ID: Subject: Re: [PATCH v2 6/8] cxl/mem: Enable commands via CEL To: Ben Widawsky Message-ID-Hash: RGFR7QHS3LOXKVZRDRJQGLQ56BNXBSNK X-Message-ID-Hash: RGFR7QHS3LOXKVZRDRJQGLQ56BNXBSNK X-MailFrom: dan.j.williams@intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: Jonathan Cameron , linux-cxl@vger.kernel.org, Linux ACPI , Linux Kernel Mailing List , linux-nvdimm , Linux PCI , Bjorn Helgaas , Chris Browy , Christoph Hellwig , David Hildenbrand , David Rientjes , Jon Masters , Rafael Wysocki , Randy Dunlap , "John Groves (jgroves)" , "Kelley, Sean V" X-Mailman-Version: 3.1.1 Precedence: list List-Id: "Linux-nvdimm developer list." Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Thu, Feb 11, 2021 at 9:45 AM Ben Widawsky wrote: [..] > > > + if (mbox_cmd.size_out > sizeof(gsl)) { > > > + dev_warn(dev, "%zu excess logs\n", > > > + (mbox_cmd.size_out - sizeof(gsl)) / > > > + sizeof(struct gsl_entry)); > > > > This could well happen given spec seems to allow for other > > entries defined by other specs. > > Interesting. When I read the spec before (multiple times) I was certain it said > other UUIDs aren't allowed. You're correct though that the way it is worded, > this is a bad check. AIUI, the spec permits any UUID and as such I think we > should remove tainting for unknown UUIDs. Let me put the exact words: > > Table 169 & 170 > "Log Identifier: UUID representing the log to retrieve data for. The following > Log Identifier UUIDs are defined in this specification" > > To me this implies UUIDs from other (not "this") specifications are permitted. > > Dan, I'd like your opinion here. I'm tempted to change the current WARN to a > dev_dbg or somesuch. Yeah, sounds ok, and the command is well defined to be a read-only, zero-side-effect affair. If a vendor did really want to sneak in a proprietary protocol over this interface it would be quite awkward. _______________________________________________ Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org To unsubscribe send an email to linux-nvdimm-leave@lists.01.org