linux/drivers/firmware/google
Khazhismel Kumykov a769b05eee gsmi: fix null-deref in gsmi_get_variable
We can get EFI variables without fetching the attribute, so we must
allow for that in gsmi.

commit 859748255b ("efi: pstore: Omit efivars caching EFI varstore
access layer") added a new get_variable call with attr=NULL, which
triggers panic in gsmi.

Fixes: 74c5b31c66 ("driver: Google EFI SMI")
Cc: stable <stable@kernel.org>
Signed-off-by: Khazhismel Kumykov <khazhy@google.com>
Link: https://lore.kernel.org/r/20230118010212.1268474-1-khazhy@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-01-20 13:23:42 +01:00
..
cbmem.c firmware: google: fix a NULL vs IS_ERR() check in cbmem_entry_probe() 2022-11-23 20:03:14 +01:00
coreboot_table.c firmware: coreboot: Check size of table entry and use flex-array 2023-01-13 15:22:03 -08:00
coreboot_table.h firmware: coreboot: Check size of table entry and use flex-array 2023-01-13 15:22:03 -08:00
framebuffer-coreboot.c firmware: google: make coreboot driver's remove callback return void 2021-02-09 12:12:43 +01:00
gsmi.c gsmi: fix null-deref in gsmi_get_variable 2023-01-20 13:23:42 +01:00
Kconfig firmware: google: Implement cbmem in sysfs driver 2022-11-10 18:51:56 +01:00
Makefile firmware: google: Implement cbmem in sysfs driver 2022-11-10 18:51:56 +01:00
memconsole-coreboot.c firmware: google: make coreboot driver's remove callback return void 2021-02-09 12:12:43 +01:00
memconsole-x86-legacy.c
memconsole.c
memconsole.h
vpd_decode.c
vpd_decode.h
vpd.c firmware: google: make coreboot driver's remove callback return void 2021-02-09 12:12:43 +01:00