Re: [PATCH] signal: propagate __user annotations properly

2020-12-07 Thread Lukas Bulwahn
On Mon, Dec 7, 2020 at 2:04 PM Christian Brauner wrote: > > On Mon, Dec 07, 2020 at 01:36:10PM +0100, Lukas Bulwahn wrote: > > Commit 3eb39f47934f ("signal: add pidfd_send_signal() syscall") introduced > > copy_siginfo_from_user_any(), but missed to add the __user annotation to > > the user pointe

Re: [PATCH] signal: propagate __user annotations properly

2020-12-07 Thread Christian Brauner
On Mon, Dec 07, 2020 at 01:36:10PM +0100, Lukas Bulwahn wrote: > Commit 3eb39f47934f ("signal: add pidfd_send_signal() syscall") introduced > copy_siginfo_from_user_any(), but missed to add the __user annotation to > the user pointer that is passed as second argument. > > Hence, when copy_siginfo_

[PATCH] signal: propagate __user annotations properly

2020-12-07 Thread Lukas Bulwahn
Commit 3eb39f47934f ("signal: add pidfd_send_signal() syscall") introduced copy_siginfo_from_user_any(), but missed to add the __user annotation to the user pointer that is passed as second argument. Hence, when copy_siginfo_from_user_any() calls copy_siginfo_from_user(), sparse warns: kernel/s