[PATCH 03/12] x86: zimage: Sanity-check the kernel version before printing it

Bin Meng bmeng.cn at gmail.com
Fri Oct 16 07:59:02 CEST 2020


On Mon, Sep 28, 2020 at 8:46 AM Simon Glass <sjg at chromium.org> wrote:
>
> With Chrome OS the kernel setup block is stored in a separate place from
> the kernel, so it is not possible to access the kernel version string.
> At present, garbage is printed.
>
> Add a sanity check to avoid this.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
>  arch/x86/lib/zimage.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list