Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH 6.16.y] gcc-plugins: Remove TODO_verify_il for GCC >= 16
@ 2025-10-01 15:50 Brahmajit Das
  2025-10-03 13:03 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Brahmajit Das @ 2025-10-01 15:50 UTC (permalink / raw)
  To: stable; +Cc: linux-hardening, kees, listout, Christopher Fore

From: Kees Cook <kees@kernel.org>

[ Upstream commit a40282dd3c48 ]

GCC now runs TODO_verify_il automatically[1], so it is no longer exposed to
plugins. Only use the flag on GCC < 16.

Link: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=9739ae9384dd7cd3bb1c7683d6b80b7a9116eaf8 [1]
Suggested-by: Christopher Fore <csfore@posteo.net>
Link: https://lore.kernel.org/r/20250920234519.work.915-kees@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
Signed-off-by: Brahmajit Das <listout@listout.xyz>
---
 scripts/gcc-plugins/gcc-common.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/scripts/gcc-plugins/gcc-common.h b/scripts/gcc-plugins/gcc-common.h
index 6cb6d1051815..8f1b3500f8e2 100644
--- a/scripts/gcc-plugins/gcc-common.h
+++ b/scripts/gcc-plugins/gcc-common.h
@@ -173,10 +173,17 @@ static inline opt_pass *get_pass_for_id(int id)
 	return g->get_passes()->get_pass_for_id(id);
 }
 
+#if BUILDING_GCC_VERSION < 16000
 #define TODO_verify_ssa TODO_verify_il
 #define TODO_verify_flow TODO_verify_il
 #define TODO_verify_stmts TODO_verify_il
 #define TODO_verify_rtl_sharing TODO_verify_il
+#else
+#define TODO_verify_ssa 0
+#define TODO_verify_flow 0
+#define TODO_verify_stmts 0
+#define TODO_verify_rtl_sharing 0
+#endif
 
 #define INSN_DELETED_P(insn) (insn)->deleted()
 
-- 
2.51.0


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

* Re: [PATCH 6.16.y] gcc-plugins: Remove TODO_verify_il for GCC >= 16
  2025-10-01 15:50 [PATCH 6.16.y] gcc-plugins: Remove TODO_verify_il for GCC >= 16 Brahmajit Das
@ 2025-10-03 13:03 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2025-10-03 13:03 UTC (permalink / raw)
  To: Brahmajit Das; +Cc: stable, linux-hardening, kees, Christopher Fore

On Wed, Oct 01, 2025 at 09:20:40PM +0530, Brahmajit Das wrote:
> From: Kees Cook <kees@kernel.org>
> 
> [ Upstream commit a40282dd3c48 ]
> 
> GCC now runs TODO_verify_il automatically[1], so it is no longer exposed to
> plugins. Only use the flag on GCC < 16.
> 
> Link: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=9739ae9384dd7cd3bb1c7683d6b80b7a9116eaf8 [1]
> Suggested-by: Christopher Fore <csfore@posteo.net>
> Link: https://lore.kernel.org/r/20250920234519.work.915-kees@kernel.org
> Signed-off-by: Kees Cook <kees@kernel.org>
> Signed-off-by: Brahmajit Das <listout@listout.xyz>
> ---
>  scripts/gcc-plugins/gcc-common.h | 7 +++++++
>  1 file changed, 7 insertions(+)

Kees beat you to this, thanks!

greg k-h

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

end of thread, other threads:[~2025-10-03 13:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-01 15:50 [PATCH 6.16.y] gcc-plugins: Remove TODO_verify_il for GCC >= 16 Brahmajit Das
2025-10-03 13:03 ` Greg KH

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