All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/jitterentropy-library: fix build without ssp
@ 2019-10-28  9:02 Fabrice Fontaine
  2019-10-28  9:11 ` Matthew Weber
  2019-10-28 21:31 ` Arnout Vandecappelle
  0 siblings, 2 replies; 4+ messages in thread
From: Fabrice Fontaine @ 2019-10-28  9:02 UTC (permalink / raw)
  To: buildroot

Fixes:
 - http://autobuild.buildroot.net/results/cba1ae830c7a4d1740098fe67aec59b4dc2f9a03

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...-the-user-to-disable-stack-protector.patch | 36 +++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 package/jitterentropy-library/0003-Makefile-allow-the-user-to-disable-stack-protector.patch

diff --git a/package/jitterentropy-library/0003-Makefile-allow-the-user-to-disable-stack-protector.patch b/package/jitterentropy-library/0003-Makefile-allow-the-user-to-disable-stack-protector.patch
new file mode 100644
index 0000000000..c8ab93122d
--- /dev/null
+++ b/package/jitterentropy-library/0003-Makefile-allow-the-user-to-disable-stack-protector.patch
@@ -0,0 +1,36 @@
+From 37e8a6a7e5875e20a8de07fbfbb69912f1964f7d Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Mon, 28 Oct 2019 09:47:49 +0100
+Subject: [PATCH] Makefile: allow the user to disable stack protector
+
+Allow the user to disable stack-protector by overriding CFLAGS as it is
+not supported by all toolchains
+
+Fixes:
+ - http://autobuild.buildroot.net/results/cba1ae830c7a4d1740098fe67aec59b4dc2f9a03
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: not sent yet]
+---
+ Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 41bc4f7..b0f20e2 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,9 +1,9 @@
+ # Compile Noise Source as user space application
+ 
+ CC ?= gcc
+-CFLAGS +=-Wextra -Wall -pedantic -fPIC -O0
+ #Hardening
+-CFLAGS +=-fstack-protector-all -fwrapv --param ssp-buffer-size=4
++CFLAGS ?=-fstack-protector-all --param ssp-buffer-size=4
++CFLAGS +=-Wextra -Wall -pedantic -fPIC -O0 -fwrapv
+ LDFLAGS +=-Wl,-z,relro,-z,now
+ 
+ # Change as necessary
+-- 
+2.23.0
+
-- 
2.23.0

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

* [Buildroot] [PATCH 1/1] package/jitterentropy-library: fix build without ssp
  2019-10-28  9:02 [Buildroot] [PATCH 1/1] package/jitterentropy-library: fix build without ssp Fabrice Fontaine
@ 2019-10-28  9:11 ` Matthew Weber
  2019-10-28 10:58   ` Matthew Weber
  2019-10-28 21:31 ` Arnout Vandecappelle
  1 sibling, 1 reply; 4+ messages in thread
From: Matthew Weber @ 2019-10-28  9:11 UTC (permalink / raw)
  To: buildroot

Fabrice,

On Mon, Oct 28, 2019 at 4:02 AM Fabrice Fontaine
<fontaine.fabrice@gmail.com> wrote:
>
> Fixes:
>  - http://autobuild.buildroot.net/results/cba1ae830c7a4d1740098fe67aec59b4dc2f9a03
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Tested-by: Matt Weber <matthew.weber@rockwellcollins.com>

> ---
>  ...-the-user-to-disable-stack-protector.patch | 36 +++++++++++++++++++
>  1 file changed, 36 insertions(+)
>  create mode 100644 package/jitterentropy-library/0003-Makefile-allow-the-user-to-disable-stack-protector.patch
>
> diff --git a/package/jitterentropy-library/0003-Makefile-allow-the-user-to-disable-stack-protector.patch b/package/jitterentropy-library/0003-Makefile-allow-the-user-to-disable-stack-protector.patch
> new file mode 100644
> index 0000000000..c8ab93122d
> --- /dev/null
> +++ b/package/jitterentropy-library/0003-Makefile-allow-the-user-to-disable-stack-protector.patch
> @@ -0,0 +1,36 @@
> +From 37e8a6a7e5875e20a8de07fbfbb69912f1964f7d Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Mon, 28 Oct 2019 09:47:49 +0100
> +Subject: [PATCH] Makefile: allow the user to disable stack protector
> +
> +Allow the user to disable stack-protector by overriding CFLAGS as it is
> +not supported by all toolchains
> +
> +Fixes:
> + - http://autobuild.buildroot.net/results/cba1ae830c7a4d1740098fe67aec59b4dc2f9a03
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +[Upstream status: not sent yet]
> +---
> + Makefile | 4 ++--
> + 1 file changed, 2 insertions(+), 2 deletions(-)
> +
> +diff --git a/Makefile b/Makefile
> +index 41bc4f7..b0f20e2 100644
> +--- a/Makefile
> ++++ b/Makefile
> +@@ -1,9 +1,9 @@
> + # Compile Noise Source as user space application
> +
> + CC ?= gcc
> +-CFLAGS +=-Wextra -Wall -pedantic -fPIC -O0
> + #Hardening
> +-CFLAGS +=-fstack-protector-all -fwrapv --param ssp-buffer-size=4
> ++CFLAGS ?=-fstack-protector-all --param ssp-buffer-size=4

One thing I do wonder is if we should be setting -fno-stack-protector
as well when we don't support it.  It wouldn't have fixed this case
but possibly others our flags might append and take precedence.

Regards,
Matt

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

* [Buildroot] [PATCH 1/1] package/jitterentropy-library: fix build without ssp
  2019-10-28  9:11 ` Matthew Weber
