Re: [PATCH v3] riscv: Fix a NULL pointer dereference in machine_kexec_prepare

Markus Elfring <[email protected]> Wed, 1 Jul 2026 08:00:14 +0200
Newsgroups gmane.linux.ports.riscv,gmane.linux.kernel.kexec,gmane.linux.kernel.janitors,gmane.linux.kernel
Message-ID <[email protected]>
…
> Fix this by simply adding a check before copy.

                                           a data copy attempt?



> Fixes: b7fb4d78a6ad ("RISC-V: use memcpy for kexec_file mode")

See also once more:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/stable-kernel-rules.rst?h=v7.2-rc1#n34


Would a summary phrase like “Prevent null pointer dereference in machine_kexec_prepare()”
be nicer?

Regards,
Markus

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv