Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2512302ybf; Mon, 2 Mar 2020 10:06:02 -0800 (PST) X-Google-Smtp-Source: ADFU+vv53ywP6u8Rysml+uKulN/ckLDp6O+Cx8e9OW6XpNYbQ5miXllXhh5QG/g5nmauc8viwKI7 X-Received: by 2002:aca:bfc2:: with SMTP id p185mr234280oif.57.1583172362524; Mon, 02 Mar 2020 10:06:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583172362; cv=none; d=google.com; s=arc-20160816; b=yycKcJBR4v1eLb0gOmYiFAXkOtBWReGPaqk3Mdy+HlQ0Bvpi3/EfEBd0jS9sjarzWH IQbJcHK35o0FHr9kDLxeYcAcJE7ICwTGGRejv/CDGj0mmZISH1rIrbulBndVIpuzyuVA 9KPJ0do8cDnCBgID7L94zrmsdHN1nNNal0KTS43/RvEHkyNKcdbBlxZffvfW67A4mTYg t+PIXmox7Mh25H+BU6J/2ooti+1y6jlcXVsIAZNPMCT3KhmvoiB6M79piBrmTPXbjVEA SomFOrIetX2d3u+9GWqZq6xONOF+aKn4rRgazO/mrjPgXdUunO7fzr/fGEXcxgppxQ6w 9LDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-version:dlp-reaction:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=dUDiOzb60cX+3hVG2JZEaVyKRPyfUmaSlNU+6QoNpLk=; b=esQa8W8OTaUvrZnFZewU+4HPOc7AOP75S2tI2FTlgYY/0jqpgROgI1A7vtfm9fyGHD UPlPEBJRevZJH1UWbgXFYe3SWZtMoRFbYAoxbiJ1ZJsolPt2Xk0O662WSWyT+zWXS/WW lLUr8R7RzhNUr7wZLOddISy6/qw3Q5sMDukl+7OJu4wa3N1WHvaZh+d5qm8bz9pWZu8q hl/7j2l2LQrhlpAOeoBO99MGzcbZeR0k6BNXr6XnVplvqcvGAC0nQmZq+PfUGdH/VFj7 ztbLul1Gfc0SJxbWfeQ+lfyOPw9OUb2DUZUFNgbCwd6s1PugL3+P5nOmSWFTn8aEH0B7 vQ2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id h136si1027283oib.141.2020.03.02.10.05.50; Mon, 02 Mar 2020 10:06:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727316AbgCBSFm convert rfc822-to-8bit (ORCPT + 99 others); Mon, 2 Mar 2020 13:05:42 -0500 Received: from mga09.intel.com ([134.134.136.24]:38805 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726451AbgCBSFm (ORCPT ); Mon, 2 Mar 2020 13:05:42 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2020 10:05:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,507,1574150400"; d="scan'208";a="412388040" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga005.jf.intel.com with ESMTP; 02 Mar 2020 10:05:40 -0800 Received: from hasmsx603.ger.corp.intel.com (10.184.107.143) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 2 Mar 2020 10:05:40 -0800 Received: from hasmsx602.ger.corp.intel.com (10.184.107.142) by HASMSX603.ger.corp.intel.com (10.184.107.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 2 Mar 2020 20:05:38 +0200 Received: from hasmsx602.ger.corp.intel.com ([10.184.107.142]) by HASMSX602.ger.corp.intel.com ([10.184.107.142]) with mapi id 15.01.1713.004; Mon, 2 Mar 2020 20:05:38 +0200 From: "Winkler, Tomas" To: Andy Shevchenko CC: "linux-kernel@vger.kernel.org" , "Christoph Hellwig" Subject: RE: [PATCH v1] mei: Don't encourage to use kernel internal types in user code Thread-Topic: [PATCH v1] mei: Don't encourage to use kernel internal types in user code Thread-Index: AQHV7kmoHRGWq8a92EO3ikJkF4xQsagyWSTQgAL/iQCAAECokA== Date: Mon, 2 Mar 2020 18:05:38 +0000 Message-ID: References: <20200228151328.45062-1-andriy.shevchenko@linux.intel.com> <3bb5abe91919458aa6166eb60d9451ff@intel.com> <20200302155818.GG1224808@smile.fi.intel.com> In-Reply-To: <20200302155818.GG1224808@smile.fi.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 x-originating-ip: [10.184.70.1] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > +Cc: Christoph. > > On Sat, Feb 29, 2020 at 04:28:11PM +0000, Winkler, Tomas wrote: > > > uuid_le is internal kernel type which shall not be exposed to the > > > user in the first place. > > Why, these types are exported via include/uapi/linux/uuid.h > > Which is wrong from the day 1. I'm not sure why, this is API between kernel and the user space. > The uuid_t type is being provided by libuuid in the user space, there is no > (more) kernel exported equivalent. Same should be done to the uuid_le. There are many uuid libraries, which is the one that provides the uuid type between kernel and the user space? > > We already discussed this couple of years ago. I do not recall be part of this conversation, please share the link. > > > In order to mitigate the (wrong) distribution of the use of that type, > > > switch MEI AMT sample to plain unsigned char array. > > > > There was a change to guid_t from uuild_le, anyhow there is much more > > code except this sample that uses those types. > > I guess you misunderstood the point. The types are for kernel use and keeping > them exported in a condition like it's now (quoter baked due to drop of uuid_be > part completely and uuid_le partially) is wrong. Is wrong how... ? What is broken in the concept ? Please give me an example of what is going to wrong, here. Just saying that something is wrong is not convincing. > There is *no* ABI change. And basically libuuid or another one should provide > type and infrastructure for this. But API is already out there, do you plan to remove it? > > Nack so far. > > If you would like to bear the legacy type, why not to move this UUID UAPI parts > directly to MEI? I can but do you know all the software that includes ? Thanks Tomas