[Crash-utility] [PATCH] Fix "kmem -v" option on Linux 5.11-rc1 and later kernels
HAGIO KAZUHITO(萩尾 一仁)
k-hagio-ab at nec.com
Tue Jan 26 01:46:37 UTC 2021
-----Original Message-----
> > Fix the "kmem -v" option on Linux 5.11-rc1 and later kernels
> > that contains commit 96e2db456135db0cf2476b6890f1e8b2fdcf21eb
> > ("mm/vmalloc: rework the drain logic"). Without the patch,
> > the option will display nothing or fail with the error message
> > "kmem: invalid kernel virtual address: <address> type: "vmlist addr".
> >
> > Signed-off-by: Kazuhito Hagio <k-hagio-ab at nec.com>
> > ---
> > memory.c | 2 --
> > 1 file changed, 2 deletions(-)
> >
> > diff --git a/memory.c b/memory.c
> > index 0848097eb4f5..33b0ca7af977 100644
> > --- a/memory.c
> > +++ b/memory.c
> > @@ -403,8 +403,6 @@ vm_init(void)
> > VALID_MEMBER(vmap_area_va_end) &&
> > VALID_MEMBER(vmap_area_list) &&
> > VALID_MEMBER(vmap_area_vm) &&
> > - (VALID_MEMBER(vmap_area_flags) ||
> > - (OFFSET(vmap_area_vm) == MEMBER_OFFSET("vmap_area", "purge_list"))) &&
> > kernel_symbol_exists("vmap_area_list"))
> > vt->flags |= USE_VMAP_AREA;
>
> Also looks good. Acked-by: Lianbo Jiang <lijiang at redhat.com>
Applied.
https://github.com/crash-utility/crash/commit/7bda96c431321de1b0fe2b88ccb388ec4b0293dd
Thanks,
Kazu
More information about the Crash-utility
mailing list