[PATCH v4 1/4] Add support for passing gcc plugin arguments

2016-06-20 Thread Emese Revfy
Signed-off-by: Emese Revfy <re.em...@gmail.com> --- scripts/Makefile.gcc-plugins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.gcc-plugins b/scripts/Makefile.gcc-plugins index 5e22b60..da7f86c 100644 --- a/scripts/Makefile.gcc-plugins +++ b/s

[PATCH v4 1/4] Add support for passing gcc plugin arguments

2016-06-20 Thread Emese Revfy
Signed-off-by: Emese Revfy --- scripts/Makefile.gcc-plugins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.gcc-plugins b/scripts/Makefile.gcc-plugins index 5e22b60..da7f86c 100644 --- a/scripts/Makefile.gcc-plugins +++ b/scripts/Makefile.gcc-plugins

[PATCH v4 0/4] Introduce the latent_entropy gcc plugin

2016-06-20 Thread Emese Revfy
/ephox-gcc-plugins/latent_entropy This patch set is based on the "Introduce GCC plugin infrastructure" patch set (git/mmarek/kbuild.git#kbuild HEAD: 543c37cb165049c3be). Emese Revfy (4): Add support for passing gcc plugin arguments Add the latent_entropy gcc plugin Mark

[PATCH v4 0/4] Introduce the latent_entropy gcc plugin

2016-06-20 Thread Emese Revfy
/ephox-gcc-plugins/latent_entropy This patch set is based on the "Introduce GCC plugin infrastructure" patch set (git/mmarek/kbuild.git#kbuild HEAD: 543c37cb165049c3be). Emese Revfy (4): Add support for passing gcc plugin arguments Add the latent_entropy gcc plugin Mark

Re: [PATCH v9 3/4] Add Cyclomatic complexity GCC plugin

2016-06-15 Thread Emese Revfy
On Tue, 14 Jun 2016 12:29:59 -0700 Laura Abbott <labb...@redhat.com> wrote: > On 05/23/2016 03:10 PM, Emese Revfy wrote: > 1) make mrproper > 2) make defconfig > 3) enable GCC_PLUGINS, GCC_PLUGIN_CYC_COMPLEXITY > 4) enable FUNCTION_TRACER (it will select other options as we

Re: [PATCH v9 3/4] Add Cyclomatic complexity GCC plugin

2016-06-15 Thread Emese Revfy
On Tue, 14 Jun 2016 12:29:59 -0700 Laura Abbott wrote: > On 05/23/2016 03:10 PM, Emese Revfy wrote: > 1) make mrproper > 2) make defconfig > 3) enable GCC_PLUGINS, GCC_PLUGIN_CYC_COMPLEXITY > 4) enable FUNCTION_TRACER (it will select other options as well) > 5) make &&am

Re: [PATCH v3 2/4] Add the latent_entropy gcc plugin

2016-06-15 Thread Emese Revfy
On Wed, 15 Jun 2016 11:07:08 -0700 Kees Cook <keesc...@chromium.org> wrote: > On Tue, Jun 14, 2016 at 3:20 PM, Emese Revfy <re.em...@gmail.com> wrote: > This doesn't look right to me: these are CFLAGS_REMOVE_* entries, and > I think you want to _add_ the DISABLE_

Re: [PATCH v3 2/4] Add the latent_entropy gcc plugin

2016-06-15 Thread Emese Revfy
On Wed, 15 Jun 2016 11:07:08 -0700 Kees Cook wrote: > On Tue, Jun 14, 2016 at 3:20 PM, Emese Revfy wrote: > This doesn't look right to me: these are CFLAGS_REMOVE_* entries, and > I think you want to _add_ the DISABLE_LATENT_ENTROPY_PLUGIN to the > CFLAGS here. Thanks for the rep

Re: [PATCH v3 0/4] Introduce the latent_entropy gcc plugin

2016-06-15 Thread Emese Revfy
On Wed, 15 Jun 2016 11:55:44 -0700 Kees Cook wrote: > The limit on the length of lines is 80 columns and this is a strongly > preferred limit. I think the code looks worse when it is truncated to 80 columns but I'll do it and resend the patches. -- Emese

Re: [PATCH v3 0/4] Introduce the latent_entropy gcc plugin

2016-06-15 Thread Emese Revfy
On Wed, 15 Jun 2016 11:55:44 -0700 Kees Cook wrote: > The limit on the length of lines is 80 columns and this is a strongly > preferred limit. I think the code looks worse when it is truncated to 80 columns but I'll do it and resend the patches. -- Emese

Re: [PATCH v9 3/4] Add Cyclomatic complexity GCC plugin

2016-06-14 Thread Emese Revfy
On Tue, 14 Jun 2016 12:29:59 -0700 Laura Abbott wrote: > This has some weird interaction with ftrace. On x86 > > 1) make mrproper > 2) make defconfig > 3) enable GCC_PLUGINS, GCC_PLUGIN_CYC_COMPLEXITY > 4) enable FUNCTION_TRACER (it will select other options as well) > 5)

Re: [PATCH v9 3/4] Add Cyclomatic complexity GCC plugin

