Re: [PATCH v2 3/5] signal: Add unsafe_copy_siginfo_to_user()

2021-09-13 Thread Christophe Leroy
Le 02/09/2021 à 08:54, Christoph Hellwig a écrit : On Mon, Aug 23, 2021 at 03:35:53PM +, Christophe Leroy wrote: In the same spirit as commit fb05121fd6a2 ("signal: Add unsafe_get_compat_sigset()"), implement an 'unsafe' version of copy_siginfo_to_user() in order to use it within user acc

Re: [PATCH v2 3/5] signal: Add unsafe_copy_siginfo_to_user()

2021-09-13 Thread Christophe Leroy
Le 11/09/2021 à 17:58, Eric W. Biederman a écrit : Christophe Leroy writes: On 9/8/21 6:17 PM, Eric W. Biederman wrote: Christophe Leroy writes: Le 02/09/2021 à 20:43, Eric W. Biederman a écrit : Christophe Leroy writes: In the same spirit as commit fb05121fd6a2 ("signal: Add unsafe

Re: [PATCH v2 3/5] signal: Add unsafe_copy_siginfo_to_user()

2021-09-11 Thread Eric W. Biederman
Christophe Leroy writes: > On 9/8/21 6:17 PM, Eric W. Biederman wrote: >> Christophe Leroy writes: >> >>> Le 02/09/2021 à 20:43, Eric W. Biederman a écrit : Christophe Leroy writes: > In the same spirit as commit fb05121fd6a2 ("signal: Add > unsafe_get_compat_sigset()"), imple

Re: [PATCH v2 3/5] signal: Add unsafe_copy_siginfo_to_user()

2021-09-10 Thread Christophe Leroy
On 9/8/21 6:17 PM, Eric W. Biederman wrote: Christophe Leroy writes: Le 02/09/2021 à 20:43, Eric W. Biederman a écrit : Christophe Leroy writes: In the same spirit as commit fb05121fd6a2 ("signal: Add unsafe_get_compat_sigset()"), implement an 'unsafe' version of copy_siginfo_to_user()

Re: [PATCH v2 3/5] signal: Add unsafe_copy_siginfo_to_user()

2021-09-08 Thread Eric W. Biederman
Christophe Leroy writes: > Le 02/09/2021 à 20:43, Eric W. Biederman a écrit : >> Christophe Leroy writes: >> >>> In the same spirit as commit fb05121fd6a2 ("signal: Add >>> unsafe_get_compat_sigset()"), implement an 'unsafe' version of >>> copy_siginfo_to_user() in order to use it within user ac

Re: [PATCH v2 3/5] signal: Add unsafe_copy_siginfo_to_user()

2021-09-03 Thread Christophe Leroy
Le 02/09/2021 à 20:43, Eric W. Biederman a écrit : Christophe Leroy writes: In the same spirit as commit fb05121fd6a2 ("signal: Add unsafe_get_compat_sigset()"), implement an 'unsafe' version of copy_siginfo_to_user() in order to use it within user access blocks. For that, also add an 'uns

Re: [PATCH v2 3/5] signal: Add unsafe_copy_siginfo_to_user()

2021-09-02 Thread Eric W. Biederman
Christophe Leroy writes: > In the same spirit as commit fb05121fd6a2 ("signal: Add > unsafe_get_compat_sigset()"), implement an 'unsafe' version of > copy_siginfo_to_user() in order to use it within user access blocks. > > For that, also add an 'unsafe' version of clear_user(). Looking at your u

Re: [PATCH v2 3/5] signal: Add unsafe_copy_siginfo_to_user()

2021-09-02 Thread Linus Torvalds
On Wed, Sep 1, 2021 at 11:55 PM Christoph Hellwig wrote: > > I'm a little worried about all these unsafe helper in powerpc and the > ever increasing scope of the unsafe sections. Can you at least at > powerpc support to objtool to verify them? objtool verifications has > helped to find quite a f

Re: [PATCH v2 3/5] signal: Add unsafe_copy_siginfo_to_user()

2021-09-01 Thread Christoph Hellwig
On Mon, Aug 23, 2021 at 03:35:53PM +, Christophe Leroy wrote: > In the same spirit as commit fb05121fd6a2 ("signal: Add > unsafe_get_compat_sigset()"), implement an 'unsafe' version of > copy_siginfo_to_user() in order to use it within user access blocks. > > For that, also add an 'unsafe' ver

[PATCH v2 3/5] signal: Add unsafe_copy_siginfo_to_user()

2021-08-23 Thread Christophe Leroy
In the same spirit as commit fb05121fd6a2 ("signal: Add unsafe_get_compat_sigset()"), implement an 'unsafe' version of copy_siginfo_to_user() in order to use it within user access blocks. For that, also add an 'unsafe' version of clear_user(). Signed-off-by: Christophe Leroy --- include/linux/s