[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANaxB-zzbyQmj=o8tkRAgS6hCXr4JTuQTDMEsC5pj88JTgrLfg@mail.gmail.com>
Date: Thu, 9 Feb 2023 12:29:37 -0800
From: Andrei Vagin <avagin@...il.com>
To: Gregory Price <gourry.memverge@...il.com>
Cc: linux-kernel@...r.kernel.org, linux-doc@...r.kernel.org,
oleg@...hat.com, peterz@...radead.org, luto@...nel.org,
krisman@...labora.com, tglx@...utronix.de, corbet@....net,
shuah@...nel.org, Gregory Price <gregory.price@...verge.com>
Subject: Re: [PATCH v8 1/1] ptrace,syscall_user_dispatch: checkpoint/restore
support for SUD
On Tue, Jan 31, 2023 at 7:30 AM Gregory Price <gourry.memverge@...il.com> wrote:
>
> Implement ptrace getter/setter interface for syscall user dispatch.
>
> These prctl settings are presently write-only, making it impossible to
> implement transparent checkpoint/restore via software like CRIU.
>
> 'on_dispatch' field is not exposed because it is a kernel-internal
> only field that cannot be 'true' when returning to userland.
>
Acked-by: Andrei Vagin <avagin@...il.com>
> Signed-off-by: Gregory Price <gregory.price@...verge.com>
<snip>
> diff --git a/include/uapi/linux/ptrace.h b/include/uapi/linux/ptrace.h
> index 195ae64a8c87..6d2f3b86f932 100644
> --- a/include/uapi/linux/ptrace.h
> +++ b/include/uapi/linux/ptrace.h
> @@ -112,6 +112,15 @@ struct ptrace_rseq_configuration {
> __u32 pad;
> };
>
> +#define PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG 0x4210
> +#define PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG 0x4211
> +struct syscall_user_dispatch_config {
nit: all structures in this header have the ptrace prefix. I think it
is better to add it to this one too.
> + __u64 mode;
> + __s8 *selector;
> + __u64 offset;
> + __u64 len;
> +};
> +
> /*
> * These values are stored in task->ptrace_message
> * by ptrace_stop to describe the current syscall-stop.
Powered by blists - more mailing lists