From 1b9d25f2ce06f8b46f76f7acd42c0069b598bee8 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Fri, 13 Dec 2024 15:14:10 +0100 Subject: [PATCH] fix up queue-6.1/modpost-add-.irqentry.text-to-other_sections.patch --- ...post-add-.irqentry.text-to-other_sections.patch | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/queue-6.1/modpost-add-.irqentry.text-to-other_sections.patch b/queue-6.1/modpost-add-.irqentry.text-to-other_sections.patch index 7c8fb376a2f..38d2e3541e1 100644 --- a/queue-6.1/modpost-add-.irqentry.text-to-other_sections.patch +++ b/queue-6.1/modpost-add-.irqentry.text-to-other_sections.patch @@ -24,10 +24,11 @@ Signed-off-by: Thomas Gleixner Cc: stable@vger.kernel.org # needed for linux-5.4-y Link: https://lore.kernel.org/all/20241128111844.GE10431@google.com/ Signed-off-by: Masahiro Yamada +[ bump the size of good_tosec[] to prevent overflow - gregkh ] Signed-off-by: Greg Kroah-Hartman --- - scripts/mod/modpost.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) + scripts/mod/modpost.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -40,3 +41,12 @@ Signed-off-by: Greg Kroah-Hartman #define INIT_SECTIONS ".init.*" #define MEM_INIT_SECTIONS ".meminit.*" +@@ -889,7 +889,7 @@ enum mismatch { + struct sectioncheck { + const char *fromsec[20]; + const char *bad_tosec[20]; +- const char *good_tosec[20]; ++ const char *good_tosec[21]; + enum mismatch mismatch; + void (*handler)(const char *modname, struct elf_info *elf, + const struct sectioncheck* const mismatch, -- 2.47.3