[PATCH v7 07/15] LoongArch: kexec_file: Fix a modified_cmdline leak
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Mon Oct 26 03:28:30 PDT 2026
> machine_kexec_prepare() copies it to KEXEC_CMDLINE_ADDR and overwrites
> the pointer, so free the heap buffer after the copy.
>
> Cc: Huacai Chen <chenhuacai at kernel.org>
> Cc: WANG Xuerui <kernel at xen0n.name>
> Cc: Kexin Liu <liukexin at kylinos.cn>
> Cc: Youling Tang <tangyouling at kylinos.cn>
> Cc: Qiang Ma <maqianga at uniontech.com>
> Cc: Tianyang Zhang <zhangtianyang at loongson.cn>
> Cc: George Guo <guodongtai at kylinos.cn>
> Cc: stable at vger.kernel.org
> Fixes: d162feec6b6e ("LoongArch: Add preparatory infrastructure for kexec_file")
> Signed-off-by: Jinjie Ruan <ruanjinjie at huawei.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261026075201.699550-1-ruanjinjie@huawei.com?part=7
More information about the kexec
mailing list