Re: [BUG] liveupdate/memfd: duplicate memfd preserve restores same KHO folio twice

From: Pratyush Yadav

Date: Mon May 25 2026 - 11:31:15 EST


On Sun, May 24 2026, Yifei Chu wrote:

> Hello,
>
> Short version: I found that the same memfd can be preserved more than once in a single liveupdate session under different
> tokens. After kexec, those tokens can both refer to the same preserved KHO folio, and the second restore path hits
> kho_restore_page(). With panic_on_warn=1, this is a reproducible panic.

Pasha fixed this with 00d0b372374f ("liveupdate: prevent double
management of files"). It landed in v7.1-rc1.

Since you seem to be using 7.0.9, please port this patch to the 7.0.y
series and try again. If this fixes the problem, please send it to
stable@xxxxxxxxxxxxxxx so it can be included in the 7.0.y series.

--
Regards,
Pratyush Yadav