Skip to contentSkip to conversation

Patch "scripts/recordmcount.c: account for .softirqentry.text" has been added to the 4.7-stable tree

PATCH [email protected] 1 participant 1 message Oct 4, 2016 Stable branch

lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

scripts/recordmcount.c: account for .softirqentry.text

to the 4.7-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
scripts-recordmcount.c-account-for-.softirqentry.text.patch
and it can be found in the queue-4.7 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From e436fd61a8f62cb7a16310a42b95ab076ff72eff Mon Sep 17 00:00:00 2001

From: Dmitry Vyukov <[email protected]>
Date: Wed, 28 Sep 2016 15:22:36 -0700
Subject: scripts/recordmcount.c: account for .softirqentry.text

From: Dmitry Vyukov <[email protected]>

commit e436fd61a8f62cb7a16310a42b95ab076ff72eff upstream.

be7635e7287e ("arch, ftrace: for KASAN put hard/soft IRQ entries into separate sections") added .softirqentry.text section, but it was not added to recordmcount. So functions in the section are untracable. Add the section to scripts/recordmcount.c and scripts/recordmcount.pl.

Fixes be7635e7287e ("arch, ftrace: for KASAN put hard/soft IRQ entries into separate sections")
---
 scripts/recordmcount.c  |    1 +
 scripts/recordmcount.pl |    1 +
 2 files changed, 2 insertions(+)
scripts/recordmcount.c +1 -0
@@ -363,6 +363,7 @@ is_mcounted_section_name(char const *con
 		strcmp(".sched.text",    txtname) == 0 ||
 		strcmp(".spinlock.text", txtname) == 0 ||
 		strcmp(".irqentry.text", txtname) == 0 ||
+		strcmp(".softirqentry.text", txtname) == 0 ||
 		strcmp(".kprobes.text", txtname) == 0 ||
 		strcmp(".text.unlikely", txtname) == 0;
 }
scripts/recordmcount.pl +1 -0
@@ -134,6 +134,7 @@ my %text_sections = (
      ".sched.text" => 1,
      ".spinlock.text" => 1,
      ".irqentry.text" => 1,
+     ".softirqentry.text" => 1,
      ".kprobes.text" => 1,
      ".text.unlikely" => 1,
 );

Patches currently in stable-queue which might be from [email protected] are

queue-4.7/scripts-recordmcount.c-account-for-.softirqentry.text.patch