arm64: Skip preemption when exiting an NMI
authorJulien Thierry <julien.thierry@arm.com>
Thu, 31 Jan 2019 14:59:01 +0000 (14:59 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 6 Feb 2019 10:06:31 +0000 (10:06 +0000)
commit1234ad686fb1bde5a9c2447fc4c9df8430358763
treea0ccfcd8724cc240966a7b15c12dc9856dc359b9
parent7d31464adf20fb8c075a3a3dfe2002a195566510
arm64: Skip preemption when exiting an NMI

Handling of an NMI should not set any TIF flags. For NMIs received from
EL0 the current exit path is safe to use.

However, an NMI received at EL1 could have interrupted some task context
that has set the TIF_NEED_RESCHED flag. Preempting a task should not
happen as a result of an NMI.

Skip preemption after handling an NMI from EL1.

Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/entry.S