Commit 348f73a3 authored by Mao Minkai's avatar Mao Minkai Committed by guzitao
Browse files

sw64: add support for restartable sequences

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I73KIX



--------------------------------

Call the rseq_handle_notify_resume() function on return to userspace if
TIF_NOTIFY_RESUME thread flag is set.

Perform fixup on the pre-signal when a signal is delivered on top of a
restartable sequence critical section.

Check that system calls are not invoked from within rseq critical
sections by invoking rseq_syscall() from ret_to_user().
With CONFIG_DEBUG_RSEQ, such behavior results in termination of the
process with SIGSEGV.

Signed-off-by: default avatarMao Minkai <maominkai@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent 511d73aa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment