Skip to content
Commit 7b9acbb6 authored by Max Filippov's avatar Max Filippov
Browse files

xtensa: fix uaccess-related livelock in do_page_fault

If a uaccess (e.g. get_user()) triggers a fault and there's a
fault signal pending, the handler will return to the uaccess without
having performed a uaccess fault fixup, and so the CPU will immediately
execute the uaccess instruction again, whereupon it will livelock
bouncing between that instruction and the fault handler.

https://lore.kernel.org/lkml/20210121123140.GD48431@C02TD0UTHF1T.local/



Cc: stable@vger.kernel.org
Reported-by: default avatarMark Rutland <mark.rutland@arm.com>
Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent ab5eb336
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment