Re: [PATCH] Fix "kmem -v" option on Linux 5.11-rc1 and later kernels

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



在 2021年01月19日 17:43, crash-utility-request@xxxxxxxxxx 写道:
> Date: Tue, 19 Jan 2021 09:42:54 +0000
> From: HAGIO KAZUHITO(?????) 	<k-hagio-ab@xxxxxxx>
> To: "crash-utility@xxxxxxxxxx" <crash-utility@xxxxxxxxxx>
> Subject:  [PATCH] Fix "kmem -v" option on Linux
> 	5.11-rc1 and	later kernels
> Message-ID:
> 	<OSBPR01MB19911991A7F295330CBC0AC5DDA30@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
> 	
> Content-Type: text/plain; charset="iso-2022-jp"
> 
> 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@xxxxxxx>
> ---
>  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@xxxxxxxxxx>

>  
> -- 2.18.4

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility




[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux