summaryrefslogtreecommitdiff
path: root/firmware/3com
diff options
context:
space:
mode:
authorSeiji Aguchi <seiji.aguchi@hds.com>2012-11-15 00:25:37 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-06-08 03:02:09 +0400
commit8e74ecf7da0e7a9d0ef4e2474f87a5cba86b4347 (patch)
treeeceed3bf49db3b55d8746531e60bbf6adc8232ce /firmware/3com
parent75a0ac16ab0b957c19795a0e47d774ca614af7c7 (diff)
downloadlinux-8e74ecf7da0e7a9d0ef4e2474f87a5cba86b4347.tar.xz
efi_pstore: Check remaining space with QueryVariableInfo() before writing data
commit d80a361d779a9f19498943d1ca84243209cd5647 upstream. [Issue] As discussed in a thread below, Running out of space in EFI isn't a well-tested scenario. And we wouldn't expect all firmware to handle it gracefully. http://marc.info/?l=linux-kernel&m=134305325801789&w=2 On the other hand, current efi_pstore doesn't check a remaining space of storage at writing time. Therefore, efi_pstore may not work if it tries to write a large amount of data. [Patch Description] To avoid handling the situation above, this patch checks if there is a space enough to log with QueryVariableInfo() before writing data. Signed-off-by: Seiji Aguchi <seiji.aguchi@hds.com> Acked-by: Mike Waychison <mikew@google.com> Signed-off-by: Tony Luck <tony.luck@intel.com> Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Cc: Rui Xiang <rui.xiang@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'firmware/3com')
0 files changed, 0 insertions, 0 deletions