Lines Matching refs:rseq
88 if (put_user(cpu_id, &t->rseq->cpu_id_start)) in rseq_update_cpu_id()
90 if (put_user(cpu_id, &t->rseq->cpu_id)) in rseq_update_cpu_id()
103 if (put_user(cpu_id_start, &t->rseq->cpu_id_start)) in rseq_reset_rseq_cpu_id()
110 if (put_user(cpu_id, &t->rseq->cpu_id)) in rseq_reset_rseq_cpu_id()
123 if (copy_from_user(&ptr, &t->rseq->rseq_cs.ptr64, sizeof(ptr))) in rseq_get_rseq_cs()
167 ret = get_user(flags, &t->rseq->flags); in rseq_need_restart()
207 if (clear_user(&t->rseq->rseq_cs.ptr64, sizeof(t->rseq->rseq_cs.ptr64))) in clear_rseq_cs()
269 if (unlikely(!access_ok(t->rseq, sizeof(*t->rseq)))) in __rseq_handle_notify_resume()
295 if (!t->rseq) in rseq_syscall()
297 if (!access_ok(t->rseq, sizeof(*t->rseq)) || in rseq_syscall()
307 SYSCALL_DEFINE4(rseq, struct rseq __user *, rseq, u32, rseq_len, in SYSCALL_DEFINE4() argument
314 if (current->rseq != rseq || !current->rseq) in SYSCALL_DEFINE4()
316 if (rseq_len != sizeof(*rseq)) in SYSCALL_DEFINE4()
323 current->rseq = NULL; in SYSCALL_DEFINE4()
331 if (current->rseq) { in SYSCALL_DEFINE4()
337 if (current->rseq != rseq || rseq_len != sizeof(*rseq)) in SYSCALL_DEFINE4()
349 if (!IS_ALIGNED((unsigned long)rseq, __alignof__(*rseq)) || in SYSCALL_DEFINE4()
350 rseq_len != sizeof(*rseq)) in SYSCALL_DEFINE4()
352 if (!access_ok(rseq, rseq_len)) in SYSCALL_DEFINE4()
354 current->rseq = rseq; in SYSCALL_DEFINE4()