History

Merge tag 'trace-v4.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace

Pull tracing fixes from Steven Rostedt: "A few updates and fixes: - move the suppressing of the __builtin_return_address >0 warning to the tracing directory only. - metag recordmcount fix for newer glibc's - two tracing histogram fixes that were reported by KASAN" * tag 'trace-v4.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace: tracing: Fix use-after-free in hist_register_trigger() tracing: Fix use-after-free in hist_unreg_all/hist_enable_unreg_all Makefile: Mute warning for __builtin_return_address(>0) for tracing only ftrace/recordmcount: Work around for addition of metag magic but not relocations

Linus Torvalds committed 10 years ago

Commit bf0f5002 parents 4b2e016 7522c034 files · +19 −9Browse files

Showing the changes to scripts (1 of 4 files). Show all

Unified · Split

scripts/recordmcount.c+8−1
@@ -33,10 +33,17 @@ · 32 unmodified lines
3333 #include <string.h>
3434 #include <unistd.h>
3535
36+/*
37+ * glibc synced up and added the metag number but didn't add the relocations.
38+ * Work around this in a crude manner for now.
39+ */
3640 #ifndef EM_METAG
37−/* Remove this when these make it to the standard system elf.h. */
3841 #define EM_METAG 174
42+#endif
43+#ifndef R_METAG_ADDR32
3944 #define R_METAG_ADDR32 2
45+#endif
46+#ifndef R_METAG_NONE
4047 #define R_METAG_NONE 3
4148 #endif
4249