[PATCH makedumpfile] Fix incorrect exclusion of slab pages on Linux 6.2-rc1

HAGIO KAZUHITO(萩尾 一仁) k-hagio-ab at nec.com
Wed Dec 21 23:02:06 PST 2022


On 2022/12/21 11:06, HAGIO KAZUHITO(萩尾 一仁) wrote:
> From: Kazuhito Hagio <k-hagio-ab at nec.com>
> 
> * Required for kernel 6.2
> 
> Kernel commit 130d4df57390 ("mm/sl[au]b: rearrange struct slab fields to
> allow larger rcu_head"), which is contained in Linux 6.2-rc1 and later,
> made the offset of slab.slabs equal to page.mapping's one.  As a result,
> "makedumpfile -d 8", which should exclude user data, excludes some slab
> pages incorrectly because isAnon() returns true when slab.slabs is an
> odd number.  With such dumpfiles, crash can fail to start session with
> an error like this:
> 
>    # crash vmlinux dumpfile
>    ...
>    crash: page excluded: kernel virtual address: ffff8fa047ac2fe8 type: "xa_node shift"
> 
> Make isAnon() check that the page is not slab to fix this.
> 
> Signed-off-by: Kazuhito Hagio <k-hagio-ab at nec.com>

Applied.
https://github.com/makedumpfile/makedumpfile/commit/5f17bdd2128998a3eeeb4521d136a192222fadb6

Thanks,
Kazu


More information about the kexec mailing list