[BUG] segmentation fault in efi_firmware_fit_get_image_info()

Heinrich Schuchardt xypron.glpk at gmx.de
Tue Mar 2 20:14:46 CET 2021


Hello Takahiro,

Jose's ESRT implementation calls efi_firmware_fit_get_image_info()
multiple times. This results in a segmentation fault in the depths of
dfu_free_entities() involving device_chld_remove().

I used

env set dfu_alt_info "sf 0:0=u-boot-bin raw 0x100000 0x50000;u-boot-env
raw 0x150000 0x200000"

for testing on sandbox_defconfig.

If I comment out the dfu_free_entities() calls the segmentation fault is
avoided.

Could you, please, check with Lukasz when and if you should call
dfu_free_entities() in efi_get_dfu_info().

Best regards

Heinrich


More information about the U-Boot mailing list