OSDN Git Service

x86/fault: Document the locking in the fault_signal_pending() path
authorAndy Lutomirski <luto@kernel.org>
Wed, 10 Feb 2021 02:33:37 +0000 (18:33 -0800)
committerBorislav Petkov <bp@suse.de>
Wed, 10 Feb 2021 13:12:07 +0000 (14:12 +0100)
commitef2544fb3f6457b79fc73cea39dafd67ee0f2824
tree5c349fcd160f436085fedaeee430c1a3ea2cf9a1
parentf42a40fd53fb5c77bae67d917d66078dbaa46bc2
x86/fault: Document the locking in the fault_signal_pending() path

If fault_signal_pending() returns true, then the core mm has unlocked the
mm for us.  Add a comment to help future readers of this code.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/c56de3d103f40e6304437b150aa7b215530d23f7.1612924255.git.luto@kernel.org
arch/x86/mm/fault.c