Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10445674imu; Thu, 6 Dec 2018 00:56:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/UQ+BNn0eaO7cD4tuWYFQzKEwMYyUuuUN9H4pOqF/bvfCe0Jge1uS5QcTWfPqoV5p4r5ms1 X-Received: by 2002:a17:902:820f:: with SMTP id x15mr26298745pln.224.1544086606793; Thu, 06 Dec 2018 00:56:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544086606; cv=none; d=google.com; s=arc-20160816; b=PG50CW+9eh6gQtEUtWpS2CkLpAHVTq2gBTDMaCQYANsjKu/EmpNYGFQfuetZmXZ9G8 uitVyNvzthHiCCRm1odgHHz95pC6YmZLJKOm2fVv2wtlBgEcujP0U5YbV9yQDve91Kg6 d3ULzB0SMQFX6+luRH9dj1GXwvfedlEvRnn29Ee/W/QSLuJcnBlkJgq48srOtGItaN3M rRvc68Pphz2iJOSdjySgAwvvi2Fz8zJ6pv7Z1deOICrDkcmwx7UY12l/VXC8Mjs++8FE DeWEQ7RCnb4j9yHBp14QrE+3injsQoGg0J4UIy78Np/7dn/YLCZ+qivAkQH70dgCE4Dj EqeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:date:to:from:subject:message-id; bh=lhVQRNaWic0e1hGE+LecepUPcRdp6vVjQzLpnKeZiZc=; b=KohmHejoTuPoi3e9er1y9a1re2MvyNQC5nUnd9FcCHTAvAutWp6/KTIInILOQnRKJe AOe+jT8ZEDbIdKvwLcbaGgVcLeGwPe9bUVkxtN1cDUArTfzlIak8pzz/euaB/irxgNtA m/YPn6Egpr1d/aROVx6Yr6+y60dx7k+kcz/bPO0YcPZ1H7qRfe+FJixEiWcy7YJ+OzCZ ITg4sd38epLXsRbNr5LV7Cku2MZlzAOy6Z6FwdVkAJtANIIlu2miMQfVl9zwXnltlaww 2AtsduuL7NIMvwlySKLaZzZ4eL1MJ7cYIyauusWugQ99WrPwOJgcoITPWMA7SDkBXrHx Mqqg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 133si23651217pfw.64.2018.12.06.00.56.31; Thu, 06 Dec 2018 00:56:46 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729069AbeLFIye (ORCPT + 99 others); Thu, 6 Dec 2018 03:54:34 -0500 Received: from smtp.nue.novell.com ([195.135.221.5]:43285 "EHLO smtp.nue.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727575AbeLFIyd (ORCPT ); Thu, 6 Dec 2018 03:54:33 -0500 Received: from emea4-mta.ukb.novell.com ([10.120.13.87]) by smtp.nue.novell.com with ESMTP (TLS encrypted); Thu, 06 Dec 2018 09:54:31 +0100 Received: from [192.168.1.132] (nwb-a10-snat.microfocus.com [10.120.13.201]) by emea4-mta.ukb.novell.com with ESMTP (TLS encrypted); Thu, 06 Dec 2018 08:54:05 +0000 Message-ID: <1544086444.5492.1.camel@suse.com> Subject: Re: [PATCH] Revert "firmware: dmi_scan: Use lowercase letters for UUID" From: Jean Delvare To: Peter Korsgaard , linux-kernel@vger.kernel.org Date: Thu, 06 Dec 2018 09:54:04 +0100 In-Reply-To: <20181205211351.5309-1-peter@korsgaard.com> References: <20181205211351.5309-1-peter@korsgaard.com> Organization: Suse Linux Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-12-05 at 22:13 +0100, Peter Korsgaard wrote: > This reverts commit 712ff25450bd01366301eef81c33e865d901e7b7. > > The output of dmi_save_uuid() is exposed to user space as > /sys/devices/virtual/dmi/id/*_uuid, so this breaks backwards compatibility, > E.G. I have systems that include the content of dmi/id/product_uuid as part > of the keyphrase for cryptsetup luksOpen. > > As the change was purely cosmetical, revert it to fix such breakage. The change is not "cosmetical". The change was done to comply with RFC 4122: https://tools.ietf.org/html/rfc4122 The hexadecimal values "a" through "f" are output as lower case characters and are case insensitive on input. If "cryptsetup luksOpen" does not lowercase digits before computing its key passphrase, then it's not RFC 4122-compliant and should be fixed. > Signed-off-by: Peter Korsgaard > --- > drivers/firmware/dmi_scan.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/firmware/dmi_scan.c b/drivers/firmware/dmi_scan.c > index 099d83e4e910..2ed51651565f 100644 > --- a/drivers/firmware/dmi_scan.c > +++ b/drivers/firmware/dmi_scan.c > @@ -211,9 +211,9 @@ static void __init dmi_save_uuid(const struct dmi_header *dm, int slot, > * says that this is the defacto standard. > */ > if (dmi_ver >= 0x020600) > - sprintf(s, "%pUl", d); > + sprintf(s, "%pUL", d); > else > - sprintf(s, "%pUb", d); > + sprintf(s, "%pUB", d); > > dmi_ident[slot] = s; > } Nak. This is too late. Changing it again would just add confusion. -- Jean Delvare SUSE L3 Support