]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdfeb73f65743d87fa0c2483ac59bb8e9d83dcf83
treea0ccfcd8724cc240966a7b15c12dc9856dc359b9
parent9b070f8b42bb5f359c86a8ae36d9fb278e8db21a
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