All of lore.kernel.org
 help / color / mirror / Atom feed
* FAILED: patch "[PATCH] powerpc/ptdump: Fix display of RW pages on FSL_BOOK3E" failed to apply to 4.19-stable tree
@ 2022-08-13 14:38 gregkh
  2022-08-16  8:37 ` Christophe Leroy
  0 siblings, 1 reply; 3+ messages in thread
From: gregkh @ 2022-08-13 14:38 UTC (permalink / raw)
  To: christophe.leroy, mpe; +Cc: stable


The patch below does not apply to the 4.19-stable tree.
If someone wants it applied there, or to any other stable or longterm
tree, then please email the backport, including the original git commit
id to <stable@vger.kernel.org>.

thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

From dd8de84b57b02ba9c1fe530a6d916c0853f136bd Mon Sep 17 00:00:00 2001
From: Christophe Leroy <christophe.leroy@csgroup.eu>
Date: Tue, 28 Jun 2022 16:43:35 +0200
Subject: [PATCH] powerpc/ptdump: Fix display of RW pages on FSL_BOOK3E

On FSL_BOOK3E, _PAGE_RW is defined with two bits, one for user and one
for supervisor. As soon as one of the two bits is set, the page has
to be display as RW. But the way it is implemented today requires both
bits to be set in order to display it as RW.

Instead of display RW when _PAGE_RW bits are set and R otherwise,
reverse the logic and display R when _PAGE_RW bits are all 0 and
RW otherwise.

This change has no impact on other platforms as _PAGE_RW is a single
bit on all of them.

Fixes: 8eb07b187000 ("powerpc/mm: Dump linux pagetables")
Cc: stable@vger.kernel.org
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/0c33b96317811edf691e81698aaee8fa45ec3449.1656427391.git.christophe.leroy@csgroup.eu

diff --git a/arch/powerpc/mm/ptdump/shared.c b/arch/powerpc/mm/ptdump/shared.c
index 03607ab90c66..f884760ca5cf 100644
--- a/arch/powerpc/mm/ptdump/shared.c
+++ b/arch/powerpc/mm/ptdump/shared.c
@@ -17,9 +17,9 @@ static const struct flag_info flag_array[] = {
 		.clear	= "    ",
 	}, {
 		.mask	= _PAGE_RW,
-		.val	= _PAGE_RW,
-		.set	= "rw",
-		.clear	= "r ",
+		.val	= 0,
+		.set	= "r ",
+		.clear	= "rw",
 	}, {
 		.mask	= _PAGE_EXEC,
 		.val	= _PAGE_EXEC,


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

* Re: FAILED: patch "[PATCH] powerpc/ptdump: Fix display of RW pages on FSL_BOOK3E" failed to apply to 4.19-stable tree
  2022-08-13 14:38 FAILED: patch "[PATCH] powerpc/ptdump: Fix display of RW pages on FSL_BOOK3E" failed to apply to 4.19-stable tree gregkh
@ 2022-08-16  8:37 ` Christophe Leroy
  2022-08-19 11:14   ` gregkh
  0 siblings, 1 reply; 3+ messages in thread
From: Christophe Leroy @ 2022-08-16  8:37 UTC (permalink / raw)
  To: gregkh@linuxfoundation.org, mpe@ellerman.id.au; +Cc: stable@vger.kernel.org



Le 13/08/2022 à 16:38, gregkh@linuxfoundation.org a écrit :
> 
> The patch below does not apply to the 4.19-stable tree.
> If someone wants it applied there, or to any other stable or longterm
> tree, then please email the backport, including the original git commit
> id to <stable@vger.kernel.org>.
> 
> thanks,

For 4.19, not worth the effort to backport without commit 
97026b5a5ac26541b3d294146f5c941491a9e609

With that commit applied, no conflict is observed:

[chleroy@PO20335 linux-powerpc]$ git log -1 --oneline
5c7ccbe1aade (HEAD -> linux-4.19.y, tag: v4.19.255, stable/linux-4.19.y) 
Linux 4.19.255

[chleroy@PO20335 linux-powerpc]$ git cherry-pick 
97026b5a5ac26541b3d294146f5c941491a9e609
Fusion automatique de arch/powerpc/mm/dump_linuxpagetables.c
[linux-4.19.y 55605f963e22] powerpc/mm: Split dump_pagelinuxtables 
flag_array table
  Author: Christophe Leroy <christophe.leroy@c-s.fr>
  Date: Tue Oct 9 13:51:58 2018 +0000
  6 files changed, 307 insertions(+), 153 deletions(-)
  create mode 100644 arch/powerpc/mm/dump_linuxpagetables-8xx.c
  create mode 100644 arch/powerpc/mm/dump_linuxpagetables-book3s64.c
  create mode 100644 arch/powerpc/mm/dump_linuxpagetables-generic.c
  create mode 100644 arch/powerpc/mm/dump_linuxpagetables.h

[chleroy@PO20335 linux-powerpc]$ git cherry-pick 
dd8de84b57b02ba9c1fe530a6d916c0853f136bd
Fusion automatique de arch/powerpc/mm/dump_linuxpagetables-generic.c
[linux-4.19.y 864f14f5b787] powerpc/ptdump: Fix display of RW pages on 
FSL_BOOK3E
  Date: Tue Jun 28 16:43:35 2022 +0200
  1 file changed, 3 insertions(+), 3 deletions(-)



> 
> greg k-h
> 
> ------------------ original commit in Linus's tree ------------------
> 
>  From dd8de84b57b02ba9c1fe530a6d916c0853f136bd Mon Sep 17 00:00:00 2001
> From: Christophe Leroy <christophe.leroy@csgroup.eu>
> Date: Tue, 28 Jun 2022 16:43:35 +0200
> Subject: [PATCH] powerpc/ptdump: Fix display of RW pages on FSL_BOOK3E
> 
> On FSL_BOOK3E, _PAGE_RW is defined with two bits, one for user and one
> for supervisor. As soon as one of the two bits is set, the page has
> to be display as RW. But the way it is implemented today requires both
> bits to be set in order to display it as RW.
> 
> Instead of display RW when _PAGE_RW bits are set and R otherwise,
> reverse the logic and display R when _PAGE_RW bits are all 0 and
> RW otherwise.
> 
> This change has no impact on other platforms as _PAGE_RW is a single
> bit on all of them.
> 
> Fixes: 8eb07b187000 ("powerpc/mm: Dump linux pagetables")
> Cc: stable@vger.kernel.org
> Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
> Link: https://lore.kernel.org/r/0c33b96317811edf691e81698aaee8fa45ec3449.1656427391.git.christophe.leroy@csgroup.eu
> 
> diff --git a/arch/powerpc/mm/ptdump/shared.c b/arch/powerpc/mm/ptdump/shared.c
> index 03607ab90c66..f884760ca5cf 100644
> --- a/arch/powerpc/mm/ptdump/shared.c
> +++ b/arch/powerpc/mm/ptdump/shared.c
> @@ -17,9 +17,9 @@ static const struct flag_info flag_array[] = {
>   		.clear	= "    ",
>   	}, {
>   		.mask	= _PAGE_RW,
> -		.val	= _PAGE_RW,
> -		.set	= "rw",
> -		.clear	= "r ",
> +		.val	= 0,
> +		.set	= "r ",
> +		.clear	= "rw",
>   	}, {
>   		.mask	= _PAGE_EXEC,
>   		.val	= _PAGE_EXEC,
> 

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

* Re: FAILED: patch "[PATCH] powerpc/ptdump: Fix display of RW pages on FSL_BOOK3E" failed to apply to 4.19-stable tree
  2022-08-16  8:37 ` Christophe Leroy
