Re: A small window for a race condition in mm/rmap.c:page_lock_anon_vma_read

2017-04-22 Thread zhong jiang
would be useful. > Dashi Cao > > -Original Message- > From: Hugh Dickins [mailto:hu...@google.com] > Sent: Friday, December 23, 2016 6:27 AM > To: Peter Zijlstra > Cc: Michal Hocko ; Dashi DS1 Cao ; > linux...@kvack.org; linux-kernel@vger.kernel.org; Hugh Dickins >

RE: A small window for a race condition in mm/rmap.c:page_lock_anon_vma_read

2016-12-24 Thread Dashi DS1 Cao
2016 10:20 PM To: Dashi DS1 Cao Cc: Hugh Dickins ; Michal Hocko ; linux...@kvack.org; linux-kernel@vger.kernel.org Subject: Re: A small window for a race condition in mm/rmap.c:page_lock_anon_vma_read On Fri, Dec 23, 2016 at 02:02:14AM +, Dashi DS1 Cao wrote: > The kernel version is &qu

Re: A small window for a race condition in mm/rmap.c:page_lock_anon_vma_read

2016-12-23 Thread Peter Zijlstra
On Fri, Dec 23, 2016 at 02:02:14AM +, Dashi DS1 Cao wrote: > The kernel version is "RELEASE: 3.10.0-327.36.3.el7.x86_64". It was the > latest kernel release of CentOS 7.2 at that time, or maybe still now. This would be the point where we ask you to run a recent upstream kernel and try and rep

RE: A small window for a race condition in mm/rmap.c:page_lock_anon_vma_read

2016-12-22 Thread Hugh Dickins
On Fri, 23 Dec 2016, Dashi DS1 Cao wrote: > The kernel version is "RELEASE: 3.10.0-327.36.3.el7.x86_64". It was the > latest kernel release of CentOS 7.2 at that time, or maybe still now. Okay, thanks: so, basically a v3.10 kernel, with lots of added patches, but also lacking many more recent fi

RE: A small window for a race condition in mm/rmap.c:page_lock_anon_vma_read

2016-12-22 Thread Dashi DS1 Cao
; Dashi DS1 Cao ; linux...@kvack.org; linux-kernel@vger.kernel.org; Hugh Dickins Subject: Re: A small window for a race condition in mm/rmap.c:page_lock_anon_vma_read On Thu, 22 Dec 2016, Peter Zijlstra wrote: > On Wed, Dec 21, 2016 at 03:43:43PM +0100, Michal Hocko wrote: > > anon_vma locking i

RE: A small window for a race condition in mm/rmap.c:page_lock_anon_vma_read

2016-12-22 Thread Dashi DS1 Cao
; Dashi DS1 Cao ; linux...@kvack.org; linux-kernel@vger.kernel.org; Hugh Dickins Subject: Re: A small window for a race condition in mm/rmap.c:page_lock_anon_vma_read On Thu, 22 Dec 2016, Peter Zijlstra wrote: > On Wed, Dec 21, 2016 at 03:43:43PM +0100, Michal Hocko wrote: > > anon_vma loc

Re: A small window for a race condition in mm/rmap.c:page_lock_anon_vma_read

2016-12-22 Thread Hugh Dickins
On Thu, 22 Dec 2016, Peter Zijlstra wrote: > On Wed, Dec 21, 2016 at 03:43:43PM +0100, Michal Hocko wrote: > > anon_vma locking is clever^Wsubtle as hell. CC Peter... > > > > On Tue 20-12-16 09:32:27, Dashi DS1 Cao wrote: > > > I've collected four crash dumps with similar backtrace. > > > > > >

Re: A small window for a race condition in mm/rmap.c:page_lock_anon_vma_read

2016-12-22 Thread Peter Zijlstra
On Wed, Dec 21, 2016 at 03:43:43PM +0100, Michal Hocko wrote: > anon_vma locking is clever^Wsubtle as hell. CC Peter... > > On Tue 20-12-16 09:32:27, Dashi DS1 Cao wrote: > > I've collected four crash dumps with similar backtrace. > > > > PID: 247TASK: 881fcfad8000 CPU: 14 COMMAND: "ks

RE: A small window for a race condition in mm/rmap.c:page_lock_anon_vma_read

2016-12-22 Thread Dashi DS1 Cao
day, December 22, 2016 7:53 PM To: Michal Hocko Cc: linux...@kvack.org; linux-kernel@vger.kernel.org; Peter Zijlstra Subject: RE: A small window for a race condition in mm/rmap.c:page_lock_anon_vma_read I've used another dump with similar backtrace. PID: 246TASK: 881fd27df300

Re: A small window for a race condition in mm/rmap.c:page_lock_anon_vma_read

2016-12-22 Thread Michal Hocko
On Thu 22-12-16 11:53:26, Dashi DS1 Cao wrote: > I've used another dump with similar backtrace. Please also dump the anon_vma of the page as well. -- Michal Hocko SUSE Labs

RE: A small window for a race condition in mm/rmap.c:page_lock_anon_vma_read

2016-12-22 Thread Dashi DS1 Cao
ff811a 0x811a340a <+250>: lea0x1(%rcx),%edx 0x811a340d <+253>: mov%ecx,%eax 0x811a340f <+255>: lock cmpxchg %edx,(%rsi) 0xffffffff811a3413 <+259>: cmp %eax,%ecx 0x811a3415 <+261>: je 0x811

Re: A small window for a race condition in mm/rmap.c:page_lock_anon_vma_read

2016-12-21 Thread Michal Hocko
anon_vma locking is clever^Wsubtle as hell. CC Peter... On Tue 20-12-16 09:32:27, Dashi DS1 Cao wrote: > I've collected four crash dumps with similar backtrace. > > PID: 247TASK: 881fcfad8000 CPU: 14 COMMAND: "kswapd1" > #0 [881fcfad7978] machine_kexec at 81051e9b > #1 [f