Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2447818pxb; Thu, 11 Feb 2021 12:36:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJyt/NYtM5b6lgVIYzZR3nlkaAw8KtJ3Cv6Agif41R5orliKLZoesEoU0LI6RIEED+6TlGEM X-Received: by 2002:a17:906:296a:: with SMTP id x10mr10053801ejd.240.1613075793249; Thu, 11 Feb 2021 12:36:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613075793; cv=none; d=google.com; s=arc-20160816; b=ztW4aaq2rxT+4q9s+JSNVArdKdaoqUkgVW9Tq5uGihnaXJy1jhNi6T/JJWu/FDoHTa D5i8DZ9qzyEBe8+ue7mpfaSHU3TditR/r4c7Shd7jAbG+oWiojPoPiHpcyCkCIjzWOhx QYZGmbdRueCI9DRs+Y1uLAaTy3IEiShoNd86polSUxPH+vwmRCDKK+jPFBlUt+pM7pGl saCjHniMsumiPBFjc3zR2aWLW6+U10/ZyY2J4z4X1NjUt64kj1cU7sPYFcOESdfEvevs 4ltZ2UV5KI18Nkc4o0pv4qzdqyAFJjKyqiK+/Uwc7bOy5z9dgemg+AoSYb66gtt2zqZz Ftqg== 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=tgwnKmmGdWDCxHejoZP0bKZIVRKg9fBvIThmjXyQsEw=; b=fUGLjB8wjzFl4jDkQahA4Aw13OtS8KLyub+SAQw4a5bS/rDrUgwCnG6zJFury+lsgN o9ePqsHy1Pdq1I5GgFwyHVux7Yjap4rda9WvG0VEJFwo8IDRkqGlzZqrecsD8BDw6MAu lbEQ9RJo45aYmmB/+xPxAxnAcVf3p79M7cNXApgVNXBYCKSrhZdOTM+eahsvtA1MBgwD 1F0BQ19bFL2Hoq0zUfTyFeZn51vJ4ZJilcrasYSUf3P0a9dUv6gT0NEcwASF+4BXEzAy a3KinOloneF1QdZS4MkD+QdvUxFHbnHYjcboLXzGlxfxhe7GgtP1bqKzDisUjif7r7N+ 5dng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=T4khnwoq; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q10si4477197edd.316.2021.02.11.12.36.01; Thu, 11 Feb 2021 12:36:33 -0800 (PST) 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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=T4khnwoq; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229873AbhBKUfa (ORCPT + 99 others); Thu, 11 Feb 2021 15:35:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbhBKUf1 (ORCPT ); Thu, 11 Feb 2021 15:35:27 -0500 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02566C061756 for ; Thu, 11 Feb 2021 12:34:46 -0800 (PST) Received: by mail-ej1-x62d.google.com with SMTP id hs11so12113118ejc.1 for ; Thu, 11 Feb 2021 12:34:46 -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=WkdhPo/jM/CQXUX8UdUa/aqTk0LxB47afYWo4RdIGJTI9wOWtG/cEsFcmww1OyIPqA 6HZhQCtQnMb2WoUYVe76ux3RmRQxyzkgWF0MkVLvOHFxeHTYjtKeu0OZdiEJvugCb64V Np2g2IL3iMA+ENx7KKpot9FMDquicv6hY2DrhJfVko2VKuE7310lqCW9aXxeXxTp2FHD 4FxwzHDkxsdOy4YlgXlM8EdiKunJud2C5vXHPWsjE1BAqqiymD/Kkdkl42ed5M4sPICN L17P2+WO19l/uga4+s1VE6vYBfXUxjfr7foYqYhMBS0oHJ6gRxdSjYBJzitusYlVffQz Gg5w== X-Gm-Message-State: AOAM533ay4f6NqTUG9Q79zGqWMBGLkq91SvJz73/lRQKHD+FIyjavp/P gh0s0m5Jr1ix4YFHw7KXts65ubWGZhoYOYWv8Ne58g== 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 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 , Ira Weiny , Jon Masters , Rafael Wysocki , Randy Dunlap , Vishal Verma , "John Groves (jgroves)" , "Kelley, Sean V" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.