qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 5/7] hw/arm/boot: Abort if set_kernel_args() fails


From: Peter Maydell
Subject: Re: [PATCH v2 5/7] hw/arm/boot: Abort if set_kernel_args() fails
Date: Mon, 18 May 2020 17:08:22 +0100

On Mon, 18 May 2020 at 16:53, Philippe Mathieu-Daudé <address@hidden> wrote:
>
> If a address_space_write() fails while calling
> set_kernel_args(), the guest kernel will boot
> using crap data. Avoid that by aborting if this
> ever occurs.
>
> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>

I think it's reasonable to make these be fatal, but I think we
shouldn't just assert() but instead make set_kernel_arg()
and set_kernel_args_old() return a success/failure indication,
and report failures to the user as fatal errors.

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]