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

From: Andrew Morton
Date: Thu Dec 21 2023 - 17:13:06 EST


On Thu, 21 Dec 2023 12:23:08 +0800 Yuntao Wang <ytcoode@xxxxxxxxx> 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.