[PATCH 0/2] hw/loongarch: Harden boot param

Bibo Mao posted 2 patches 1 month, 3 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260807070029.1171348-1-maobibo@loongson.cn
Maintainers: Song Gao <17746591750@163.com>, Bibo Mao <maobibo@loongson.cn>, Xianglai Li <lixianglai@loongson.cn>, Jiaxun Yang <jiaxun.yang@flygoat.com>
hw/loongarch/boot.c           | 68 ++++++++++++++++++++++++++++-------
hw/loongarch/virt-fdt-build.c | 27 ++++++++++++++
2 files changed, 82 insertions(+), 13 deletions(-)
[PATCH 0/2] hw/loongarch: Harden boot param
Posted by Bibo Mao 1 month, 3 weeks ago
When booting the Linux kernel without UEFI BIOS, QEMU needs to set the boot param for
kernel. This patch adds memory boundary checking when adding boot param.

Also this patch set adds bootargs and initrd in the FDT table.

Bibo Mao (2):
  hw/loongarch/boot: Check memory boundary in init_boot_rom()
  hw/loongarch/virt: Add bootargs and initrd to device-tree

 hw/loongarch/boot.c           | 68 ++++++++++++++++++++++++++++-------
 hw/loongarch/virt-fdt-build.c | 27 ++++++++++++++
 2 files changed, 82 insertions(+), 13 deletions(-)


base-commit: b428fe036233cbd15d37e3c027ab6ca4d3661a80
-- 
2.54.0
Re: [PATCH 0/2] hw/loongarch: Harden boot param
Posted by gaosong 1 month ago
在 2026/8/7 下午3:00, Bibo Mao 写道:
> When booting the Linux kernel without UEFI BIOS, QEMU needs to set the boot param for
> kernel. This patch adds memory boundary checking when adding boot param.
>
> Also this patch set adds bootargs and initrd in the FDT table.
>
> Bibo Mao (2):
>    hw/loongarch/boot: Check memory boundary in init_boot_rom()
>    hw/loongarch/virt: Add bootargs and initrd to device-tree
>
>   hw/loongarch/boot.c           | 68 ++++++++++++++++++++++++++++-------
>   hw/loongarch/virt-fdt-build.c | 27 ++++++++++++++
>   2 files changed, 82 insertions(+), 13 deletions(-)
>
>
> base-commit: b428fe036233cbd15d37e3c027ab6ca4d3661a80
Reviewed-by: Song Gao <gaosong@loongson.cn>

Thanks.
Song Gao