]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix up queue-6.1/modpost-add-.irqentry.text-to-other_sections.patch
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Dec 2024 14:14:10 +0000 (15:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Dec 2024 14:14:10 +0000 (15:14 +0100)
queue-6.1/modpost-add-.irqentry.text-to-other_sections.patch

index 7c8fb376a2fc883c0cb76599921c3eeb546e6794..38d2e3541e1cf8b0e362cff41e31ba547755e0c6 100644 (file)
@@ -24,10 +24,11 @@ Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
 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 <masahiroy@kernel.org>
+[ bump the size of good_tosec[] to prevent overflow - gregkh ]
 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 ---
- 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 <gregkh@linuxfoundation.org>
  
  #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,