]> git.ipfire.org Git - people/arne_f/kernel.git/commit
efi: Do variable name validation tests in utf8
authorPeter Jones <pjones@redhat.com>
Mon, 8 Feb 2016 19:48:13 +0000 (14:48 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Mar 2016 15:42:20 +0000 (08:42 -0700)
commit3285d6ab25cb597f71ce911a1237ac993c177fc5
treee86ca1a87d983dbb56346748f56b5d304dd843bf
parent84603ed7e7357217f48e35cc4b4b2c3337d9b725
efi: Do variable name validation tests in utf8

commit 3dcb1f55dfc7631695e69df4a0d589ce5274bd07 upstream.

Actually translate from ucs2 to utf8 before doing the test, and then
test against our other utf8 data, instead of fudging it.

Signed-off-by: Peter Jones <pjones@redhat.com>
Acked-by: Matthew Garrett <mjg59@coreos.com>
Tested-by: Lee, Chun-Yi <jlee@suse.com>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/efi/efivars.c
drivers/firmware/efi/vars.c
include/linux/efi.h