/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 function
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
do_one_initcall() and _do_fork().
Signed-off-by: Emese Revfy
---
arch/Kconfig| 18 +
arch/powerpc/kernel/Makefile| 4 +
include/linux/random.h | 10 +
init/main.c | 1 +
kernel/fork.c
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 | 1 +
include
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
Disable the initify plugin on the 6th parameter
of __warn() because the va_list type can't be NULL
on the tile arch.
Signed-off-by: Emese Revfy
---
include/asm-generic/bug.h | 7 +--
kernel/panic.c| 32
lib/bug.c | 2 +-
3
Fixed format strings warnings exposed by the printf attribute.
Signed-off-by: Emese Revfy
---
drivers/acpi/acpica/dbhistry.c | 2 +-
drivers/acpi/acpica/dbinput.c | 10 ++---
drivers/acpi/acpica/dbstats.c | 88 +++---
drivers/acpi/acpica/utdebug.c
On Mon, 2 May 2016 14:03:00 +0900
Masahiro Yamada wrote:
> In the first place,
> I am wondering if we need to revive this documentation.
> What this commit is only interested in *.so generation,
> not host program support.
I agree that we don't need this documentation. I'll remove it.
> > @@
On Mon, 2 May 2016 14:07:35 +0900
Masahiro Yamada wrote:
Hi,
> > diff --git a/arch/x86/entry/vdso/Makefile b/arch/x86/entry/vdso/Makefile
> > index 253b72e..f912316 100644
> > --- a/arch/x86/entry/vdso/Makefile
> > +++ b/arch/x86/entry/vdso/Makefile
> > @@ -75,7 +75,7 @@ CFL := $(PROFILING) -mcm
On Mon, 2 May 2016 14:10:21 +0900
Masahiro Yamada wrote:
Hi,
> 2016-04-23 3:26 GMT+09:00 Emese Revfy :
> > This is the GCC infrastructure documentation about its operation, how to add
> > and use a new plugin with an example.
> >
> > Signed-off-by: Emese R
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
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 distclean tar
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 $(obj)/,$(subdir-ym
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 $@ $<
>$(h
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-by
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
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 +
Doc
er 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
try Vyukov
(https://gcc.gnu.org/viewcvs/gcc?limit_changes=0&view=revision&revision=231296).
Signed-off-by: Emese Revfy
---
Makefile| 10 +--
arch/Kconfig| 9 +++
arch/x86/purgatory/Makefile | 2 +
lib/Kconfig.debug
/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
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
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
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
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
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 __latent_entropy
> > +#
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
> 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 100
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
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
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
.
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
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
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
---
er 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
try Vyukov
(https://gcc.gnu.org/viewcvs/gcc?limit_changes=0&view=revision&revision=231296).
Signed-off-by: Emese Revfy
---
Makefile| 12 +--
arch/Kconfig| 9 +++
arch/x86/purgatory/Makefile | 2 +
lib/Kconfig.debug
to 6.0, building
out-of-tree modules and building in a separate directory. Cross-compilation
is supported too but currently only the x86, arm and arm64 architectures
enables plugins.
This infrastructure was ported from grsecurity/PaX. It is a CII project
supported by the Linux Foundation.
Emese
Infrastructure for building independent shared library targets.
This effectively also reverts commit 62e2210798ed38928ab24841e8b4878a
(Masahiro Yamada, kbuild: drop shared library support from Makefile.host).
Signed-off-by: Emese Revfy
---
Documentation/kbuild/makefiles.txt | 39
x27; keeps the *.so files (only the distclean or mrproper
targets clean all) because they are needed for out-of-tree modules.
Signed-off-by: Emese Revfy
---
Documentation/dontdiff | 1 +
MAINTAINERS| 8 +
The GCC plugin infrastructure supports the arm and arm64 architectures too
Signed-off-by: David Brown
---
arch/arm/Kconfig | 1 +
arch/arm64/Kconfig | 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 0846026..8f57eb6 100644
--- a/arch/arm/Kconfig
++
er of connected components (exit nodes).
Signed-off-by: Emese Revfy
---
arch/Kconfig| 12 +
scripts/Makefile.gcc-plugins| 2 +
scripts/gcc-plugins/Makefile| 4 ++
scripts/gcc-plugins/cyc_complexity_plugin.c
This is the GCC infrastructure documentation about its operation, how to add
and use a new plugin with an example.
Signed-off-by: Emese Revfy
---
Documentation/gcc-plugins.txt | 83 +++
arch/Kconfig | 2 ++
2 files changed, 85 insertions
try Vyukov
(https://gcc.gnu.org/viewcvs/gcc?limit_changes=0&view=revision&revision=231296).
Signed-off-by: Emese Revfy
---
Makefile| 10 +--
arch/Kconfig| 9 +++
arch/x86/purgatory/Makefile | 2 +
lib/Kconfig.debug
On Wed, 9 Mar 2016 02:01:15 -0700
David Brown wrote:
> Feel free to fold these into your patch, or, if you prefer, I can send
> out separate patches for them.
Thanks, I'll take it.
--
Emese
On Wed, 9 Mar 2016 12:50:26 -0800
Kees Cook wrote:
> > Feel free to fold these into your patch, or, if you prefer, I can send
> > out separate patches for them.
>
> Ah-ha, great! Thanks for testing!
>
> Emese, if you're not interested in carrying this, I can add it to my tree.
I think it is ea
to 6.0, building
out-of-tree modules and building in a separate directory. Cross-compilation
is supported too but currently only the x86, arm and arm64 architectures
enables plugins.
This infrastructure was ported from grsecurity/PaX. It is a CII project
supported by the Linux Foundation.
Emese
Infrastructure for building independent shared library targets.
This effectively also reverts commit 62e2210798ed38928ab24841e8b4878a
(Masahiro Yamada, kbuild: drop shared library support from Makefile.host).
Signed-off-by: Emese Revfy
---
Documentation/kbuild/makefiles.txt | 39
x27; keeps the *.so files (only the distclean or mrproper
targets clean all) because they are needed for out-of-tree modules.
Signed-off-by: Emese Revfy
---
Documentation/dontdiff | 1 +
MAINTAINERS| 8 +
The GCC plugin infrastructure now supports the arm and arm64 architectures too.
Signed-off-by: David Brown
---
arch/arm/Kconfig | 1 +
arch/arm64/Kconfig | 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 0846026..8f57eb6 100644
--- a/arch/arm/Kconf
er of connected components (exit nodes).
Signed-off-by: Emese Revfy
---
arch/Kconfig| 12 +
scripts/Makefile.gcc-plugins| 2 +
scripts/gcc-plugins/Makefile| 4 ++
scripts/gcc-plugins/cyc_complexity_plugin.c
This is the GCC infrastructure documentation about its operation, how to add
and use a new plugin with an example.
Signed-off-by: Emese Revfy
---
Documentation/gcc-plugins.txt | 83 +++
arch/Kconfig | 2 ++
2 files changed, 85 insertions
try Vyukov
(https://gcc.gnu.org/viewcvs/gcc?limit_changes=0&view=revision&revision=231296).
Signed-off-by: Emese Revfy
---
Makefile| 8 +-
arch/Kconfig| 9 +++
lib/Kconfig.debug | 2 +
scripts/Makefile.gcc-pl
On Tue, 12 Apr 2016 11:27:52 -0700
Kees Cook wrote:
> Emese, were you thinking of doing the initify plugin next after this
> infrastructure lands?
I already started to work on the entropy plugin but after that I can work on
initify.
--
Emese
On Mon, 11 Apr 2016 09:40:19 +0800
kernel test robot wrote:
> FYI, we noticed the below changes on
>
> https://github.com/0day-ci/linux
> Emese-Revfy/Introduce-GCC-plugin-infrastructure/20160408-052328
> commit 47faf3078f741dd7d854131a547615fa8e447dd5 (&qu
On Mon, 9 Nov 2015 14:50:47 + (GMT)
Julia Lawall wrote:
> > Actually, it looks like Emese Revfy is going to merge the GCC plugin
> > constify stuff sooner rather than later so maybe adding all these consts
> > isn't going to be needed.
>
> Is there any advan
On Tue, 6 Dec 2016 17:28:00 +1100
Andrew Donnellan wrote:
> + # Various gccs between 4.5 and 5.1 have bugs on powerpc due to missing
> + # header files. gcc <= 4.6 doesn't work at all, gccs from 4.8 to 5.1
> have
> + # issues with 64-bit targets.
> + ifeq ($(ARCH),powerpc)
>
On Thu, 12 Jan 2017 15:40:41 -0800
Kees Cook wrote:
> WARNING: drivers/clk/bcm/built-in.o(.text+0xec2): Section mismatch in
> reference from the function clk_gate() to the variable
> .init.rodata.str:__func__.29708
> The function clk_gate() references
> the variable __initconst __func__.29708.
>
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 i
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
>
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 does
Initify needs const pointer types, the initify plugin caught some __printf
arguments that weren't const yet.
Signed-off-by: Emese Revfy
---
drivers/isdn/hisax/config.c | 16
drivers/isdn/hisax/hisax.h | 4 ++--
2 files changed, 10 insertions(+), 10 deletions(-)
diff --
On Tue, 5 Jul 2016 07:58:04 +0800
kbuild test robot wrote:
> All warnings (new ones prefixed by >>):
>
>drivers/isdn/hisax/config.c: In function 'VHiSax_putstatus':
> >> drivers/isdn/hisax/config.c:688:5: warning: assignment discards 'const'
> >> qualifier from pointer target type [-Wdiscar
/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 attribut
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
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
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
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
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
> >>
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
>
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
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 th
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
On Tue, 12 Jul 2016 16:05:45 -0400
Kees Cook wrote:
> /*
> * The initify gcc-plugin attempts to identify const arguments that are only
> * used during init (see __init), so they can be moved to the .init.rodata
> * section. If an argument is passed to a non-init function, it must
> * normally
On Tue, 12 Jul 2016 15:45:56 -0400
Kees Cook wrote:
> On Mon, Jul 4, 2016 at 7:40 PM, Emese Revfy wrote:
> > If a function is called by __init and __exit functions as well then
> > the plugin moves it to the __exit section. This causes false positive
> > section mismatch e
On Tue, 12 Jul 2016 18:38:47 -0400
Kees Cook wrote:
> On Tue, Jul 12, 2016 at 6:08 PM, Russell King - ARM Linux
> wrote:
> > On Tue, Jul 12, 2016 at 03:45:56PM -0400, Kees Cook wrote:
> >> On Mon, Jul 4, 2016 at 7:40 PM, Emese Revfy wrote:
> > That sounds like a pro
__ksymtab_gpl __ksymtab_strings __init_rodata
__param __modver
03 .init.text .altinstr_aux .init.data .x86_cpu_dev.init
.parainstructions .altinstructions .altinstr_replacement
.iommu_table .apicdrivers .exit.text .exit.data .smp_locks .bss .brk
Emese Revfy (7):
Move type
so that its parameter can be marked as nocapture.
Signed-off-by: Emese Revfy
---
mm/util.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/mm/util.c b/mm/util.c
index 662cddf..d95f10b 100644
--- a/mm/util.c
+++ b/mm/util.c
@@ -17,10 +17,10 @@
#include
to enable dataflow verification by the initify plugin. This allows marking
warn_slowpath* parameters as nocapture and compile time verification of
the related dataflows.
Signed-off-by: Emese Revfy
---
include/asm-generic/bug.h | 5 +
kernel/panic.c| 32
Initify needs const pointer types, the initify plugin caught some __printf
arguments that weren't const yet.
Signed-off-by: Emese Revfy
---
drivers/isdn/hisax/config.c | 16
drivers/isdn/hisax/hisax.h | 4 ++--
2 files changed, 10 insertions(+), 10 deletions(-)
diff --
itify plugin to increase coverage.
Signed-off-by: Emese Revfy
---
arch/Kconfig | 35 +
arch/x86/Kconfig |1 +
arch/x86/lib/Makefile|4 +
include/asm-generic/vmlinux.lds.h|2 +
include/linux/compiler-gcc.h |
plugin initifies all vararg
arguments.
I couldn't test the arm, arm64 and powerpc architectures.
Signed-off-by: Emese Revfy
---
arch/arm/include/asm/string.h | 10 +++---
arch/arm64/include/asm/string.h | 25 ++---
arch/powerpc/include/asm/string.h | 19 +-
arc
This allows not only compile time format string checking but can also
increase the coverage of the initify plugin.
Signed-off-by: Emese Revfy
---
drivers/scsi/esas2r/esas2r_log.h | 4 ++--
include/acpi/acpiosxf.h | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a
This attribute disables the compile data flow verification of the
designated nocapture parameters of the function. Use it only on function
parameters that are difficult for the plugin to analyze.
Signed-off-by: Emese Revfy
---
include/linux/compiler-gcc.h | 1 +
include/linux/compiler.h | 4
On Wed, 29 Jun 2016 17:12:45 -0700
Joe Perches wrote:
> On Wed, 2016-06-29 at 20:42 +0200, Emese Revfy wrote:
> > On Tue, 28 Jun 2016 14:00:57 -0700 Joe Perches wrote:
> > > On Tue, 2016-06-28 at 22:40 +0200, Emese Revfy wrote:
> > > > On Tue, 28 Jun 2016 09:
86_cpu_dev.init
.parainstructions .altinstructions .altinstr_replacement
.iommu_table .apicdrivers .exit.text .exit.data .smp_locks .bss .brk
Emese Revfy (3):
Add the initify gcc plugin
Mark functions with the __nocapture attribute
Constify some function parameters
Changes from v1:
* Remo
itify plugin to increase coverage.
Signed-off-by: Emese Revfy
---
arch/Kconfig | 23 +
include/asm-generic/vmlinux.lds.h|2 +
scripts/Makefile.gcc-plugins |4 +
scripts/gcc-plugins/gcc-common.h | 41 ++
scripts/gcc-plugins/initify_plugin.c |
test the arm, arm64 and powerpc architectures.
Signed-off-by: Emese Revfy
---
arch/arm/include/asm/string.h | 4 +--
arch/arm64/include/asm/string.h | 19 ++--
arch/powerpc/include/asm/string.h | 19 ++--
arch/x86/include/asm/string_32.h | 21 ++---
arch/x86/includ
Initify needs const pointer types, the initify plugin caught some __printf
arguments that weren't const yet.
Signed-off-by: Emese Revfy
---
drivers/isdn/hisax/config.c | 4 ++--
drivers/isdn/hisax/hisax.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers
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 value
/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
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
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
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
On Fri, 16 Dec 2016 10:00:22 +0100
Arnd Bergmann wrote:
> Cc: sta...@vger.kernel.org
> Suggested-by: Kugan
> Signed-off-by: Arnd Bergmann
> ---
> scripts/gcc-plugins/gcc-common.h | 6 ++
> 1 file changed, 6 insertions(+)
>
> diff --git a/scripts/gcc-plugins/gcc-common.h
> b/scripts/gcc-p
On Fri, 16 Dec 2016 14:19:10 -0800
Kees Cook wrote:
> FWIW, it still seems to me that these aren't false positives:
>
> WARNING: vmlinux.o(.text.unlikely+0x1b1): Section mismatch in
> reference from the function uncore_pci_exit.part.22() to the function
> .init.text:uncore_free_pcibus_map()
> T
On Fri, 9 Dec 2016 11:12:18 -0800
Kees Cook wrote:
> On Fri, Dec 9, 2016 at 2:40 AM, Arnd Bergmann wrote:
> > On Thursday, December 8, 2016 11:00:42 AM CET Kees Cook wrote:
> >
> >> If you have a moment, applying 215e2aa6c024[1] and reverting
> >> a519167e753e for an allyesconfig/allmodconfig bu
On Sun, 6 Nov 2016 07:09:57 +0800
kbuild test robot wrote:
> Hi Emese,
>
> FYI, the error/warning still remains.
>
>++(scripts/gcc-plugin.sh:12): main(): gcc-4.6 -E -x c++ - -o /dev/null
> -Iscripts/gcc-plugins -Iplugin/include
>scripts/Makefile.gcc-plugins:30: warning: your gcc install
On Thu, 12 Jan 2017 15:40:41 -0800
Kees Cook wrote:
> WARNING: drivers/clk/bcm/built-in.o(.text+0xec2): Section mismatch in
> reference from the function clk_gate() to the variable
> .init.rodata.str:__func__.29708
> The function clk_gate() references
> the variable __initconst __func__.29708.
>
On Wed, 15 Feb 2017 11:27:06 -0800
Kees Cook wrote:
> On Tue, Feb 14, 2017 at 4:23 PM, Emese Revfy wrote:
> > On Thu, 12 Jan 2017 15:40:41 -0800
> > Kees Cook wrote:
> >
> >> WARNING: drivers/clk/bcm/built-in.o(.text+0xec2): Section mismatch in
> >> re
On Tue, 3 Jan 2017 16:23:03 -0800
Kees Cook wrote:
> On Mon, Dec 19, 2016 at 3:10 AM, Emese Revfy wrote:
> > On Fri, 16 Dec 2016 14:19:10 -0800
> > Kees Cook wrote:
> >
> >> FWIW, it still seems to me that these aren't false positives:
> >>
On Tue, 10 Jan 2017 17:09:31 -0800
Kees Cook wrote:
> WARNING: vmlinux.o(.text+0x1087e7): Section mismatch in reference from
> the function rebind_subsystems() to the variable
> .init.rodata.str:__func__.4400
> The function rebind_subsystems() references
> the variable __initconst __func__.4400.
1 - 100 of 136 matches
Mail list logo