mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
rseq: Introduce extensible rseq ABI
Introduce the extensible rseq ABI, where the feature size supported by the kernel and the required alignment are communicated to user-space through ELF auxiliary vectors. This allows user-space to call rseq registration with a rseq_len of either 32 bytes for the original struct rseq size (which includes padding), or larger. If rseq_len is larger than 32 bytes, then it must be large enough to contain the feature size communicated to user-space through ELF auxiliary vectors. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20221122203932.231377-4-mathieu.desnoyers@efficios.com
This commit is contained in:
committed by
Peter Zijlstra
parent
317c8194e6
commit
ee3e3ac05c
@@ -813,7 +813,7 @@ static long ptrace_get_rseq_configuration(struct task_struct *task,
|
||||
{
|
||||
struct ptrace_rseq_configuration conf = {
|
||||
.rseq_abi_pointer = (u64)(uintptr_t)task->rseq,
|
||||
.rseq_abi_size = sizeof(*task->rseq),
|
||||
.rseq_abi_size = task->rseq_len,
|
||||
.signature = task->rseq_sig,
|
||||
.flags = 0,
|
||||
};
|
||||
|
Reference in New Issue
Block a user