OSDN Git Service

efi: Validate UEFI boot variables
authorMatthew Garrett <mjg@redhat.com>
Mon, 30 Apr 2012 20:11:30 +0000 (16:11 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2012 15:56:38 +0000 (08:56 -0700)
commit173c412ef8f37d781eb90f5cc8eeab118b987e68
tree61a091ed208a07757dfde7673855720db9756083
parentca14f0481bc8653c39e7b2fca81bc5131ac9afa8
efi: Validate UEFI boot variables

commit fec6c20b570bcf541e581fc97f2e0cbdb9725b98 upstream.

A common flaw in UEFI systems is a refusal to POST triggered by a malformed
boot variable. Once in this state, machines may only be restored by
reflashing their firmware with an external hardware device. While this is
obviously a firmware bug, the serious nature of the outcome suggests that
operating systems should filter their variable writes in order to prevent
a malicious user from rendering the machine unusable.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/efivars.c