[PATCH 1/1] sandbox: unblock signal before calling execv()

Simon Glass sjg at chromium.org
Mon Sep 26 17:26:30 CEST 2022


On Thu, 1 Sept 2022 at 18:32, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> The following faulty behavior was observed. The sandbox configured with
> CONFIG_SANDBOX_CRASH_RESET=y was invoked with
>
>     ./u-boot -T -S
>
> After executing `exception undefined' the sandbox reboots.
> When executing `exception undefined' the sandbox exits with SIGSEGV.
>
> The expected behavior is that the sandbox should reboot again.
>
> If we are relaunching the sandbox in a signal handler, we have to unblock
> the respective signal before calling execv(). See signal(7) man-page.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
>  arch/sandbox/cpu/os.c | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
>

Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list