Skip to contentSkip to conversation

powerpc: Stop exporting __clear_user which is now inlined.

PATCH Applied Michal Suchanek 4 participants 4 messages Dec 4, 2020 – Dec 6, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Stop exporting __clear_user which is now inlined.

Stable commit 452e2a83ea23 ("powerpc: Fix __clear_user() with KUAP enabled") redefines __clear_user as inline function but does not remove the export.

Fixes 452e2a83ea23 ("powerpc: Fix __clear_user() with KUAP enabled")
---
 arch/powerpc/lib/ppc_ksyms.c | 1 -
 1 file changed, 1 deletion(-)
arch/powerpc/lib/ppc_ksyms.c +0 -1
index c7f8e9586316..4b81fd96aa3e 100644
@@ -24,7 +24,6 @@ EXPORT_SYMBOL(csum_tcpudp_magic);
 #endif
 
 EXPORT_SYMBOL(__copy_tofrom_user);
-EXPORT_SYMBOL(__clear_user);
 EXPORT_SYMBOL(copy_page);
 
 #ifdef CONFIG_PPC64
Signature · 1 line
2.26.2
reviewer Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Michal Suchanek

Stable commit 452e2a83ea23 ("powerpc: Fix __clear_user() with KUAP enabled") redefines __clear_user as inline function but does not remove the export.

Fixes 452e2a83ea23 ("powerpc: Fix __clear_user() with KUAP enabled")
---
 arch/powerpc/lib/ppc_ksyms.c | 1 -
 1 file changed, 1 deletion(-)

cheers

Quoted 14 lines
arch/powerpc/lib/ppc_ksyms.c +0 -1
index c7f8e9586316..4b81fd96aa3e 100644
@@ -24,7 +24,6 @@ EXPORT_SYMBOL(csum_tcpudp_magic);
 #endif
 
 EXPORT_SYMBOL(__copy_tofrom_user);
-EXPORT_SYMBOL(__clear_user);
 EXPORT_SYMBOL(copy_page);
 
 #ifdef CONFIG_PPC64
Signature · 1 line
2.26.2
#2 lore raw
Quoted 5 lines · Michael Ellerman
Quoted 4 lines · Michal Suchanek

Stable commit 452e2a83ea23 ("powerpc: Fix __clear_user() with KUAP enabled") redefines __clear_user as inline function but does not remove the export.

Quoted 8 lines
Quoted 6 lines
Fixes 452e2a83ea23 ("powerpc: Fix __clear_user() with KUAP enabled")
---
 arch/powerpc/lib/ppc_ksyms.c | 1 -
 1 file changed, 1 deletion(-)

Now applied, thanks.

greg k-h

maintainer Applied
#3 lore raw

Patch "powerpc: Stop exporting __clear_user which is now inlined." has been added to the 4.4-stable tree

In reply to Michal Suchanek

This is a note to let you know that I've just added the patch titled

powerpc: Stop exporting __clear_user which is now inlined.

to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
powerpc-stop-exporting-__clear_user-which-is-now-inlined.patch
and it can be found in the queue-4.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

From [email protected] Sun Dec 6 10:49:43 2020
From: Michal Suchanek <[email protected]>
Date: Sat, 5 Dec 2020 00:28:07 +0100
Subject: powerpc: Stop exporting __clear_user which is now inlined.
To: [email protected]
Cc: Michal Suchanek <[email protected]>, Benjamin Herrenschmidt <[email protected]>, Paul Mackerras <[email protected]>, Michael Ellerman <[email protected]>, [email protected], [email protected]
Message-ID: <[email protected]>

From: Michal Suchanek <[email protected]>

Stable commit 452e2a83ea23 ("powerpc: Fix __clear_user() with KUAP enabled") redefines __clear_user as inline function but does not remove the export.

Fixes 452e2a83ea23 ("powerpc: Fix __clear_user() with KUAP enabled")
---
 arch/powerpc/lib/ppc_ksyms.c |    1 -
 1 file changed, 1 deletion(-)
arch/powerpc/lib/ppc_ksyms.c +0 -1
@@ -24,7 +24,6 @@ EXPORT_SYMBOL(csum_tcpudp_magic);
 #endif
 
 EXPORT_SYMBOL(__copy_tofrom_user);
-EXPORT_SYMBOL(__clear_user);
 EXPORT_SYMBOL(copy_page);
 
 #ifdef CONFIG_PPC64

Patches currently in stable-queue which might be from [email protected] are

queue-4.4/powerpc-stop-exporting-__clear_user-which-is-now-inlined.patch