On Mon, Nov 02, 2026 at 03:21:40PM +0100, Christian Brauner wrote: > copy_oldmem_page() maps a page of the old kernel that isn't in the > linear mapping with ioremap_cache() and copies from it without checking > whether the mapping worked. If it didn't, the copy reads from an offset > into the NULL page. That oopses unless the copy happens to be a user > copy, whose exception table entries turn the fault into a short copy. > > Return -ENOMEM like the other architectures do. read_from_oldmem() > turns that into -EFAULT like any other short copy. > > Reported-by: Chris Mason <[email protected]> > Fixes: 54c32021eb6f ("[PATCH] powerpc: Add arch-dependent copy_oldmem_page") > Cc: [email protected] > Signed-off-by: Christian Brauner (Amutable) <[email protected]>
Reviewed-by: Breno Leitao <[email protected]>
