Re: [PATCH net v3 1/4] umh: add exit routine for UMH process

2019-01-07 Thread Taehee Yoo
On Tue, 8 Jan 2019 at 00:25, David Miller wrote: > > From: Taehee Yoo > Date: Mon, 7 Jan 2019 21:10:14 +0900 > > > @@ -679,6 +688,29 @@ static int proc_cap_handler(struct ctl_table *table, > > int write, > > return 0; > > } > > > > +void exit_umh(struct task_struct *tsk) > > +{ > > +

Re: [PATCH net v3 1/4] umh: add exit routine for UMH process

2019-01-07 Thread David Miller
From: Taehee Yoo Date: Mon, 7 Jan 2019 21:10:14 +0900 > @@ -679,6 +688,29 @@ static int proc_cap_handler(struct ctl_table *table, int > write, > return 0; > } > > +void exit_umh(struct task_struct *tsk) > +{ > + struct umh_info *info; > + pid_t pid = tsk->pid; > + > + if (!

[PATCH net v3 1/4] umh: add exit routine for UMH process

2019-01-07 Thread Taehee Yoo
A UMH process which is created by the fork_usermode_blob() such as bpfilter needs to release members of the umh_info when process is terminated. But the do_exit() does not release members of the umh_info. hence module which uses UMH needs own code to detect whether UMH process is terminated or not.