[PATCH] kexec_core: fix the assignment to kimage->control_page

Andrew Morton akpm at linux-foundation.org
Thu Dec 21 14:12:58 PST 2023


On Thu, 21 Dec 2023 12:23:08 +0800 Yuntao Wang <ytcoode at gmail.com> wrote:

> image->control_page represents the starting address for allocating the next
> control page, while hole_end represents the address of the last valid byte
> of the currently allocated control page.
> 
> Therefore, after successfully allocating a control page, image->control_page
> should be updated to `hole_end + 1`, rather than hole_end.

Thanks.  Again, please include a description of the userspace-visible effects of the bug.



More information about the kexec mailing list