2016-06-14 Thread Emese Revfy
On Tue, 14 Jun 2016 12:29:59 -0700 Laura Abbott wrote: > This has some weird interaction with ftrace. On x86 > > 1) make mrproper > 2) make defconfig > 3) enable GCC_PLUGINS, GCC_PLUGIN_CYC_COMPLEXITY > 4) enable FUNCTION_TRACER (it will select other options as well) > 5) make && make modules >

Re: [PATCH v2 1/3] Add the latent_entropy gcc plugin

2016-06-14 Thread Emese Revfy
On Tue, 14 Jun 2016 11:27:00 -0700 Kees Cook <keesc...@chromium.org> wrote: > On Mon, Jun 13, 2016 at 2:49 PM, Emese Revfy <re.em...@gmail.com> wrote: > > On Thu, 9 Jun 2016 14:51:45 -0700 > > Kees Cook <keesc...@chromium.org> wrote: > > >> &

Re: [PATCH v2 1/3] Add the latent_entropy gcc plugin

2016-06-14 Thread Emese Revfy
On Tue, 14 Jun 2016 11:27:00 -0700 Kees Cook wrote: > On Mon, Jun 13, 2016 at 2:49 PM, Emese Revfy wrote: > > On Thu, 9 Jun 2016 14:51:45 -0700 > > Kees Cook wrote: > > >> > + * gcc plugin to help generate a little bit of entropy from program > >&

[PATCH v3 4/4] Add the extra_latent_entropy kernel parameter

2016-06-14 Thread Emese Revfy
When extra_latent_entropy is passed on the kernel command line, entropy will be extracted from up to the first 4GB of RAM while the runtime memory allocator is being initialized. Based on work created by the PaX Team. Signed-off-by: Emese Revfy <re.em...@gmail.com> --- Documentation/

[PATCH v3 4/4] Add the extra_latent_entropy kernel parameter

2016-06-14 Thread Emese Revfy
When extra_latent_entropy is passed on the kernel command line, entropy will be extracted from up to the first 4GB of RAM while the runtime memory allocator is being initialized. Based on work created by the PaX Team. Signed-off-by: Emese Revfy --- Documentation/kernel-parameters.txt | 5

[PATCH v3 3/4] Mark functions with the latent_entropy attribute

2016-06-14 Thread Emese Revfy
with integer fields. These functions have been selected because they are init functions or are called at random times or they have variable loops. Signed-off-by: Emese Revfy <re.em...@gmail.com> --- block/blk-softirq.c | 2 +- drivers/char/random.c| 6 +++--- fs/names

[PATCH v3 3/4] Mark functions with the latent_entropy attribute

2016-06-14 Thread Emese Revfy
with integer fields. These functions have been selected because they are init functions or are called at random times or they have variable loops. Signed-off-by: Emese Revfy --- block/blk-softirq.c | 2 +- drivers/char/random.c| 6 +++--- fs/namespace.c | 2 +- include

[PATCH v3 2/4] Add the latent_entropy gcc plugin

2016-06-14 Thread Emese Revfy
in do_one_initcall() and _do_fork(). Signed-off-by: Emese Revfy <re.em...@gmail.com> --- arch/Kconfig| 18 + arch/powerpc/kernel/Makefile| 8 +- include/linux/random.h | 10 + init/main.c

[PATCH v3 2/4] Add the latent_entropy gcc plugin

2016-06-14 Thread Emese Revfy
in do_one_initcall() and _do_fork(). Signed-off-by: Emese Revfy --- arch/Kconfig| 18 + arch/powerpc/kernel/Makefile| 8 +- include/linux/random.h | 10 + init/main.c | 1 + kernel/fork.c

[PATCH v3 1/4] Add support for passing gcc plugin arguments

2016-06-14 Thread Emese Revfy
Signed-off-by: Emese Revfy <re.em...@gmail.com> --- scripts/Makefile.gcc-plugins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.gcc-plugins b/scripts/Makefile.gcc-plugins index 5e22b60..da7f86c 100644 --- a/scripts/Makefile.gcc-plugins +++ b/s

[PATCH v3 1/4] Add support for passing gcc plugin arguments

2016-06-14 Thread Emese Revfy
Signed-off-by: Emese Revfy --- scripts/Makefile.gcc-plugins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.gcc-plugins b/scripts/Makefile.gcc-plugins index 5e22b60..da7f86c 100644 --- a/scripts/Makefile.gcc-plugins +++ b/scripts/Makefile.gcc-plugins

[PATCH v3 0/4] Introduce the latent_entropy gcc plugin

2016-06-14 Thread Emese Revfy
/ephox-gcc-plugins/latent_entropy This patch set is based on the "Introduce GCC plugin infrastructure" patch set (v9 next-20160520). Emese Revfy (4): Add support for passing gcc plugin arguments Add the latent_entropy gcc plugin Mark functions with the latent_entropy attr

[PATCH v3 0/4] Introduce the latent_entropy gcc plugin

2016-06-14 Thread Emese Revfy
/ephox-gcc-plugins/latent_entropy This patch set is based on the "Introduce GCC plugin infrastructure" patch set (v9 next-20160520). Emese Revfy (4): Add support for passing gcc plugin arguments Add the latent_entropy gcc plugin Mark functions with the latent_entropy attr

Re: [PATCH v2 1/3] Add the latent_entropy gcc plugin

