From: AKASHI Takahiro <takahiro.akashi@linaro.org>
To: u-boot@lists.denx.de
Subject: [BUG] segmentation fault in efi_firmware_fit_get_image_info()
Date: Wed, 3 Mar 2021 09:48:52 +0900 [thread overview]
Message-ID: <20210303004852.GC10164@laputa> (raw)
In-Reply-To: <297dea6e-a3e8-597e-5663-d969254f26c2@gmx.de>
Lukasz,
On Tue, Mar 02, 2021 at 08:14:46PM +0100, Heinrich Schuchardt wrote:
> 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().
I'm not sure yet, but dfu_init_env_entities() and dfu_free_entities()
are always paired in get_image_info() as in other use cases like
dfu and thordown commands.
-Takahiro Akashi
> Best regards
>
> Heinrich
prev parent reply other threads:[~2021-03-03 0:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-02 19:14 [BUG] segmentation fault in efi_firmware_fit_get_image_info() Heinrich Schuchardt
2021-03-03 0:48 ` AKASHI Takahiro [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210303004852.GC10164@laputa \
--to=takahiro.akashi@linaro.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.