Re: [PATCH v2 4.9 00/10] fix a race in release_task when flushing the dentry

2021-01-09 Thread Greg Kroah-Hartman
On Fri, Jan 08, 2021 at 10:42:47AM +0800, Wen Yang wrote: > > > 在 2021/1/8 上午2:28, Greg Kroah-Hartman 写道: > > On Fri, Jan 08, 2021 at 12:21:38AM +0800, Wen Yang wrote: > > > > > > > > > 在 2021/1/7 下午8:17, Greg Kroah-Hartman 写道: > > > > On Thu, Jan 07, 2021 at 03:52:12PM +0800, Wen Yang wrote:

Re: [PATCH v2 4.9 00/10] fix a race in release_task when flushing the dentry

2021-01-07 Thread Wen Yang
在 2021/1/8 上午2:28, Greg Kroah-Hartman 写道: On Fri, Jan 08, 2021 at 12:21:38AM +0800, Wen Yang wrote: 在 2021/1/7 下午8:17, Greg Kroah-Hartman 写道: On Thu, Jan 07, 2021 at 03:52:12PM +0800, Wen Yang wrote: The dentries such as /proc//ns/ have the DCACHE_OP_DELETE flag, they should be deleted

Re: [PATCH v2 4.9 00/10] fix a race in release_task when flushing the dentry

2021-01-07 Thread Greg Kroah-Hartman
On Fri, Jan 08, 2021 at 12:21:38AM +0800, Wen Yang wrote: > > > 在 2021/1/7 下午8:17, Greg Kroah-Hartman 写道: > > On Thu, Jan 07, 2021 at 03:52:12PM +0800, Wen Yang wrote: > > > The dentries such as /proc//ns/ have the DCACHE_OP_DELETE flag, they > > > should be deleted when the process exits. > > >

Re: [PATCH v2 4.9 00/10] fix a race in release_task when flushing the dentry

2021-01-07 Thread Wen Yang
在 2021/1/7 下午8:17, Greg Kroah-Hartman 写道: On Thu, Jan 07, 2021 at 03:52:12PM +0800, Wen Yang wrote: The dentries such as /proc//ns/ have the DCACHE_OP_DELETE flag, they should be deleted when the process exits. Suppose the following race appears: release_task dput ->

Re: [PATCH v2 4.9 00/10] fix a race in release_task when flushing the dentry

2021-01-07 Thread Greg Kroah-Hartman
On Thu, Jan 07, 2021 at 03:52:12PM +0800, Wen Yang wrote: > The dentries such as /proc//ns/ have the DCACHE_OP_DELETE flag, they > should be deleted when the process exits. > > Suppose the following race appears: > > release_task dput > -> proc_flush_task >

[PATCH v2 4.9 00/10] fix a race in release_task when flushing the dentry

2021-01-06 Thread Wen Yang
The dentries such as /proc//ns/ have the DCACHE_OP_DELETE flag, they should be deleted when the process exits. Suppose the following race appears: release_task dput -> proc_flush_task -> dentry->d_op->d_delete(dentry) -> __exit_signal

[PATCH v2 4.9 00/10] fix a race in release_task when flushing the dentry

2021-01-06 Thread Wen Yang
The dentries such as /proc//ns/ have the DCACHE_OP_DELETE flag, they should be deleted when the process exits. Suppose the following race appears: release_task dput -> proc_flush_task -> dentry->d_op->d_delete(dentry) -> __exit_signal