[BUG] liveupdate/memfd: duplicate memfd preserve restores same KHO folio twice
Pratyush Yadav
pratyush at kernel.org
Mon May 25 08:30:34 PDT 2026
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 at vger.kernel.org so it can be included in the 7.0.y series.
--
Regards,
Pratyush Yadav
More information about the kexec
mailing list