mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] tools lib symbol: Use -D_FORTIFY_SOURCE=2 for non-debug builds
@ 2023-04-24 10:28 Uwe Kleine-König
  2023-04-29 21:05 ` Ian Rogers
  0 siblings, 1 reply; 4+ messages in thread
From: Uwe Kleine-König @ 2023-04-24 10:28 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo, Ian Rogers, Namhyung Kim
  Cc: linux-kernel, Diederik de Haas

Commit 160be157eaba ("tool lib symbol: Add Makefile/Build") failed to
define _FORTIFY_SOURCE to 2, probabaly this was cut&pasted from other
Makefiles with the same problem.

Fixes: 160be157eaba ("tool lib symbol: Add Makefile/Build")
Signed-off-by: Uwe Kleine-König <ukleinek@debian.org>
---
 tools/lib/symbol/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/lib/symbol/Makefile b/tools/lib/symbol/Makefile
index 13d43c6f92b4..4a08cc4e19f2 100644
--- a/tools/lib/symbol/Makefile
+++ b/tools/lib/symbol/Makefile
@@ -39,7 +39,7 @@ endif
 endif
 
 ifeq ($(DEBUG),0)
-  CFLAGS += -D_FORTIFY_SOURCE
+  CFLAGS += -D_FORTIFY_SOURCE=2
 endif
 
 # Treat warnings as errors unless directed not to
-- 
2.39.2


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

* Re: [PATCH] tools lib symbol: Use -D_FORTIFY_SOURCE=2 for non-debug builds
  2023-04-24 10:28 [PATCH] tools lib symbol: Use -D_FORTIFY_SOURCE=2 for non-debug builds Uwe Kleine-König
@ 2023-04-29 21:05 ` Ian Rogers
  2023-04-30  9:11   ` Uwe Kleine-König
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Rogers @ 2023-04-29 21:05 UTC (permalink / raw)
  To: Uwe Kleine-König
  Cc: Arnaldo Carvalho de Melo, Namhyung Kim, linux-kernel, Diederik de Haas

On Mon, Apr 24, 2023 at 3:28 AM Uwe Kleine-König <ukleinek@debian.org> wrote:
>
> Commit 160be157eaba ("tool lib symbol: Add Makefile/Build") failed to
> define _FORTIFY_SOURCE to 2, probabaly this was cut&pasted from other
> Makefiles with the same problem.
>
> Fixes: 160be157eaba ("tool lib symbol: Add Makefile/Build")
> Signed-off-by: Uwe Kleine-König <ukleinek@debian.org>

Acked-by: Ian Rogers <irogers@google.com>

Same problem here I think:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/lib/api/Makefile#n42

Thanks,
Ian

> ---
>  tools/lib/symbol/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/lib/symbol/Makefile b/tools/lib/symbol/Makefile
> index 13d43c6f92b4..4a08cc4e19f2 100644
> --- a/tools/lib/symbol/Makefile
> +++ b/tools/lib/symbol/Makefile
> @@ -39,7 +39,7 @@ endif
>  endif
>
>  ifeq ($(DEBUG),0)
> -  CFLAGS += -D_FORTIFY_SOURCE
> +  CFLAGS += -D_FORTIFY_SOURCE=2
>  endif
>
>  # Treat warnings as errors unless directed not to
> --
> 2.39.2
>

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

* Re: [PATCH] tools lib symbol: Use -D_FORTIFY_SOURCE=2 for non-debug builds
  2023-04-29 21:05 ` Ian Rogers
@ 2023-04-30  9:11   ` Uwe Kleine-König
  2024-04-01 11:51     ` Diederik de Haas
  0 siblings, 1 reply; 4+ messages in thread
From: Uwe Kleine-König @ 2023-04-30  9:11 UTC (permalink / raw)
  To: Ian Rogers
  Cc: Arnaldo Carvalho de Melo, Namhyung Kim, linux-kernel, Diederik de Haas

On 4/29/23 23:05, Ian Rogers wrote:
> On Mon, Apr 24, 2023 at 3:28 AM Uwe Kleine-König <ukleinek@debian.org> wrote:
>>
>> Commit 160be157eaba ("tool lib symbol: Add Makefile/Build") failed to
>> define _FORTIFY_SOURCE to 2, probabaly this was cut&pasted from other
>> Makefiles with the same problem.
>>
>> Fixes: 160be157eaba ("tool lib symbol: Add Makefile/Build")
>> Signed-off-by: Uwe Kleine-König <ukleinek@debian.org>
> 
> Acked-by: Ian Rogers <irogers@google.com>

Thanks

> Same problem here I think:
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/lib/api/Makefile#n42

Indeed, and similar patch here:

	https://lore.kernel.org/all/20230424102049.58338-1-ukleinek@debian.org/

Best regards
Uwe

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

* Re: [PATCH] tools lib symbol: Use -D_FORTIFY_SOURCE=2 for non-debug builds
  2023-04-30  9:11   ` Uwe Kleine-König
@ 2024-04-01 11:51     ` Diederik de Haas
  0 siblings, 0 replies; 4+ messages in thread
From: Diederik de Haas @ 2024-04-01 11:51 UTC (permalink / raw)
  To: Ian Rogers, Uwe Kleine-König
  Cc: Arnaldo Carvalho de Melo, Namhyung Kim, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 944 bytes --]

On Sunday, 30 April 2023 11:11:26 CEST Uwe Kleine-König wrote:
> On 4/29/23 23:05, Ian Rogers wrote:
> > On Apr 24, 2023 at 3:28 AM Uwe Kleine-König <ukleinek@debian.org> wrote:
> >> Commit 160be157eaba ("tool lib symbol: Add Makefile/Build") failed to
> >> define _FORTIFY_SOURCE to 2, probabaly this was cut&pasted from other
> >> Makefiles with the same problem.
> >> 
> >> Fixes: 160be157eaba ("tool lib symbol: Add Makefile/Build")
> >> Signed-off-by: Uwe Kleine-König <ukleinek@debian.org>
> > 
> > Acked-by: Ian Rogers <irogers@google.com>
> 
> Thanks
> 
> > Same problem here I think:
> > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/to
> > ols/lib/api/Makefile#n42
> Indeed, and similar patch here:
> 
> https://lore.kernel.org/all/20230424102049.58338-1-ukleinek@debian.org/

I noticed this (and the other linked) patch haven't been merged yet.
What's needed to move this forward?

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

end of thread, other threads:[~2024-04-01 11:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-24 10:28 [PATCH] tools lib symbol: Use -D_FORTIFY_SOURCE=2 for non-debug builds Uwe Kleine-König
2023-04-29 21:05 ` Ian Rogers
2023-04-30  9:11   ` Uwe Kleine-König
2024-04-01 11:51     ` Diederik de Haas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome