powerpc/kernel: Disable the latent entropy plugin unconditionally
PATCH 1/1 powerpc/kernel: Disable the latent entropy plugin unconditionally
--- arch/powerpc/kernel/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/powerpc/kernel/Makefile +2 -1
@@ -14,11 +14,12 @@ CFLAGS_prom_init.o += -fPIC CFLAGS_btext.o += -fPIC endif -ifdef CONFIG_FUNCTION_TRACER CFLAGS_cputable.o += $(DISABLE_LATENT_ENTROPY_PLUGIN) CFLAGS_init.o += $(DISABLE_LATENT_ENTROPY_PLUGIN) CFLAGS_btext.o += $(DISABLE_LATENT_ENTROPY_PLUGIN) CFLAGS_prom.o += $(DISABLE_LATENT_ENTROPY_PLUGIN) + +ifdef CONFIG_FUNCTION_TRACER # Do not trace early boot code CFLAGS_REMOVE_cputable.o = -mno-sched-epilog $(CC_FLAGS_FTRACE) CFLAGS_REMOVE_prom_init.o = -mno-sched-epilog $(CC_FLAGS_FTRACE)
Signature · 1 line
2.8.1
Quoted 3 lines · Emese Revfy
Reported-by PaX Team <[email protected]>Signed-off-by Emese Revfy <[email protected]>
Thanks! Can you include a body in the commit message? For this, something like:
Disable the gcc-plugin unconditionlly here because ... *reason it is required*
etc
-Kees
Quoted 24 lines
--- arch/powerpc/kernel/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)arch/powerpc/kernel/Makefile +2
-2@@ -14,11 +14,12 @@ CFLAGS_prom_init.o += -fPIC CFLAGS_btext.o += -fPIC endif -ifdef CONFIG_FUNCTION_TRACER CFLAGS_cputable.o += $(DISABLE_LATENT_ENTROPY_PLUGIN) CFLAGS_init.o += $(DISABLE_LATENT_ENTROPY_PLUGIN) CFLAGS_btext.o += $(DISABLE_LATENT_ENTROPY_PLUGIN) CFLAGS_prom.o += $(DISABLE_LATENT_ENTROPY_PLUGIN) + +ifdef CONFIG_FUNCTION_TRACER # Do not trace early boot code CFLAGS_REMOVE_cputable.o = -mno-sched-epilog $(CC_FLAGS_FTRACE) CFLAGS_REMOVE_prom_init.o = -mno-sched-epilog $(CC_FLAGS_FTRACE) --2.8.1
Signature · 2 lines
Kees Cook Chrome OS & Brillo Security
Quoted 8 lines · On Mon, 27 Jun 2016 09:05:08 -0700 Kees Cook <[email protected]> wrote:
Quoted 3 lines · Emese Revfy
Reported-by PaX Team <[email protected]>Signed-off-by Emese Revfy <[email protected]>Thanks! Can you include a body in the commit message? For this, something like:
Disable the gcc-plugin unconditionlly here because ... *reason it is required*
Hi,
You can see it here:
https://github.com/ephox-gcc-plugins/gcc-plugins_linux-next/commit/a1bb2bd3fd9ac414623ec3210e9c514d9d38cf9e
Signature · 1 line
Emese
Quoted 8 lines · Emese Revfy
Quoted 5 lines · On Mon, 27 Jun 2016 09:05:08 -0700 Kees Cook <[email protected]> wrote:
Quoted 3 lines · Emese Revfy
Reported-by PaX Team <[email protected]>Signed-off-by Emese Revfy <[email protected]>
Quoted 8 lines
Quoted 3 lines
Thanks! Can you include a body in the commit message? For this, something like:
Disable the gcc-plugin unconditionlly here because ... *reason it is required*
Hi,
You can see it here:
https://github.com/ephox-gcc-plugins/gcc-plugins_linux-next/commit/a1bb2bd3fd9ac414623ec3210e9c514d9d38cf9e
Thanks, I've squashed this into the latenty_entropy initial commit in my tree.
-Kees
Quoted 3 lines
--
Emese
Signature · 2 lines
Kees Cook Chrome OS & Brillo Security
Quoted 12 lines · Emese Revfy
Reported-by PaX Team <[email protected]>Signed-off-by Emese Revfy <[email protected]>--- arch/powerpc/kernel/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)arch/powerpc/kernel/Makefile +0
-0
arch/powerpc/kernel/Makefile CFLAGS_prom_init.o += -fPIC · line 18
Quoted 6 lines
arch/powerpc/kernel/Makefile +0
-1@@ -14,11 +14,12 @@ CFLAGS_prom_init.o += -fPIC CFLAGS_btext.o += -fPIC endif -ifdef CONFIG_FUNCTION_TRACER CFLAGS_cputable.o += $(DISABLE_LATENT_ENTROPY_PLUGIN) CFLAGS_init.o += $(DISABLE_LATENT_ENTROPY_PLUGIN)
I think you meant prom_init.o...
Additionally, DISABLE_LATENT_ENTROPY_PLUGIN is conditioned on CONFIG_PAX_LATENT_ENTROPY rather than CONFIG_GCC_PLUGIN_LATENT_ENTROPY, so it doesn't get exported correctly.
Will submit fixes along with patches to enable plugins on powerpc once I get that sorted.
(In future please remember to cc linuxppc-dev.)
Signature · 2 lines
Andrew Donnellan OzLabs, ADL Canberra [email protected] IBM Australia Limited
Quoted 24 lines · Andrew Donnellan
Quoted 13 lines · Emese Revfy
Reported-by PaX Team <[email protected]>Signed-off-by Emese Revfy <[email protected]>--- arch/powerpc/kernel/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)arch/powerpc/kernel/Makefile +0
-0arch/powerpc/kernel/Makefile CFLAGS_prom_init.o += -fPIC · line 18
Quoted 6 lines
arch/powerpc/kernel/Makefile +0
-1@@ -14,11 +14,12 @@ CFLAGS_prom_init.o += -fPIC CFLAGS_btext.o += -fPIC endif -ifdef CONFIG_FUNCTION_TRACER CFLAGS_cputable.o += $(DISABLE_LATENT_ENTROPY_PLUGIN) CFLAGS_init.o += $(DISABLE_LATENT_ENTROPY_PLUGIN)I think you meant prom_init.o...
Quoted 8 lines
Additionally,
DISABLE_LATENT_ENTROPY_PLUGINis conditioned onCONFIG_PAX_LATENT_ENTROPYrather thanCONFIG_GCC_PLUGIN_LATENT_ENTROPY, so it doesn't get exported correctly.Will submit fixes along with patches to enable plugins on powerpc once I get that sorted.
(In future please remember to cc linuxppc-dev.)
Just checking in: did these patches materialize? I'd love to see plugins working on v4.10 for ppc.
-Kees
Signature · 2 lines
Kees Cook Nexus Security
Quoted 2 lines · Kees Cook
Just checking in: did these patches materialize? I'd love to see plugins working on v4.10 for ppc.
Working on it! https://github.com/ajdlinux/linux/tree/powerpc-gcc-plugin-infrastructure
Just need to test with all the compilers to figure out which ones are broken so we can put a version check in...
Signature · 2 lines
Andrew Donnellan OzLabs, ADL Canberra [email protected] IBM Australia Limited
Quoted 8 lines · Andrew Donnellan
Quoted 3 lines · Kees Cook
Just checking in: did these patches materialize? I'd love to see plugins working on v4.10 for ppc.
Working on it!
https://github.com/ajdlinux/linux/tree/powerpc-gcc-plugin-infrastructure
Very cool, thanks!
Quoted 2 lines
Just need to test with all the compilers to figure out which ones are broken so we can put a version check in...
Sounds good.
-Kees
Signature · 2 lines
Kees Cook Nexus Security