All of lore.kernel.org
 help / color / mirror / Atom feed
* 9c8e2f6d3d36 for linux-4.{4,9,14,19}-y
@ 2021-03-11  1:09 Manoj Gupta
  2021-03-12 10:07 ` Greg KH
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Manoj Gupta @ 2021-03-11  1:09 UTC (permalink / raw)
  To: gregkh, sashal
  Cc: joe.lawrence, clang-built-linux, stable, Nick Desaulniers,
	Luis Lozano, Jian Cai, Doug Anderson

Dear stable kernel maintainers,

Please consider applying the following patch for 4.{4,9,14,19}-y
kernel branches.
9c8e2f6d3d36 scripts/recordmcount.{c,pl}: support -ffunction-sections
.text.* section names

It is needed to fix a kernel boot issue with trunk clang compiler
which now puts functions with  __cold attribute to .text.unlikely
section.  Please feel free to  check
https://bugs.chromium.org/p/chromium/issues/detail?id=1184483 for
details.

9c8e2f6d3d36 applies cleanly for 4.14 and 4.19.
For 4.4 and 4.9, a slight changed diff for scripts/recordmcount.c is
needed to apply the patch cleanly. The final changed lines are still
the same.

scripts/recordmcount.c diff for 4.4 and 4.9 kernel.

--- a/scripts/recordmcount.c
+++ b/scripts/recordmcount.c
@@ -362,7 +362,7 @@ static uint32_t (*w2)(uint16_t);
 static int
 is_mcounted_section_name(char const *const txtname)
 {
-       return strcmp(".text",           txtname) == 0 ||
+       return strncmp(".text",          txtname, 5) == 0 ||
                strcmp(".ref.text",      txtname) == 0 ||
                strcmp(".sched.text",    txtname) == 0 ||
                strcmp(".spinlock.text", txtname) == 0 ||

Thanks,
Manoj

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

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

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-11  1:09 9c8e2f6d3d36 for linux-4.{4,9,14,19}-y Manoj Gupta
2021-03-12 10:07 ` Greg KH
2021-03-12 20:39 ` [PATCH] scripts/recordmcount.{c,pl}: support -ffunction-sections .text.* section names Manoj Gupta
2021-03-12 20:42   ` Manoj Gupta
2021-03-12 20:52   ` Nick Desaulniers
2021-03-12 22:17 ` [PATCH v2] " Manoj Gupta
2021-03-13 13:32   ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.