linux-riscv.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -fixes] riscv: Fix PTDUMP output now BPF region moved back to module region
@ 2021-06-24 12:17 Alexandre Ghiti
  2021-06-25 13:31 ` Jisheng Zhang
  2021-07-06 23:16 ` Palmer Dabbelt
  0 siblings, 2 replies; 4+ messages in thread
From: Alexandre Ghiti @ 2021-06-24 12:17 UTC (permalink / raw)
  To: Paul Walmsley, Palmer Dabbelt, Albert Ou, Jisheng Zhang,
	linux-riscv, linux-kernel
  Cc: Alexandre Ghiti

BPF region was moved back to the region below the kernel at the end of the
module region in commit 3a02764c372c ("riscv: Ensure BPF_JIT_REGION_START
aligned with PMD size"), so reflect this change in kernel page table
output.

Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
---
 arch/riscv/mm/ptdump.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/riscv/mm/ptdump.c b/arch/riscv/mm/ptdump.c
index 0536ac84b730..22d6555d89dc 100644
--- a/arch/riscv/mm/ptdump.c
+++ b/arch/riscv/mm/ptdump.c
@@ -98,8 +98,8 @@ static struct addr_marker address_markers[] = {
 	{0, "vmalloc() end"},
 	{0, "Linear mapping"},
 #ifdef CONFIG_64BIT
-	{0, "Modules mapping"},
-	{0, "Kernel mapping (kernel, BPF)"},
+	{0, "Modules/BPF mapping"},
+	{0, "Kernel mapping"},
 #endif
 	{-1, NULL},
 };
-- 
2.30.2


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH -fixes] riscv: Fix PTDUMP output now BPF region moved back to module region
  2021-06-24 12:17 [PATCH -fixes] riscv: Fix PTDUMP output now BPF region moved back to module region Alexandre Ghiti
@ 2021-06-25 13:31 ` Jisheng Zhang
  2021-07-06 23:16 ` Palmer Dabbelt
  1 sibling, 0 replies; 4+ messages in thread
From: Jisheng Zhang @ 2021-06-25 13:31 UTC (permalink / raw)
  To: Alexandre Ghiti
  Cc: Paul Walmsley, Palmer Dabbelt, Albert Ou, Jisheng Zhang,
	linux-riscv, linux-kernel

On Thu, 24 Jun 2021 14:17:21 +0200
Alexandre Ghiti <alex@ghiti.fr> wrote:

> BPF region was moved back to the region below the kernel at the end of the
> module region in commit 3a02764c372c ("riscv: Ensure BPF_JIT_REGION_START
> aligned with PMD size"), so reflect this change in kernel page table
> output.

Nice catch!

> 
> Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>

Reviewed-by: Jisheng Zhang <jszhang@kernel.org>

> ---
>  arch/riscv/mm/ptdump.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/riscv/mm/ptdump.c b/arch/riscv/mm/ptdump.c
> index 0536ac84b730..22d6555d89dc 100644
> --- a/arch/riscv/mm/ptdump.c
> +++ b/arch/riscv/mm/ptdump.c
> @@ -98,8 +98,8 @@ static struct addr_marker address_markers[] = {
>  	{0, "vmalloc() end"},
>  	{0, "Linear mapping"},
>  #ifdef CONFIG_64BIT
> -	{0, "Modules mapping"},
> -	{0, "Kernel mapping (kernel, BPF)"},
> +	{0, "Modules/BPF mapping"},
> +	{0, "Kernel mapping"},
>  #endif
>  	{-1, NULL},
>  };



_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH -fixes] riscv: Fix PTDUMP output now BPF region moved back to module region
  2021-06-24 12:17 [PATCH -fixes] riscv: Fix PTDUMP output now BPF region moved back to module region Alexandre Ghiti
  2021-06-25 13:31 ` Jisheng Zhang
@ 2021-07-06 23:16 ` Palmer Dabbelt
  2021-07-08 11:42   ` Alex Ghiti
  1 sibling, 1 reply; 4+ messages in thread
From: Palmer Dabbelt @ 2021-07-06 23:16 UTC (permalink / raw)
  To: alex; +Cc: Paul Walmsley, aou, jszhang, linux-riscv, linux-kernel, alex

On Thu, 24 Jun 2021 05:17:21 PDT (-0700), alex@ghiti.fr wrote:
> BPF region was moved back to the region below the kernel at the end of the
> module region in commit 3a02764c372c ("riscv: Ensure BPF_JIT_REGION_START
> aligned with PMD size"), so reflect this change in kernel page table
> output.
>
> Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
> ---
>  arch/riscv/mm/ptdump.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/riscv/mm/ptdump.c b/arch/riscv/mm/ptdump.c
> index 0536ac84b730..22d6555d89dc 100644
> --- a/arch/riscv/mm/ptdump.c
> +++ b/arch/riscv/mm/ptdump.c
> @@ -98,8 +98,8 @@ static struct addr_marker address_markers[] = {
>  	{0, "vmalloc() end"},
>  	{0, "Linear mapping"},
>  #ifdef CONFIG_64BIT
> -	{0, "Modules mapping"},
> -	{0, "Kernel mapping (kernel, BPF)"},
> +	{0, "Modules/BPF mapping"},
> +	{0, "Kernel mapping"},
>  #endif
>  	{-1, NULL},
>  };

Thanks, this is on for-next.

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH -fixes] riscv: Fix PTDUMP output now BPF region moved back to module region
  2021-07-06 23:16 ` Palmer Dabbelt
@ 2021-07-08 11:42   ` Alex Ghiti
  0 siblings, 0 replies; 4+ messages in thread
From: Alex Ghiti @ 2021-07-08 11:42 UTC (permalink / raw)
  To: Palmer Dabbelt
  Cc: Paul Walmsley, aou, jszhang, linux-riscv, linux-kernel, stable

Le 7/07/2021 à 01:16, Palmer Dabbelt a écrit :
> On Thu, 24 Jun 2021 05:17:21 PDT (-0700), alex@ghiti.fr wrote:
>> BPF region was moved back to the region below the kernel at the end of 
>> the
>> module region in commit 3a02764c372c ("riscv: Ensure BPF_JIT_REGION_START
>> aligned with PMD size"), so reflect this change in kernel page table
>> output.
>>
>> Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
>> ---
>>  arch/riscv/mm/ptdump.c | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/arch/riscv/mm/ptdump.c b/arch/riscv/mm/ptdump.c
>> index 0536ac84b730..22d6555d89dc 100644
>> --- a/arch/riscv/mm/ptdump.c
>> +++ b/arch/riscv/mm/ptdump.c
>> @@ -98,8 +98,8 @@ static struct addr_marker address_markers[] = {
>>      {0, "vmalloc() end"},
>>      {0, "Linear mapping"},
>>  #ifdef CONFIG_64BIT
>> -    {0, "Modules mapping"},
>> -    {0, "Kernel mapping (kernel, BPF)"},
>> +    {0, "Modules/BPF mapping"},
>> +    {0, "Kernel mapping"},
>>  #endif
>>      {-1, NULL},
>>  };
> 
> Thanks, this is on for-next.

As this fix was for 5.13, I add stable in cc.

Cc: stable@vger.kernel.org # v5.13

> 
> _______________________________________________
> linux-riscv mailing list
> linux-riscv@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-07-08 11:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-24 12:17 [PATCH -fixes] riscv: Fix PTDUMP output now BPF region moved back to module region Alexandre Ghiti
2021-06-25 13:31 ` Jisheng Zhang
2021-07-06 23:16 ` Palmer Dabbelt
2021-07-08 11:42   ` Alex Ghiti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).