From: Jean Delvare <jdelvare@suse.com>
To: Peter Korsgaard <peter@korsgaard.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Revert "firmware: dmi_scan: Use lowercase letters for UUID"
Date: Thu, 06 Dec 2018 09:54:04 +0100 [thread overview]
Message-ID: <1544086444.5492.1.camel@suse.com> (raw)
In-Reply-To: <20181205211351.5309-1-peter@korsgaard.com>
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 <peter@korsgaard.com>
> ---
> 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
next prev parent reply other threads:[~2018-12-06 8:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-05 21:13 [PATCH] Revert "firmware: dmi_scan: Use lowercase letters for UUID" Peter Korsgaard
2018-12-05 21:36 ` Peter Korsgaard
2018-12-06 8:54 ` Jean Delvare [this message]
2018-12-06 9:22 ` Peter Korsgaard
2018-12-06 10:28 ` Jean Delvare
2018-12-06 15:46 ` Peter Korsgaard
2018-12-11 12:06 ` Peter Korsgaard
2018-12-11 13:49 ` Jean Delvare
2018-12-11 14:36 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1544086444.5492.1.camel@suse.com \
--to=jdelvare@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peter@korsgaard.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox