onstr.eu>, Thomas Bogendoerfer <[email protected]>, 
[email protected], Max Filippov <[email protected]>, 
[email protected], Johannes Berg <[email protected]>, Dinh 
Nguyen <[email protected]>, [email protected], Palmer Dabbelt 
<[email protected]>, Sven Schnelle <[email protected]>, 
[email protected], Ivan Kokshaysky <[email protected]>, 
Andrew Morton <[email protected]>, [email protected], 
"David S . Miller" <[email protected]>
Errors-To: [email protected]
Sender: "Linuxppc-dev" 
<[email protected]>

On Fri, May 27, 2022 at 03:39:36PM -0400, Peter Xu wrote:
> diff --git a/arch/arm64/mm/fault.c b/arch/arm64/mm/fault.c
> index 77341b160aca..e401d416bbd6 100644
> --- a/arch/arm64/mm/fault.c
> +++ b/arch/arm64/mm/fault.c
> @@ -607,6 +607,10 @@ static int __kprobes do_page_fault(unsigned long far, 
> unsigned int esr,
>               return 0;
>       }
>  
> +     /* The fault is fully completed (including releasing mmap lock) */
> +     if (fault & VM_FAULT_COMPLETED)
> +             return 0;
> +
>       if (fault & VM_FAULT_RETRY) {
>               mm_flags |= FAULT_FLAG_TRIED;
>               goto retry;

For arm64:

Acked-by: Catalin Marinas <[email protected]>

Reply via email to