Re: [PATCH] mm: Fix races between address_space dereference and free in page_evicatable

2018-02-25 Thread Minchan Kim
On Mon, Feb 26, 2018 at 02:38:04PM +0800, Huang, Ying wrote: > Minchan Kim writes: > > > Hi Jan, > > > > On Mon, Feb 19, 2018 at 11:57:35AM +0100, Jan Kara wrote: > >> Hi Minchan, > >> > >> On Sun 18-02-18 18:22:45, Minchan Kim wrote: > >> > On Mon, Feb 12, 2018 at 04:12:27PM +0800, Huang, Ying

Re: [PATCH] mm: Fix races between address_space dereference and free in page_evicatable

2018-02-25 Thread Huang, Ying
Minchan Kim writes: > Hi Jan, > > On Mon, Feb 19, 2018 at 11:57:35AM +0100, Jan Kara wrote: >> Hi Minchan, >> >> On Sun 18-02-18 18:22:45, Minchan Kim wrote: >> > On Mon, Feb 12, 2018 at 04:12:27PM +0800, Huang, Ying wrote: >> > > From: Huang Ying >> > > >> > > When page_mapping() is called an

Re: [PATCH] mm: Fix races between address_space dereference and free in page_evicatable

2018-02-25 Thread Minchan Kim
Hi Jan, On Mon, Feb 19, 2018 at 11:57:35AM +0100, Jan Kara wrote: > Hi Minchan, > > On Sun 18-02-18 18:22:45, Minchan Kim wrote: > > On Mon, Feb 12, 2018 at 04:12:27PM +0800, Huang, Ying wrote: > > > From: Huang Ying > > > > > > When page_mapping() is called and the mapping is dereferenced in >

Re: [PATCH] mm: Fix races between address_space dereference and free in page_evicatable

2018-02-19 Thread Jan Kara
Hi Minchan, On Sun 18-02-18 18:22:45, Minchan Kim wrote: > On Mon, Feb 12, 2018 at 04:12:27PM +0800, Huang, Ying wrote: > > From: Huang Ying > > > > When page_mapping() is called and the mapping is dereferenced in > > page_evicatable() through shrink_active_list(), it is possible for the > > ino

Re: [PATCH] mm: Fix races between address_space dereference and free in page_evicatable

2018-02-18 Thread Minchan Kim
Hi Huang, On Mon, Feb 12, 2018 at 04:12:27PM +0800, Huang, Ying wrote: > From: Huang Ying > > When page_mapping() is called and the mapping is dereferenced in > page_evicatable() through shrink_active_list(), it is possible for the > inode to be truncated and the embedded address space to be fre

Re: [PATCH] mm: Fix races between address_space dereference and free in page_evicatable

2018-02-15 Thread Jan Kara
On Mon 12-02-18 16:12:27, Huang, Ying wrote: > From: Huang Ying > > When page_mapping() is called and the mapping is dereferenced in > page_evicatable() through shrink_active_list(), it is possible for the > inode to be truncated and the embedded address space to be freed at > the same time. Thi