efi: Add a sanity check to efivar_store_raw()
commit849233b7421c434bc638f4c44eb83890cef57f1b
authorVladis Dronov <vdronov@redhat.com>
Sun, 8 Mar 2020 08:08:55 +0000 (8 09:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2020 06:17:53 +0000 (18 07:17 +0100)
tree84356d006335bbeb3d0ed4f640ff5e55f7d80b43
parent594b38226f84ccfd9b2583c7ba8c149bdf5d2552
efi: Add a sanity check to efivar_store_raw()

commit d6c066fda90d578aacdf19771a027ed484a79825 upstream.

Add a sanity check to efivar_store_raw() the same way
efivar_{attr,size,data}_read() and efivar_show_raw() have it.

Signed-off-by: Vladis Dronov <vdronov@redhat.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200305084041.24053-3-vdronov@redhat.com
Link: https://lore.kernel.org/r/20200308080859.21568-25-ardb@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/efi/efivars.c