commit | 89d16665d388837b30972081d97b814be26d68a2 | [log] [tgz] |
---|---|---|
author | Matt Fleming <matt.fleming@intel.com> | Fri Nov 09 21:02:56 2012 +0000 |
committer | Matt Fleming <matt.fleming@intel.com> | Tue Nov 13 12:33:21 2012 +0000 |
tree | 0fd95e1e9d6886c27e7d9b7eed7464cd2e22988d | |
parent | cfcf2f11708f934d2bd294f973c2fcb0cc54f293 [diff] |
efivarfs: Use query_variable_info() to limit kmalloc() We don't want someone who can write EFI variables to be able to allocate arbitrarily large amounts of memory, so cap it to something sensible like the amount of free space for EFI variables. Acked-by: Jeremy Kerr <jeremy.kerr@canonical.com> Cc: Matthew Garrett <mjg@redhat.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Matt Fleming <matt.fleming@intel.com>