Patch "arch: make TRACE_IRQFLAGS_NMI_SUPPORT generic" has been added to the 5.19-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

    arch: make TRACE_IRQFLAGS_NMI_SUPPORT generic

to the 5.19-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:
     arch-make-trace_irqflags_nmi_support-generic.patch
and it can be found in the queue-5.19 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 39fa8ba34dc625da5963c84b2a5bb2cfcacac82b
Author: Mark Rutland <mark.rutland@xxxxxxx>
Date:   Wed May 11 14:17:32 2022 +0100

    arch: make TRACE_IRQFLAGS_NMI_SUPPORT generic
    
    [ Upstream commit 4510bffb4d0246cdcc1f14c7367c026b807a862d ]
    
    On most architectures, IRQ flag tracing is disabled in NMI context, and
    architectures need to define and select TRACE_IRQFLAGS_NMI_SUPPORT in
    order to enable this.
    
    Commit:
    
      859d069ee1ddd878 ("lockdep: Prepare for NMI IRQ state tracking")
    
    Permitted IRQ flag tracing in NMI context, allowing lockdep to work in
    NMI context where an architecture had suitable entry logic. At the time,
    most architectures did not have such suitable entry logic, and this broke
    lockdep on such architectures. Thus, this was partially disabled in
    commit:
    
      ed00495333ccc80f ("locking/lockdep: Fix TRACE_IRQFLAGS vs. NMIs")
    
    ... with architectures needing to select TRACE_IRQFLAGS_NMI_SUPPORT to
    enable IRQ flag tracing in NMI context.
    
    Currently TRACE_IRQFLAGS_NMI_SUPPORT is defined under
    arch/x86/Kconfig.debug. Move it to arch/Kconfig so architectures can
    select it without having to provide their own definition.
    
    Since the regular TRACE_IRQFLAGS_SUPPORT is selected by
    arch/x86/Kconfig, the select of TRACE_IRQFLAGS_NMI_SUPPORT is moved
    there too.
    
    There should be no functional change as a result of this patch.
    
    Signed-off-by: Mark Rutland <mark.rutland@xxxxxxx>
    Cc: Catalin Marinas <catalin.marinas@xxxxxxx>
    Cc: Ingo Molnar <mingo@xxxxxxxxxx>
    Cc: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
    Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
    Cc: Will Deacon <will@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20220511131733.4074499-2-mark.rutland@xxxxxxx
    Signed-off-by: Will Deacon <will@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/Kconfig b/arch/Kconfig
index 71b9272acb28..5ea3e3838c21 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -223,6 +223,9 @@ config HAVE_FUNCTION_DESCRIPTORS
 config TRACE_IRQFLAGS_SUPPORT
 	bool
 
+config TRACE_IRQFLAGS_NMI_SUPPORT
+	bool
+
 #
 # An arch should select this if it provides all these things:
 #
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 52a7f91527fe..25e2b8b75e40 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -278,6 +278,7 @@ config X86
 	select SYSCTL_EXCEPTION_TRACE
 	select THREAD_INFO_IN_TASK
 	select TRACE_IRQFLAGS_SUPPORT
+	select TRACE_IRQFLAGS_NMI_SUPPORT
 	select USER_STACKTRACE_SUPPORT
 	select VIRT_TO_BUS
 	select HAVE_ARCH_KCSAN			if X86_64
diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug
index 340399f69954..bdfe08f1a930 100644
--- a/arch/x86/Kconfig.debug
+++ b/arch/x86/Kconfig.debug
@@ -1,8 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
 
-config TRACE_IRQFLAGS_NMI_SUPPORT
-	def_bool y
-
 config EARLY_PRINTK_USB
 	bool
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux