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

2017-04-22 Thread zhong jiang
e useful. > Dashi Cao > > -Original Message- > From: Hugh Dickins [mailto:hu...@google.com] > Sent: Friday, December 23, 2016 6:27 AM > To: Peter Zijlstra <pet...@infradead.org> > Cc: Michal Hocko <mho...@kernel.org>; Dashi DS1 Cao <cao...@lenovo.com>;

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

2017-04-22 Thread zhong jiang
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
PM To: Dashi DS1 Cao <cao...@lenovo.com> Cc: Hugh Dickins <hu...@google.com>; Michal Hocko <mho...@kernel.org>; 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

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

2016-12-24 Thread Dashi DS1 Cao
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 "RELEASE

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

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

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

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

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

2016-12-22 Thread Dashi DS1 Cao
> Cc: Michal Hocko <mho...@kernel.org>; Dashi DS1 Cao <cao...@lenovo.com>; linux...@kvack.org; linux-kernel@vger.kernel.org; Hugh Dickins <hu...@google.com> 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

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

2016-12-22 Thread Dashi DS1 Cao
shi 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 is cle

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

2016-12-22 Thread Dashi DS1 Cao
> Cc: Michal Hocko <mho...@kernel.org>; Dashi DS1 Cao <cao...@lenovo.com>; linux...@kvack.org; linux-kernel@vger.kernel.org; Hugh Dickins <hu...@google.com> 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

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

2016-12-22 Thread Dashi DS1 Cao
shi 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

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 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:

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:

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 <mho...@kernel.org> Cc: linux...@kvack.org; linux-kernel@vger.kernel.org; Peter Zijlstra <pet...@infradead.org> 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

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 CPU

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 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
+255>: lock cmpxchg %edx,(%rsi) 0x811a3413 <+259>: cmp%eax,%ecx 0x811a3415 <+261>: je 0x811a339e <page_lock_anon_vma_read+142> 0x811a3417 <+263>: mov%eax,%ecx 0x811a3419 <+265>: jmp0x811a34

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

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

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

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

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

2016-12-20 Thread Dashi DS1 Cao
I've collected four crash dumps with similar backtrace. PID: 247TASK: 881fcfad8000 CPU: 14 COMMAND: "kswapd1" #0 [881fcfad7978] machine_kexec at 81051e9b #1 [881fcfad79d8] crash_kexec at 810f27e2 #2 [881fcfad7aa8] oops_end at 8163f448 #3

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

2016-12-20 Thread Dashi DS1 Cao
I've collected four crash dumps with similar backtrace. PID: 247TASK: 881fcfad8000 CPU: 14 COMMAND: "kswapd1" #0 [881fcfad7978] machine_kexec at 81051e9b #1 [881fcfad79d8] crash_kexec at 810f27e2 #2 [881fcfad7aa8] oops_end at 8163f448 #3