@ 2019-10-28 10:58   ` Matthew Weber
  0 siblings, 0 replies; 4+ messages in thread
From: Matthew Weber @ 2019-10-28 10:58 UTC (permalink / raw)
  To: buildroot

On Mon, Oct 28, 2019 at 4:11 AM Matthew Weber
<matthew.weber@rockwellcollins.com> wrote:
>
> Fabrice,
>
> On Mon, Oct 28, 2019 at 4:02 AM Fabrice Fontaine
> <fontaine.fabrice@gmail.com> wrote:
> >
> > Fixes:
> >  - http://autobuild.buildroot.net/results/cba1ae830c7a4d1740098fe67aec59b4dc2f9a03
> >
> > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
>
> Tested-by: Matt Weber <matthew.weber@rockwellcollins.com>
>
> > ---
> >  ...-the-user-to-disable-stack-protector.patch | 36 +++++++++++++++++++
> >  1 file changed, 36 insertions(+)
> >  create mode 100644 package/jitterentropy-library/0003-Makefile-allow-the-user-to-disable-stack-protector.patch
> >
> > diff --git a/package/jitterentropy-library/0003-Makefile-allow-the-user-to-disable-stack-protector.patch b/package/jitterentropy-library/0003-Makefile-allow-the-user-to-disable-stack-protector.patch
> > new file mode 100644
> > index 0000000000..c8ab93122d
> > --- /dev/null
> > +++ b/package/jitterentropy-library/0003-Makefile-allow-the-user-to-disable-stack-protector.patch
> > @@ -0,0 +1,36 @@
> > +From 37e8a6a7e5875e20a8de07fbfbb69912f1964f7d Mon Sep 17 00:00:00 2001
> > +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> > +Date: Mon, 28 Oct 2019 09:47:49 +0100
> > +Subject: [PATCH] Makefile: allow the user to disable stack protector
> > +
> > +Allow the user to disable stack-protector by overriding CFLAGS as it is
> > +not supported by all toolchains
> > +
> > +Fixes:
> > + - http://autobuild.buildroot.net/results/cba1ae830c7a4d1740098fe67aec59b4dc2f9a03
> > +
> > +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> > +[Upstream status: not sent yet]

https://github.com/smuellerDD/jitterentropy-library/pull/12

> > +---
> > + Makefile | 4 ++--
> > + 1 file changed, 2 insertions(+), 2 deletions(-)
> > +
> > +diff --git a/Makefile b/Makefile
> > +index 41bc4f7..b0f20e2 100644
> > +--- a/Makefile
> > ++++ b/Makefile
> > +@@ -1,9 +1,9 @@
> > + # Compile Noise Source as user space application
> > +
> > + CC ?= gcc
> > +-CFLAGS +=-Wextra -Wall -pedantic -fPIC -O0
> > + #Hardening
> > +-CFLAGS +=-fstack-protector-all -fwrapv --param ssp-buffer-size=4
> > ++CFLAGS ?=-fstack-protector-all --param ssp-buffer-size=4
>
> One thing I do wonder is if we should be setting -fno-stack-protector
> as well when we don't support it.  It wouldn't have fixed this case
> but possibly others our flags might append and take precedence.
>
> Regards,
> Matt



-- 

Matthew Weber | Associate Director Software Engineer | Commercial Avionics

COLLINS AEROSPACE

400 Collins Road NE, Cedar Rapids, Iowa 52498, USA

Tel: +1 319 295 7349 | FAX: +1 319 263 6099

matthew.weber at collins.com | collinsaerospace.com



CONFIDENTIALITY WARNING: This message may contain proprietary and/or
privileged information of Collins Aerospace and its affiliated
companies. If you are not the intended recipient, please 1) Do not
disclose, copy, distribute or use this message or its contents. 2)
Advise the sender by return email. 3) Delete all copies (including all
attachments) from your computer. Your cooperation is greatly
appreciated.


Any export restricted material should be shared using my
matthew.weber at corp.rockwellcollins.com address.

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

* [Buildroot] [PATCH 1/1] package/jitterentropy-library: fix build without ssp
  2019-10-28  9:02 [Buildroot] [PATCH 1/1] package/jitterentropy-library: fix build without ssp Fabrice Fontaine
  2019-10-28  9:11 ` Matthew Weber
@ 2019-10-28 21:31 ` Arnout Vandecappelle
  1 sibling, 0 replies; 4+ messages in thread
From: Arnout Vandecappelle @ 2019-10-28 21:31 UTC (permalink / raw)
  To: buildroot



On 28/10/2019 10:02, Fabrice Fontaine wrote:
> Fixes:
>  - http://autobuild.buildroot.net/results/cba1ae830c7a4d1740098fe67aec59b4dc2f9a03
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

 Applied to master, thanks.

 I added a reference to Matt's PR to the patch.

 Regards,
 Arnout

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

end of thread, other threads:[~2019-10-28 21:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-28  9:02 [Buildroot] [PATCH 1/1] package/jitterentropy-library: fix build without ssp Fabrice Fontaine
2019-10-28  9:11 ` Matthew Weber
2019-10-28 10:58   ` Matthew Weber
2019-10-28 21:31 ` Arnout Vandecappelle

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.