OpenCloudOS-Kernel/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
..
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
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
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 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 287 2019-06-05 17:36:37 +02:00
memconsole.c Merge 5.2-rc4 into char-misc-next 2019-06-09 09:11:21 +02:00
memconsole.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 287 2019-06-05 17:36:37 +02:00
vpd.c firmware: google: make coreboot driver's remove callback return void 2021-02-09 12:12:43 +01:00
vpd_decode.c firmware: google: increment VPD key_len properly 2019-10-11 08:41:34 +02:00
vpd_decode.h firmware: google: check if size is valid when decoding VPD data 2019-09-04 13:31:28 +02:00