2016-06-13 Thread Emese Revfy
On Thu, 9 Jun 2016 14:51:45 -0700 Kees Cook <keesc...@chromium.org> wrote: > On Mon, May 30, 2016 at 4:31 PM, Emese Revfy <re.em...@gmail.com> wrote: > > - GCC_PLUGINS_CFLAGS := $(addprefix > > -fplugin=$(objtree)/scripts/gcc-plugins/, $(gcc-plugin-y)) > >

Re: [PATCH v2 1/3] Add the latent_entropy gcc plugin

2016-06-13 Thread Emese Revfy
On Thu, 9 Jun 2016 14:51:45 -0700 Kees Cook wrote: > On Mon, May 30, 2016 at 4:31 PM, Emese Revfy wrote: > > - GCC_PLUGINS_CFLAGS := $(addprefix > > -fplugin=$(objtree)/scripts/gcc-plugins/, $(gcc-plugin-y)) > > + GCC_PLUGINS_CFLAGS := $(strip $(addprefix > > -fpl

Re: [PATCH] gcc-plugins: disable under COMPILE_TEST

2016-06-12 Thread Emese Revfy
On Sun, 12 Jun 2016 15:25:39 -0700 Kees Cook wrote: > I don't like this because it means if someone specifically selects > some plugins in their .config, and the headers are missing, the kernel > will successfully compile. For many plugins, this results in a kernel > that

Re: [PATCH] gcc-plugins: disable under COMPILE_TEST

2016-06-12 Thread Emese Revfy
On Sun, 12 Jun 2016 15:25:39 -0700 Kees Cook wrote: > I don't like this because it means if someone specifically selects > some plugins in their .config, and the headers are missing, the kernel > will successfully compile. For many plugins, this results in a kernel > that lacks the requested

Re: [PATCH] gcc-plugins: disable under COMPILE_TEST

2016-06-12 Thread Emese Revfy
plugins (but still print a warning). This allows building allyes/allmod configs until the gcc plugin headers get installed. Signed-off-by: Emese Revfy <re.em...@gmail.com> --- Makefile | 6 +++--- scripts/Makefile.gcc-plugins | 8 2 files changed, 7 insertio

Re: [PATCH] gcc-plugins: disable under COMPILE_TEST

2016-06-12 Thread Emese Revfy
. This allows building allyes/allmod configs until the gcc plugin headers get installed. Signed-off-by: Emese Revfy --- Makefile | 6 +++--- scripts/Makefile.gcc-plugins | 8 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index

Re: [PATCH v2 0/3] Introduce the latent_entropy gcc plugin

2016-06-09 Thread Emese Revfy
On Thu, 9 Jun 2016 14:18:08 -0700 Kees Cook wrote: > By the way, as you work on v3, can you also be sure to put your > patches through scripts/checkpatch.pl? There are a lot of >80 > character lines, and other nits. I'd like to minimize the warnings. I only split those

Re: [PATCH v2 0/3] Introduce the latent_entropy gcc plugin

2016-06-09 Thread Emese Revfy
On Thu, 9 Jun 2016 14:18:08 -0700 Kees Cook wrote: > By the way, as you work on v3, can you also be sure to put your > patches through scripts/checkpatch.pl? There are a lot of >80 > character lines, and other nits. I'd like to minimize the warnings. I only split those lines where the split

Re: linux-next: build warnings after merge of the kbuild tree

2016-06-09 Thread Emese Revfy
On Thu, 9 Jun 2016 12:22:58 +1000 Stephen Rothwell wrote: > Hi Michal, > > After merging the kbuild tree, today's linux-next build (x86_64 > allmodconfig) produced these warnings: > > Cyclomatic Complexity 1 scripts/mod/devicetable-offsets.c:main > Cyclomatic Complexity

Re: linux-next: build warnings after merge of the kbuild tree

2016-06-09 Thread Emese Revfy
On Thu, 9 Jun 2016 12:22:58 +1000 Stephen Rothwell wrote: > Hi Michal, > > After merging the kbuild tree, today's linux-next build (x86_64 > allmodconfig) produced these warnings: > > Cyclomatic Complexity 1 scripts/mod/devicetable-offsets.c:main > Cyclomatic Complexity 1 kernel/bounds.c:foo >

Re: linux-next: build warnings after merge of the kbuild tree

2016-06-09 Thread Emese Revfy
On Thu, 9 Jun 2016 12:57:16 +0200 Michal Marek wrote: > Dne 9.6.2016 v 06:05 Stephen Rothwell napsal(a): > > On Wed, 8 Jun 2016 19:56:38 -0700 Kees Cook wrote: > >> Ah, yes, that should default to off. We'll get a fix landed ASAP. > > > > Note that this

Re: linux-next: build warnings after merge of the kbuild tree

2016-06-09 Thread Emese Revfy
On Thu, 9 Jun 2016 12:57:16 +0200 Michal Marek wrote: > Dne 9.6.2016 v 06:05 Stephen Rothwell napsal(a): > > On Wed, 8 Jun 2016 19:56:38 -0700 Kees Cook wrote: > >> Ah, yes, that should default to off. We'll get a fix landed ASAP. > > > > Note that this was an allmodconfig build. The default

Re: [PATCH v9 0/4] Introduce GCC plugin infrastructure

2016-06-07 Thread Emese Revfy
On Tue, 7 Jun 2016 13:59:53 -0700 Kees Cook wrote: > > > > I applied the series to kbuild.git#kbuild now, sorry for the delay. > > Awesome! Thank you very much. I'll prepare the latent entropy plugin > for -next now too. I'll send a new patch series this week because I'm

Re: [PATCH v9 0/4] Introduce GCC plugin infrastructure

2016-06-07 Thread Emese Revfy
On Tue, 7 Jun 2016 13:59:53 -0700 Kees Cook wrote: > > > > I applied the series to kbuild.git#kbuild now, sorry for the delay. > > Awesome! Thank you very much. I'll prepare the latent entropy plugin > for -next now too. I'll send a new patch series this week because I'm developing a small

Re: [PATCH v2 1/3] Add the latent_entropy gcc plugin

2016-06-03 Thread Emese Revfy
On Wed, 1 Jun 2016 12:42:27 -0700 Andrew Morton <a...@linux-foundation.org> wrote: > On Tue, 31 May 2016 01:31:45 +0200 Emese Revfy <re.em...@gmail.com> wrote: > > > This plugin mitigates the problem of the kernel having too little entropy > > during > >

Re: [PATCH v2 1/3] Add the latent_entropy gcc plugin

2016-06-03 Thread Emese Revfy
On Wed, 1 Jun 2016 12:42:27 -0700 Andrew Morton wrote: > On Tue, 31 May 2016 01:31:45 +0200 Emese Revfy wrote: > > > This plugin mitigates the problem of the kernel having too little entropy > > during > > and after boot for generating crypto keys. > > &

[PATCH v2 3/3] Add the extra_latent_entropy kernel parameter

2016-05-30 Thread Emese Revfy
When extra_latent_entropy is passed on the kernel command line, entropy will be extracted from up to the first 4GB of RAM while the runtime memory allocator is being initialized. Based on work created by the PaX Team. Signed-off-by: Emese Revfy <re.em...@gmail.com> --- Documentation/

[PATCH v2 3/3] Add the extra_latent_entropy kernel parameter

2016-05-30 Thread Emese Revfy
When extra_latent_entropy is passed on the kernel command line, entropy will be extracted from up to the first 4GB of RAM while the runtime memory allocator is being initialized. Based on work created by the PaX Team. Signed-off-by: Emese Revfy --- Documentation/kernel-parameters.txt | 5

[PATCH v2 2/3] Mark functions with the latent_entropy attribute

2016-05-30 Thread Emese Revfy
with integer fields. These functions have been selected because they are init functions or are called at random times or they have variable loops. Signed-off-by: Emese Revfy <re.em...@gmail.com> --- block/blk-softirq.c | 2 +- drivers/char/random.c| 6 +++--- fs/names

[PATCH v2 2/3] Mark functions with the latent_entropy attribute

2016-05-30 Thread Emese Revfy
with integer fields. These functions have been selected because they are init functions or are called at random times or they have variable loops. Signed-off-by: Emese Revfy --- block/blk-softirq.c | 2 +- drivers/char/random.c| 6 +++--- fs/namespace.c | 2 +- include

[PATCH v2 1/3] Add the latent_entropy gcc plugin

2016-05-30 Thread Emese Revfy
in do_one_initcall() and _do_fork(). Signed-off-by: Emese Revfy <re.em...@gmail.com> --- arch/Kconfig| 18 ++ arch/powerpc/kernel/Makefile| 8 +- include/linux/random.h | 10 + init/main.c

[PATCH v2 1/3] Add the latent_entropy gcc plugin

2016-05-30 Thread Emese Revfy
in do_one_initcall() and _do_fork(). Signed-off-by: Emese Revfy --- arch/Kconfig| 18 ++ arch/powerpc/kernel/Makefile| 8 +- include/linux/random.h | 10 + init/main.c | 1 + kernel/fork.c

[PATCH v2 0/3] Introduce the latent_entropy gcc plugin

2016-05-30 Thread Emese Revfy
/ephox-gcc-plugins/latent_entropy This patch set is based on the "Introduce GCC plugin infrastructure" patch set (v9 next-20160520). Emese Revfy (3): Add the latent_entropy gcc plugin Mark functions with the latent_entropy attribute Add the extra_latent_entropy kernel parameter Chang

[PATCH v2 0/3] Introduce the latent_entropy gcc plugin

2016-05-30 Thread Emese Revfy
/ephox-gcc-plugins/latent_entropy This patch set is based on the "Introduce GCC plugin infrastructure" patch set (v9 next-20160520). Emese Revfy (3): Add the latent_entropy gcc plugin Mark functions with the latent_entropy attribute Add the extra_latent_entropy kernel parameter Chang

Re: [PATCH v1 1/3] Add the latent_entropy gcc plugin

2016-05-30 Thread Emese Revfy
On Tue, 24 May 2016 19:55:17 -0700 Kees Cook wrote: > Yeah, answering "how random is this?" is not easy, but that's not what > I meant. I'm more curious about specific build configs or hardware > where calling get_random_int() early enough would always produce the > same

Re: [PATCH v1 1/3] Add the latent_entropy gcc plugin

2016-05-30 Thread Emese Revfy
On Tue, 24 May 2016 19:55:17 -0700 Kees Cook wrote: > Yeah, answering "how random is this?" is not easy, but that's not what > I meant. I'm more curious about specific build configs or hardware > where calling get_random_int() early enough would always produce the > same value (or the same

Re: [PATCH v1 1/3] Add the latent_entropy gcc plugin

2016-05-24 Thread Emese Revfy
On Tue, 24 May 2016 10:32:15 -0700 Kees Cook wrote: > Also, does this matter that it's non-atomic? It seems like the u64 > below is being written to by multiple threads and even read by > multiple threads. Am I misunderstanding something? The non-atomic accesses are

Re: [PATCH v1 1/3] Add the latent_entropy gcc plugin

2016-05-24 Thread Emese Revfy
On Tue, 24 May 2016 10:32:15 -0700 Kees Cook wrote: > Also, does this matter that it's non-atomic? It seems like the u64 > below is being written to by multiple threads and even read by > multiple threads. Am I misunderstanding something? The non-atomic accesses are intentional because they can

Re: [PATCH v1 2/3] Mark functions with the latent_entropy attribute

2016-05-24 Thread Emese Revfy
On Tue, 24 May 2016 10:16:09 -0700 Kees Cook <keesc...@chromium.org> wrote: > On Mon, May 23, 2016 at 3:16 PM, Emese Revfy <re.em...@gmail.com> wrote: > > +#ifdef CONFIG_MEMORY_HOTPLUG > > +#define add_meminit_latent_entropy > > +#else > > +#define add_

Re: [PATCH v1 2/3] Mark functions with the latent_entropy attribute

2016-05-24 Thread Emese Revfy
On Tue, 24 May 2016 10:16:09 -0700 Kees Cook wrote: > On Mon, May 23, 2016 at 3:16 PM, Emese Revfy wrote: > > +#ifdef CONFIG_MEMORY_HOTPLUG > > +#define add_meminit_latent_entropy > > +#else > > +#define add_meminit_latent_entropy _

Re: [PATCH v1 3/3] Add the extra_latent_entropy kernel parameter

2016-05-24 Thread Emese Revfy
On Tue, 24 May 2016 10:09:16 -0700 Kees Cook <keesc...@chromium.org> wrote: > On Mon, May 23, 2016 at 3:17 PM, Emese Revfy <re.em...@gmail.com> wrote: > > @@ -1235,6 +1236,15 @@ static void __free_pages_ok(struct page *page, > > unsigned int or

Re: [PATCH v1 3/3] Add the extra_latent_entropy kernel parameter

2016-05-24 Thread Emese Revfy
On Tue, 24 May 2016 10:09:16 -0700 Kees Cook wrote: > On Mon, May 23, 2016 at 3:17 PM, Emese Revfy wrote: > > @@ -1235,6 +1236,15 @@ static void __free_pages_ok(struct page *page, > > unsigned int order) > > } > > > > #ifdef CONFIG_GCC_PLUGIN_LATEN

[PATCH v1 3/3] Add the extra_latent_entropy kernel parameter

2016-05-23 Thread Emese Revfy
When extra_latent_entropy is passed on the kernel command line, entropy will be extracted from up to the first 4GB of RAM while the runtime memory allocator is being initialized. Based on work created by the PaX Team. Signed-off-by: Emese Revfy <re.em...@gmail.com> --- Documentation/

[PATCH v1 3/3] Add the extra_latent_entropy kernel parameter

2016-05-23 Thread Emese Revfy
When extra_latent_entropy is passed on the kernel command line, entropy will be extracted from up to the first 4GB of RAM while the runtime memory allocator is being initialized. Based on work created by the PaX Team. Signed-off-by: Emese Revfy --- Documentation/kernel-parameters.txt | 5

[PATCH v1 2/3] Mark functions with the latent_entropy attribute

2016-05-23 Thread Emese Revfy
These functions have been selected because they are init functions or are called at random times or they have variable loops. Based on work created by the PaX Team. Signed-off-by: Emese Revfy <re.em...@gmail.com> --- block/blk-softirq.c | 2 +- drivers/char/random.c

[PATCH v1 2/3] Mark functions with the latent_entropy attribute

2016-05-23 Thread Emese Revfy
These functions have been selected because they are init functions or are called at random times or they have variable loops. Based on work created by the PaX Team. Signed-off-by: Emese Revfy --- block/blk-softirq.c | 2 +- drivers/char/random.c| 6 +++--- fs/namespace.c

[PATCH v1 1/3] Add the latent_entropy gcc plugin

2016-05-23 Thread Emese Revfy
in do_one_initcall() and _do_fork(). Based on work created by the PaX Team. Signed-off-by: Emese Revfy <re.em...@gmail.com> --- arch/Kconfig| 17 ++ arch/powerpc/kernel/Makefile| 8 +- include/linux/random.h | 8 + init/

[PATCH v1 1/3] Add the latent_entropy gcc plugin

2016-05-23 Thread Emese Revfy
in do_one_initcall() and _do_fork(). Based on work created by the PaX Team. Signed-off-by: Emese Revfy --- arch/Kconfig| 17 ++ arch/powerpc/kernel/Makefile| 8 +- include/linux/random.h | 8 + init/main.c

[PATCH v1 0/3] Introduce the latent_entropy gcc plugin

2016-05-23 Thread Emese Revfy
/ephox-gcc-plugins/latent_entropy This patch set is based on the "Introduce GCC plugin infrastructure" patch set (v9). Emese Revfy (3): Add the latent_entropy gcc plugin Mark functions with the latent_entropy attribute Add the extra_latent_entropy kernel parameter --- Documentat

[PATCH v1 0/3] Introduce the latent_entropy gcc plugin

2016-05-23 Thread Emese Revfy
/ephox-gcc-plugins/latent_entropy This patch set is based on the "Introduce GCC plugin infrastructure" patch set (v9). Emese Revfy (3): Add the latent_entropy gcc plugin Mark functions with the latent_entropy attribute Add the extra_latent_entropy kernel parameter --- Documentat

[PATCH v9 4/4] Add sancov plugin

2016-05-23 Thread Emese Revfy
try Vyukov (https://gcc.gnu.org/viewcvs/gcc?limit_changes=0=revision=231296). Signed-off-by: Emese Revfy <re.em...@gmail.com> --- Makefile| 10 +-- arch/Kconfig| 9 +++ arch/x86/purgatory/Makefile | 2 + lib/Kconfig.debug

[PATCH v9 4/4] Add sancov plugin

2016-05-23 Thread Emese Revfy
try Vyukov (https://gcc.gnu.org/viewcvs/gcc?limit_changes=0=revision=231296). Signed-off-by: Emese Revfy --- Makefile| 10 +-- arch/Kconfig| 9 +++ arch/x86/purgatory/Makefile | 2 + lib/Kconfig.debug | 2

[PATCH v9 3/4] Add Cyclomatic complexity GCC plugin

2016-05-23 Thread Emese Revfy
of connected components (exit nodes). Signed-off-by: Emese Revfy <re.em...@gmail.com> --- arch/Kconfig| 12 + scripts/Makefile.gcc-plugins| 1 + scripts/gcc-plugins/Makefile| 1 + scripts/gcc-plugins/cyc_complexity_plugin.

[PATCH v9 3/4] Add Cyclomatic complexity GCC plugin

2016-05-23 Thread Emese Revfy
of connected components (exit nodes). Signed-off-by: Emese Revfy --- arch/Kconfig| 12 + scripts/Makefile.gcc-plugins| 1 + scripts/gcc-plugins/Makefile| 1 + scripts/gcc-plugins/cyc_complexity_plugin.c | 73

[PATCH v9 2/4] GCC plugin infrastructure

2016-05-23 Thread Emese Revfy
passes. Note that 'make clean' keeps the *.so files (only the distclean or mrproper targets clean all) because they are needed for out-of-tree modules. Based on work created by the PaX Team. Signed-off-by: Emese Revfy <re.em...@gmail.com> --- .gitignore

[PATCH v9 2/4] GCC plugin infrastructure

2016-05-23 Thread Emese Revfy
passes. Note that 'make clean' keeps the *.so files (only the distclean or mrproper targets clean all) because they are needed for out-of-tree modules. Based on work created by the PaX Team. Signed-off-by: Emese Revfy --- .gitignore | 1 + Documentation

[PATCH v9 1/4] Shared library support

2016-05-23 Thread Emese Revfy
Infrastructure for building independent shared library targets. Based on work created by the PaX Team. Signed-off-by: Emese Revfy <re.em...@gmail.com> --- scripts/Makefile.build | 2 +- scripts/Makefile.clean | 4 +++- scripts/Makefile.host

[PATCH v9 1/4] Shared library support

2016-05-23 Thread Emese Revfy
Infrastructure for building independent shared library targets. Based on work created by the PaX Team. Signed-off-by: Emese Revfy --- scripts/Makefile.build | 2 +- scripts/Makefile.clean | 4 +++- scripts/Makefile.host | 55 +- 3 files

[PATCH v9 0/4] Introduce GCC plugin infrastructure

2016-05-23 Thread Emese Revfy
project supported by the Linux Foundation. Emese Revfy (4): Shared library support GCC plugin infrastructure Add Cyclomatic complexity plugin Add sancov plugin Changes from v8: * Use warnings instead of errors because of allmodconfig/allyesconfig builds with old gcc versions (Suggested

[PATCH v9 0/4] Introduce GCC plugin infrastructure

2016-05-23 Thread Emese Revfy
project supported by the Linux Foundation. Emese Revfy (4): Shared library support GCC plugin infrastructure Add Cyclomatic complexity plugin Add sancov plugin Changes from v8: * Use warnings instead of errors because of allmodconfig/allyesconfig builds with old gcc versions (Suggested

Re: [PATCH v8 2/4] GCC plugin infrastructure

2016-05-18 Thread Emese Revfy
On Tue, 17 May 2016 16:28:05 +0200 Michal Marek <mma...@suse.com> wrote: > Dne 13.5.2016 v 01:57 Emese Revfy napsal(a): > > --- /dev/null > > +++ b/scripts/Makefile.gcc-plugins > > @@ -0,0 +1,21 @@ > > +ifdef CONFIG_GCC_PLUGINS > > + __PLUGINCC := $(

Re: [PATCH v8 2/4] GCC plugin infrastructure

2016-05-18 Thread Emese Revfy
On Tue, 17 May 2016 16:28:05 +0200 Michal Marek wrote: > Dne 13.5.2016 v 01:57 Emese Revfy napsal(a): > > --- /dev/null > > +++ b/scripts/Makefile.gcc-plugins > > @@ -0,0 +1,21 @@ > > +ifdef CONFIG_GCC_PLUGINS > > + __PLUGINCC := $(call cc-ifversion

Re: [kernel-hardening] [PATCH v8 3/4] Add Cyclomatic complexity GCC plugin

2016-05-18 Thread Emese Revfy
On Wed, 18 May 2016 18:25:00 +1000 Andrew Donnellan <andrew.donnel...@au1.ibm.com> wrote: > On 13/05/16 09:58, Emese Revfy wrote: > > Add a very simple plugin to demonstrate the GCC plugin infrastructure. This > > GCC > > plugin computes the cyclomatic

Re: [kernel-hardening] [PATCH v8 3/4] Add Cyclomatic complexity GCC plugin

2016-05-18 Thread Emese Revfy
On Wed, 18 May 2016 18:25:00 +1000 Andrew Donnellan wrote: > On 13/05/16 09:58, Emese Revfy wrote: > > Add a very simple plugin to demonstrate the GCC plugin infrastructure. This > > GCC > > plugin computes the cyclomatic complexity of each function. &g

Re: [kernel-hardening] [PATCH v8 2/4] GCC plugin infrastructure

2016-05-18 Thread Emese Revfy
> I've done some basic sanity testing on powerpc with the cyclomatic > complexity plugin (with LE native + cross-compilers) and it seems to > work with the patch below. > > Signed-off-by: Andrew Donnellan > > diff --git a/arch/powerpc/Kconfig

Re: [kernel-hardening] [PATCH v8 2/4] GCC plugin infrastructure

2016-05-18 Thread Emese Revfy
> I've done some basic sanity testing on powerpc with the cyclomatic > complexity plugin (with LE native + cross-compilers) and it seems to > work with the patch below. > > Signed-off-by: Andrew Donnellan > > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > index a18a0dc..0cfed5b

[PATCH v8 4/4] Add sancov plugin

2016-05-12 Thread Emese Revfy
try Vyukov (https://gcc.gnu.org/viewcvs/gcc?limit_changes=0=revision=231296). Signed-off-by: Emese Revfy <re.em...@gmail.com> --- Makefile| 12 +-- arch/Kconfig| 9 +++ arch/x86/purgatory/Makefile | 2 + lib/Kconfig.debug

[PATCH v8 4/4] Add sancov plugin

2016-05-12 Thread Emese Revfy
try Vyukov (https://gcc.gnu.org/viewcvs/gcc?limit_changes=0=revision=231296). Signed-off-by: Emese Revfy --- Makefile| 12 +-- arch/Kconfig| 9 +++ arch/x86/purgatory/Makefile | 2 + lib/Kconfig.debug | 2

[PATCH v8 3/4] Add Cyclomatic complexity GCC plugin

2016-05-12 Thread Emese Revfy
of connected components (exit nodes). Signed-off-by: Emese Revfy <re.em...@gmail.com> --- arch/Kconfig| 12 + scripts/Makefile.gcc-plugins| 1 + scripts/gcc-plugins/Makefile| 1 + scripts/gcc-plugins/cyc_complexity_plugin.

[PATCH v8 3/4] Add Cyclomatic complexity GCC plugin

2016-05-12 Thread Emese Revfy
of connected components (exit nodes). Signed-off-by: Emese Revfy --- arch/Kconfig| 12 + scripts/Makefile.gcc-plugins| 1 + scripts/gcc-plugins/Makefile| 1 + scripts/gcc-plugins/cyc_complexity_plugin.c | 73

[PATCH v8 2/4] GCC plugin infrastructure

2016-05-12 Thread Emese Revfy
passes. Note that 'make clean' keeps the *.so files (only the distclean or mrproper targets clean all) because they are needed for out-of-tree modules. The arm and arm64 architectures were tested by David Brown <david.br...@linaro.org>. Signed-off-by: Emese Revfy <re.em...@gmail.com> ---

[PATCH v8 2/4] GCC plugin infrastructure

2016-05-12 Thread Emese Revfy
passes. Note that 'make clean' keeps the *.so files (only the distclean or mrproper targets clean all) because they are needed for out-of-tree modules. The arm and arm64 architectures were tested by David Brown . Signed-off-by: Emese Revfy --- .gitignore

[PATCH v8 1/4] Shared library support

2016-05-12 Thread Emese Revfy
Infrastructure for building independent shared library targets. Signed-off-by: Emese Revfy <re.em...@gmail.com> --- scripts/Makefile.build | 2 +- scripts/Makefile.clean | 4 +++- scripts/Makefile.host | 55 +- 3 files changed, 58 inse

[PATCH v8 1/4] Shared library support

2016-05-12 Thread Emese Revfy
Infrastructure for building independent shared library targets. Signed-off-by: Emese Revfy --- scripts/Makefile.build | 2 +- scripts/Makefile.clean | 4 +++- scripts/Makefile.host | 55 +- 3 files changed, 58 insertions(+), 3 deletions

[PATCH v8 0/4] Introduce GCC plugin infrastructure

2016-05-12 Thread Emese Revfy
. Emese Revfy (4): Shared library support GCC plugin infrastructure Add Cyclomatic complexity plugin Add sancov plugin Changes from v7: * Moved the "The GCC plugin infrastructure supports the arm and arm64 architectures too" and the "Documentations of the GCC plugin infrast

[PATCH v8 0/4] Introduce GCC plugin infrastructure

2016-05-12 Thread Emese Revfy
. Emese Revfy (4): Shared library support GCC plugin infrastructure Add Cyclomatic complexity plugin Add sancov plugin Changes from v7: * Moved the "The GCC plugin infrastructure supports the arm and arm64 architectures too" and the "Documentations of the GCC plugin infrast

Re: [PATCH v7 2/6] GCC plugin infrastructure

2016-05-12 Thread Emese Revfy
On Wed, 11 May 2016 13:24:30 +0200 Michal Marek <mma...@suse.com> wrote: > On 2016-04-22 20:22, Emese Revfy wrote: > > diff --git a/Documentation/dontdiff b/Documentation/dontdiff > > index 8ea834f..5385cba 100644 > > --- a/Documentation/dontdiff > > +++ b/Docume

Re: [PATCH v7 2/6] GCC plugin infrastructure

2016-05-12 Thread Emese Revfy
On Wed, 11 May 2016 13:24:30 +0200 Michal Marek wrote: > On 2016-04-22 20:22, Emese Revfy wrote: > > diff --git a/Documentation/dontdiff b/Documentation/dontdiff > > index 8ea834f..5385cba 100644 > > --- a/Documentation/dontdiff > > +++ b/Documentation/dontdiff &g

Re: [PATCH v7 1/6] Shared library support

2016-05-05 Thread Emese Revfy
On Tue, 3 May 2016 23:25:27 +0200 Emese Revfy <re.em...@gmail.com> wrote: > > Do you need to change both the top Makefile and Makefile.clean > > for belt-and-braces cleaning? > > It doesn't delete the *.so files without the hunk from the top Makefile. > The mrproper a

Re: [PATCH v7 1/6] Shared library support

2016-05-05 Thread Emese Revfy
On Tue, 3 May 2016 23:25:27 +0200 Emese Revfy wrote: > > Do you need to change both the top Makefile and Makefile.clean > > for belt-and-braces cleaning? > > It doesn't delete the *.so files without the hunk from the top Makefile. > The mrproper and distclea

Re: [PATCH v7 1/6] Shared library support

2016-05-05 Thread Emese Revfy
On Wed, 4 May 2016 13:09:05 +0900 Masahiro Yamada <yamada.masah...@socionext.com> wrote: > Hi Emese, > > > 2016-05-04 6:29 GMT+09:00 Emese Revfy <re.em...@gmail.com>: > > On Tue, 3 May 2016 11:00:56 +0900 > > Masahiro Yamada <yamada.masah...@socionext.com

Re: [PATCH v7 1/6] Shared library support

2016-05-05 Thread Emese Revfy
On Wed, 4 May 2016 13:09:05 +0900 Masahiro Yamada wrote: > Hi Emese, > > > 2016-05-04 6:29 GMT+09:00 Emese Revfy : > > On Tue, 3 May 2016 11:00:56 +0900 > > Masahiro Yamada wrote: > > > > Hi, > > > >> # Compile .c file, create posit

Re: [PATCH v7 1/6] Shared library support

2016-05-03 Thread Emese Revfy
On Tue, 3 May 2016 11:00:56 +0900 Masahiro Yamada wrote: Hi, > # Compile .c file, create position independent .o file > # host-cxxshobjs -> .o > quiet_cmd_host-cxxshobjs = HOSTCXX -fPIC $@ > cmd_host-cxxshobjs = $(HOSTCXX) $(hostcxx_flags) -fPIC -c -o $@ $<

Re: [PATCH v7 1/6] Shared library support

2016-05-03 Thread Emese Revfy
On Tue, 3 May 2016 11:00:56 +0900 Masahiro Yamada wrote: Hi, > # Compile .c file, create position independent .o file > # host-cxxshobjs -> .o > quiet_cmd_host-cxxshobjs = HOSTCXX -fPIC $@ > cmd_host-cxxshobjs = $(HOSTCXX) $(hostcxx_flags) -fPIC -c -o $@ $< >

Re: [PATCH v7 1/6] Shared library support

2016-05-03 Thread Emese Revfy
On Mon, 2 May 2016 14:03:00 +0900 Masahiro Yamada wrote: Hi, > > diff --git a/scripts/Makefile.clean b/scripts/Makefile.clean > > index 55c96cb..e4e88ab 100644 > > --- a/scripts/Makefile.clean > > +++ b/scripts/Makefile.clean > > @@ -38,7 +38,8 @@ subdir-ymn:=

Re: [PATCH v7 1/6] Shared library support

2016-05-03 Thread Emese Revfy
On Mon, 2 May 2016 14:03:00 +0900 Masahiro Yamada wrote: Hi, > > diff --git a/scripts/Makefile.clean b/scripts/Makefile.clean > > index 55c96cb..e4e88ab 100644 > > --- a/scripts/Makefile.clean > > +++ b/scripts/Makefile.clean > > @@ -38,7 +38,8 @@ subdir-ymn:= $(addprefix

<    1   2   3   >