Re: [PATCH] signal: fix overflow_uid signal sender

2016-11-02 Thread Oleg Nesterov
On 11/02, Jann Horn wrote: > > On Wed, Nov 02, 2016 at 07:16:41PM +0100, Oleg Nesterov wrote: > > On 10/31, Jann Horn wrote: > > > > > > static inline void userns_fixup_signal_uid(struct siginfo *info, struct > > > task_struct *t) > > > { > > > - if (current_user_ns() == task_cred_xxx(t, user_ns

Re: [PATCH] signal: fix overflow_uid signal sender

2016-11-02 Thread Jann Horn
On Wed, Nov 02, 2016 at 07:16:41PM +0100, Oleg Nesterov wrote: > On 10/31, Jann Horn wrote: > > > > static inline void userns_fixup_signal_uid(struct siginfo *info, struct > > task_struct *t) > > { > > - if (current_user_ns() == task_cred_xxx(t, user_ns)) > > + if (&init_user_ns == task_cred

Re: [PATCH] signal: fix overflow_uid signal sender

2016-11-02 Thread Oleg Nesterov
On 10/31, Jann Horn wrote: > > static inline void userns_fixup_signal_uid(struct siginfo *info, struct > task_struct *t) > { > - if (current_user_ns() == task_cred_xxx(t, user_ns)) > + if (&init_user_ns == task_cred_xxx(t, user_ns)) > return; > > if (SI_FROMKERNEL(i