diff options
| author | Kory Maincent (TI.com) <[email protected]> | 2025-11-04 10:58:01 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-11-11 11:54:42 -0600 |
| commit | 664cdc5fd524db0c09c1200e89e65207a3b772a4 (patch) | |
| tree | 81bdcd0464cc6d292643b23a94afc9d18f3087f1 /drivers | |
| parent | c7e33aae35bf841f9b8573e6f37dfab71f0e5171 (diff) | |
qfw: Fix segfault from uninitialized variables in sandbox
There are cases where qfw_read_entry() does not set the output parameter
passed by address. This occurs with qfw_sandbox_read_entry_dma, which
leaves the size variables uninitialized and causes a segfault when running
bootflow scan in U-Boot sandbox.
$ ./u-boot
...
U-Boot 2026.01-rc1-00199-gc2637036b8f0 (Nov 04 2025 - 10:32:21 +0100)
...
Hit any key to stop autoboot: 0
=> bootflow scan
efi_var_to_file() Cannot persist EFI variables without system partition
efi_tcg2_register() Missing TPMv2 device for EFI_TCG_PROTOCOL
efi_rng_register() Missing RNG device for EFI_RNG_PROTOCOL
scanning bus for devices...
[3] 1015761 segmentation fault (core dumped) ./u-boot
Initalize all these variables to 0 to fix this issue.
Signed-off-by: Kory Maincent (TI.com) <[email protected]>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions
