All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [stable 4.14 patch] x86: fix KMEMCHECK warning about FRAME_POINTER
@ 2018-02-16 15:29 Arnd Bergmann
  2018-02-21 11:26 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2018-02-16 15:29 UTC (permalink / raw)
  To: stable
  Cc: Arnd Bergmann, Josh Poimboeuf, Thomas Gleixner, Ingo Molnar,
	H. Peter Anvin, x86, Andrew Morton, Greg Kroah-Hartman,
	Kirill A. Shutemov, linux-kernel

When KMEMCHECK is enabled without UNWINDER_FRAME_POINTER, we get a
Kconfig warning, presumably harmless:

warning: (FAULT_INJECTION_STACKTRACE_FILTER && LATENCYTOP && KMEMCHECK && LOCKDEP && UNWINDER_FRAME_POINTER) selects FRAME_POINTER which has unmet direct dependencies (DEBUG_KERNEL && (CRIS || M68K || FRV || UML || SUPERH || BLACKFIN || MN10300 || METAG) || ARCH_WANT_FRAME_POINTERS || !UNWINDER_ORC && !UNWINDER_GUESS)

In newer mainline kernels, the KMEMCHECK option has been removed, so
this no longer happens. Adding the unwinder as a direct dependency
for KMEMCHECK works for 4.14-stable as well and documents the
dependency better.

Fixes: 81d387190039 ("x86/kconfig: Consolidate unwinders into multiple choice selection")
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 arch/x86/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 17de6acc0eab..3fc58c1a166b 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -111,7 +111,7 @@ config X86
 	select HAVE_ARCH_JUMP_LABEL
 	select HAVE_ARCH_KASAN			if X86_64
 	select HAVE_ARCH_KGDB
-	select HAVE_ARCH_KMEMCHECK
+	select HAVE_ARCH_KMEMCHECK		if !UNWINDER_ORC && !UNWINDER_GUESS
 	select HAVE_ARCH_MMAP_RND_BITS		if MMU
 	select HAVE_ARCH_MMAP_RND_COMPAT_BITS	if MMU && COMPAT
 	select HAVE_ARCH_COMPAT_MMAP_BASES	if MMU && COMPAT
-- 
2.9.0

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

* Re: [PATCH] [stable 4.14 patch] x86: fix KMEMCHECK warning about FRAME_POINTER
  2018-02-16 15:29 [PATCH] [stable 4.14 patch] x86: fix KMEMCHECK warning about FRAME_POINTER Arnd Bergmann
@ 2018-02-21 11:26 ` Greg Kroah-Hartman
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2018-02-21 11:26 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: stable, Josh Poimboeuf, Thomas Gleixner, Ingo Molnar,
	H. Peter Anvin, x86, Andrew Morton, Kirill A. Shutemov,
	linux-kernel

On Fri, Feb 16, 2018 at 04:29:10PM +0100, Arnd Bergmann wrote:
> When KMEMCHECK is enabled without UNWINDER_FRAME_POINTER, we get a
> Kconfig warning, presumably harmless:
> 
> warning: (FAULT_INJECTION_STACKTRACE_FILTER && LATENCYTOP && KMEMCHECK && LOCKDEP && UNWINDER_FRAME_POINTER) selects FRAME_POINTER which has unmet direct dependencies (DEBUG_KERNEL && (CRIS || M68K || FRV || UML || SUPERH || BLACKFIN || MN10300 || METAG) || ARCH_WANT_FRAME_POINTERS || !UNWINDER_ORC && !UNWINDER_GUESS)
> 
> In newer mainline kernels, the KMEMCHECK option has been removed, so
> this no longer happens. Adding the unwinder as a direct dependency
> for KMEMCHECK works for 4.14-stable as well and documents the
> dependency better.

4.14.y now has that option removed as well, as I just removed all of
kmemcheck as it was "getting in the way" of other patches, so this isn't
needed anymore.

thanks,

greg k-h

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

end of thread, other threads:[~2018-02-21 11:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-16 15:29 [PATCH] [stable 4.14 patch] x86: fix KMEMCHECK warning about FRAME_POINTER Arnd Bergmann
2018-02-21 11:26 ` Greg Kroah-Hartman

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.