@ 2022-08-19 11:14   ` gregkh
  0 siblings, 0 replies; 3+ messages in thread
From: gregkh @ 2022-08-19 11:14 UTC (permalink / raw)
  To: Christophe Leroy; +Cc: mpe@ellerman.id.au, stable@vger.kernel.org

On Tue, Aug 16, 2022 at 08:37:59AM +0000, Christophe Leroy wrote:
> 
> 
> Le 13/08/2022 à 16:38, gregkh@linuxfoundation.org a écrit :
> > 
> > The patch below does not apply to the 4.19-stable tree.
> > If someone wants it applied there, or to any other stable or longterm
> > tree, then please email the backport, including the original git commit
> > id to <stable@vger.kernel.org>.
> > 
> > thanks,
> 
> For 4.19, not worth the effort to backport without commit 
> 97026b5a5ac26541b3d294146f5c941491a9e609
> 
> With that commit applied, no conflict is observed:
> 
> [chleroy@PO20335 linux-powerpc]$ git log -1 --oneline
> 5c7ccbe1aade (HEAD -> linux-4.19.y, tag: v4.19.255, stable/linux-4.19.y) 
> Linux 4.19.255
> 
> [chleroy@PO20335 linux-powerpc]$ git cherry-pick 
> 97026b5a5ac26541b3d294146f5c941491a9e609
> Fusion automatique de arch/powerpc/mm/dump_linuxpagetables.c
> [linux-4.19.y 55605f963e22] powerpc/mm: Split dump_pagelinuxtables 
> flag_array table
>   Author: Christophe Leroy <christophe.leroy@c-s.fr>
>   Date: Tue Oct 9 13:51:58 2018 +0000
>   6 files changed, 307 insertions(+), 153 deletions(-)
>   create mode 100644 arch/powerpc/mm/dump_linuxpagetables-8xx.c
>   create mode 100644 arch/powerpc/mm/dump_linuxpagetables-book3s64.c
>   create mode 100644 arch/powerpc/mm/dump_linuxpagetables-generic.c
>   create mode 100644 arch/powerpc/mm/dump_linuxpagetables.h
> 
> [chleroy@PO20335 linux-powerpc]$ git cherry-pick 
> dd8de84b57b02ba9c1fe530a6d916c0853f136bd
> Fusion automatique de arch/powerpc/mm/dump_linuxpagetables-generic.c
> [linux-4.19.y 864f14f5b787] powerpc/ptdump: Fix display of RW pages on 
> FSL_BOOK3E
>   Date: Tue Jun 28 16:43:35 2022 +0200
>   1 file changed, 3 insertions(+), 3 deletions(-)
> 

Thanks, that worked.

greg k-h

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

end of thread, other threads:[~2022-08-19 11:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-13 14:38 FAILED: patch "[PATCH] powerpc/ptdump: Fix display of RW pages on FSL_BOOK3E" failed to apply to 4.19-stable tree gregkh
2022-08-16  8:37 ` Christophe Leroy
2022-08-19 11:14   ` gregkh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.