[PATCH v3 0/3] rseq: minor optimizations

From: Eric Dumazet
Date: Tue Apr 13 2021 - 16:33:58 EST


From: Eric Dumazet <edumazet@xxxxxxxxxx>

rseq is a heavy user of copy to/from user data in fast paths.
This series tries to reduce the cost.

v3: Third patch going back to v1 (only deal with 64bit arches)
v2: Addressed Peter and Mathieu feedbacks, thanks !

Eric Dumazet (3):
rseq: optimize rseq_update_cpu_id()
rseq: remove redundant access_ok()
rseq: optimise rseq_get_rseq_cs() and clear_rseq_cs()

kernel/rseq.c | 29 +++++++++++++++++++++--------
1 file changed, 21 insertions(+), 8 deletions(-)

--
2.31.1.295.g9ea45b61b8-goog