Re: mm, something wring in page_lock_anon_vma_read()?

2017-06-08 Thread zhong jiang
On 2017/6/8 21:59, Vlastimil Babka wrote: > On 06/08/2017 03:44 PM, Xishi Qiu wrote: >> On 2017/5/23 17:33, Vlastimil Babka wrote: >> >>> On 05/23/2017 11:21 AM, zhong jiang wrote: On 2017/5/23 0:51, Vlastimil Babka wrote: > On 05/20/2017 05:01 AM, zhong jiang wrote: >> On 2017/5/20

Re: mm, something wring in page_lock_anon_vma_read()?

2017-06-08 Thread zhong jiang
On 2017/6/8 21:59, Vlastimil Babka wrote: > On 06/08/2017 03:44 PM, Xishi Qiu wrote: >> On 2017/5/23 17:33, Vlastimil Babka wrote: >> >>> On 05/23/2017 11:21 AM, zhong jiang wrote: On 2017/5/23 0:51, Vlastimil Babka wrote: > On 05/20/2017 05:01 AM, zhong jiang wrote: >> On 2017/5/20

Re: mm, something wring in page_lock_anon_vma_read()?

2017-06-08 Thread Vlastimil Babka
On 06/08/2017 03:44 PM, Xishi Qiu wrote: > On 2017/5/23 17:33, Vlastimil Babka wrote: > >> On 05/23/2017 11:21 AM, zhong jiang wrote: >>> On 2017/5/23 0:51, Vlastimil Babka wrote: On 05/20/2017 05:01 AM, zhong jiang wrote: > On 2017/5/20 10:40, Hugh Dickins wrote: >> On Sat, 20 May

Re: mm, something wring in page_lock_anon_vma_read()?

2017-06-08 Thread Vlastimil Babka
On 06/08/2017 03:44 PM, Xishi Qiu wrote: > On 2017/5/23 17:33, Vlastimil Babka wrote: > >> On 05/23/2017 11:21 AM, zhong jiang wrote: >>> On 2017/5/23 0:51, Vlastimil Babka wrote: On 05/20/2017 05:01 AM, zhong jiang wrote: > On 2017/5/20 10:40, Hugh Dickins wrote: >> On Sat, 20 May

Re: mm, something wring in page_lock_anon_vma_read()?

2017-06-08 Thread Xishi Qiu
On 2017/5/23 17:33, Vlastimil Babka wrote: > On 05/23/2017 11:21 AM, zhong jiang wrote: >> On 2017/5/23 0:51, Vlastimil Babka wrote: >>> On 05/20/2017 05:01 AM, zhong jiang wrote: On 2017/5/20 10:40, Hugh Dickins wrote: > On Sat, 20 May 2017, Xishi Qiu wrote: >> Here is a bug report

Re: mm, something wring in page_lock_anon_vma_read()?

2017-06-08 Thread Xishi Qiu
On 2017/5/23 17:33, Vlastimil Babka wrote: > On 05/23/2017 11:21 AM, zhong jiang wrote: >> On 2017/5/23 0:51, Vlastimil Babka wrote: >>> On 05/20/2017 05:01 AM, zhong jiang wrote: On 2017/5/20 10:40, Hugh Dickins wrote: > On Sat, 20 May 2017, Xishi Qiu wrote: >> Here is a bug report

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-23 Thread zhong jiang
On 2017/5/23 17:33, Vlastimil Babka wrote: > On 05/23/2017 11:21 AM, zhong jiang wrote: >> On 2017/5/23 0:51, Vlastimil Babka wrote: >>> On 05/20/2017 05:01 AM, zhong jiang wrote: On 2017/5/20 10:40, Hugh Dickins wrote: > On Sat, 20 May 2017, Xishi Qiu wrote: >> Here is a bug report

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-23 Thread zhong jiang
On 2017/5/23 17:33, Vlastimil Babka wrote: > On 05/23/2017 11:21 AM, zhong jiang wrote: >> On 2017/5/23 0:51, Vlastimil Babka wrote: >>> On 05/20/2017 05:01 AM, zhong jiang wrote: On 2017/5/20 10:40, Hugh Dickins wrote: > On Sat, 20 May 2017, Xishi Qiu wrote: >> Here is a bug report

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-23 Thread Vlastimil Babka
On 05/23/2017 11:21 AM, zhong jiang wrote: > On 2017/5/23 0:51, Vlastimil Babka wrote: >> On 05/20/2017 05:01 AM, zhong jiang wrote: >>> On 2017/5/20 10:40, Hugh Dickins wrote: On Sat, 20 May 2017, Xishi Qiu wrote: > Here is a bug report form redhat: >

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-23 Thread Vlastimil Babka
On 05/23/2017 11:21 AM, zhong jiang wrote: > On 2017/5/23 0:51, Vlastimil Babka wrote: >> On 05/20/2017 05:01 AM, zhong jiang wrote: >>> On 2017/5/20 10:40, Hugh Dickins wrote: On Sat, 20 May 2017, Xishi Qiu wrote: > Here is a bug report form redhat: >

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-23 Thread zhong jiang
On 2017/5/23 0:51, Vlastimil Babka wrote: > On 05/20/2017 05:01 AM, zhong jiang wrote: >> On 2017/5/20 10:40, Hugh Dickins wrote: >>> On Sat, 20 May 2017, Xishi Qiu wrote: Here is a bug report form redhat: https://bugzilla.redhat.com/show_bug.cgi?id=1305620 And I meet the bug too.

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-23 Thread zhong jiang
On 2017/5/23 0:51, Vlastimil Babka wrote: > On 05/20/2017 05:01 AM, zhong jiang wrote: >> On 2017/5/20 10:40, Hugh Dickins wrote: >>> On Sat, 20 May 2017, Xishi Qiu wrote: Here is a bug report form redhat: https://bugzilla.redhat.com/show_bug.cgi?id=1305620 And I meet the bug too.

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-22 Thread Hugh Dickins
On Tue, 23 May 2017, Xishi Qiu wrote: > On 2017/5/23 3:26, Hugh Dickins wrote: > > I mean, there are various places in mm/memory.c which decide what they > > intend to do based on orig_pte, then take pte lock, then check that > > pte_same(pte, orig_pte) before taking it any further. If a

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-22 Thread Hugh Dickins
On Tue, 23 May 2017, Xishi Qiu wrote: > On 2017/5/23 3:26, Hugh Dickins wrote: > > I mean, there are various places in mm/memory.c which decide what they > > intend to do based on orig_pte, then take pte lock, then check that > > pte_same(pte, orig_pte) before taking it any further. If a

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-22 Thread Xishi Qiu
On 2017/5/23 3:26, Hugh Dickins wrote: > On Mon, 22 May 2017, Xishi Qiu wrote: >> On 2017/5/20 10:40, Hugh Dickins wrote: >>> On Sat, 20 May 2017, Xishi Qiu wrote: Here is a bug report form redhat: https://bugzilla.redhat.com/show_bug.cgi?id=1305620 And I meet the bug too.

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-22 Thread Xishi Qiu
On 2017/5/23 3:26, Hugh Dickins wrote: > On Mon, 22 May 2017, Xishi Qiu wrote: >> On 2017/5/20 10:40, Hugh Dickins wrote: >>> On Sat, 20 May 2017, Xishi Qiu wrote: Here is a bug report form redhat: https://bugzilla.redhat.com/show_bug.cgi?id=1305620 And I meet the bug too.

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-22 Thread Hugh Dickins
On Mon, 22 May 2017, Xishi Qiu wrote: > On 2017/5/20 10:40, Hugh Dickins wrote: > > On Sat, 20 May 2017, Xishi Qiu wrote: > >> > >> Here is a bug report form redhat: > >> https://bugzilla.redhat.com/show_bug.cgi?id=1305620 > >> And I meet the bug too. However it is hard to reproduce, and > >>

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-22 Thread Hugh Dickins
On Mon, 22 May 2017, Xishi Qiu wrote: > On 2017/5/20 10:40, Hugh Dickins wrote: > > On Sat, 20 May 2017, Xishi Qiu wrote: > >> > >> Here is a bug report form redhat: > >> https://bugzilla.redhat.com/show_bug.cgi?id=1305620 > >> And I meet the bug too. However it is hard to reproduce, and > >>

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-22 Thread Vlastimil Babka
On 05/20/2017 05:01 AM, zhong jiang wrote: > On 2017/5/20 10:40, Hugh Dickins wrote: >> On Sat, 20 May 2017, Xishi Qiu wrote: >>> Here is a bug report form redhat: >>> https://bugzilla.redhat.com/show_bug.cgi?id=1305620 >>> And I meet the bug too. However it is hard to reproduce, and >>>

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-22 Thread Vlastimil Babka
On 05/20/2017 05:01 AM, zhong jiang wrote: > On 2017/5/20 10:40, Hugh Dickins wrote: >> On Sat, 20 May 2017, Xishi Qiu wrote: >>> Here is a bug report form redhat: >>> https://bugzilla.redhat.com/show_bug.cgi?id=1305620 >>> And I meet the bug too. However it is hard to reproduce, and >>>

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-22 Thread Xishi Qiu
On 2017/5/20 10:40, Hugh Dickins wrote: > On Sat, 20 May 2017, Xishi Qiu wrote: >> >> Here is a bug report form redhat: >> https://bugzilla.redhat.com/show_bug.cgi?id=1305620 >> And I meet the bug too. However it is hard to reproduce, and >> 624483f3ea82598("mm: rmap: fix use-after-free in

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-22 Thread Xishi Qiu
On 2017/5/20 10:40, Hugh Dickins wrote: > On Sat, 20 May 2017, Xishi Qiu wrote: >> >> Here is a bug report form redhat: >> https://bugzilla.redhat.com/show_bug.cgi?id=1305620 >> And I meet the bug too. However it is hard to reproduce, and >> 624483f3ea82598("mm: rmap: fix use-after-free in

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-19 Thread zhong jiang
On 2017/5/20 10:40, Hugh Dickins wrote: > On Sat, 20 May 2017, Xishi Qiu wrote: >> Here is a bug report form redhat: >> https://bugzilla.redhat.com/show_bug.cgi?id=1305620 >> And I meet the bug too. However it is hard to reproduce, and >> 624483f3ea82598("mm: rmap: fix use-after-free in

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-19 Thread zhong jiang
On 2017/5/20 10:40, Hugh Dickins wrote: > On Sat, 20 May 2017, Xishi Qiu wrote: >> Here is a bug report form redhat: >> https://bugzilla.redhat.com/show_bug.cgi?id=1305620 >> And I meet the bug too. However it is hard to reproduce, and >> 624483f3ea82598("mm: rmap: fix use-after-free in

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-19 Thread Hugh Dickins
On Sat, 20 May 2017, Xishi Qiu wrote: > > Here is a bug report form redhat: > https://bugzilla.redhat.com/show_bug.cgi?id=1305620 > And I meet the bug too. However it is hard to reproduce, and > 624483f3ea82598("mm: rmap: fix use-after-free in __put_anon_vma") is not help. > > From the vmcore,

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-19 Thread Hugh Dickins
On Sat, 20 May 2017, Xishi Qiu wrote: > > Here is a bug report form redhat: > https://bugzilla.redhat.com/show_bug.cgi?id=1305620 > And I meet the bug too. However it is hard to reproduce, and > 624483f3ea82598("mm: rmap: fix use-after-free in __put_anon_vma") is not help. > > From the vmcore,

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-19 Thread Xishi Qiu
On 2017/5/20 10:02, Hugh Dickins wrote: > On Sat, 20 May 2017, Xishi Qiu wrote: >> On 2017/5/20 6:00, Hugh Dickins wrote: >>> >>> You're ignoring the rcu_read_lock() on entry to page_lock_anon_vma_read(), >>> and the SLAB_DESTROY_BY_RCU (recently renamed SLAB_TYPESAFE_BY_RCU) nature >>> of the

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-19 Thread Xishi Qiu
On 2017/5/20 10:02, Hugh Dickins wrote: > On Sat, 20 May 2017, Xishi Qiu wrote: >> On 2017/5/20 6:00, Hugh Dickins wrote: >>> >>> You're ignoring the rcu_read_lock() on entry to page_lock_anon_vma_read(), >>> and the SLAB_DESTROY_BY_RCU (recently renamed SLAB_TYPESAFE_BY_RCU) nature >>> of the

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-19 Thread Hugh Dickins
On Sat, 20 May 2017, Xishi Qiu wrote: > On 2017/5/20 6:00, Hugh Dickins wrote: > > > > You're ignoring the rcu_read_lock() on entry to page_lock_anon_vma_read(), > > and the SLAB_DESTROY_BY_RCU (recently renamed SLAB_TYPESAFE_BY_RCU) nature > > of the anon_vma_cachep kmem cache. It is not safe

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-19 Thread Hugh Dickins
On Sat, 20 May 2017, Xishi Qiu wrote: > On 2017/5/20 6:00, Hugh Dickins wrote: > > > > You're ignoring the rcu_read_lock() on entry to page_lock_anon_vma_read(), > > and the SLAB_DESTROY_BY_RCU (recently renamed SLAB_TYPESAFE_BY_RCU) nature > > of the anon_vma_cachep kmem cache. It is not safe

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-19 Thread Xishi Qiu
On 2017/5/20 6:00, Hugh Dickins wrote: > On Fri, 19 May 2017, Xishi Qiu wrote: >> On 2017/5/19 16:52, Xishi Qiu wrote: >>> On 2017/5/18 17:46, Xishi Qiu wrote: >>> Hi, my system triggers this bug, and the vmcore shows the anon_vma seems be freed. The kernel is RHEL 7.2, and the

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-19 Thread Xishi Qiu
On 2017/5/20 6:00, Hugh Dickins wrote: > On Fri, 19 May 2017, Xishi Qiu wrote: >> On 2017/5/19 16:52, Xishi Qiu wrote: >>> On 2017/5/18 17:46, Xishi Qiu wrote: >>> Hi, my system triggers this bug, and the vmcore shows the anon_vma seems be freed. The kernel is RHEL 7.2, and the

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-19 Thread Hugh Dickins
On Fri, 19 May 2017, Xishi Qiu wrote: > On 2017/5/19 16:52, Xishi Qiu wrote: > > On 2017/5/18 17:46, Xishi Qiu wrote: > > > >> Hi, my system triggers this bug, and the vmcore shows the anon_vma seems > >> be freed. > >> The kernel is RHEL 7.2, and the bug is hard to reproduce, so I don't know >

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-19 Thread Hugh Dickins
On Fri, 19 May 2017, Xishi Qiu wrote: > On 2017/5/19 16:52, Xishi Qiu wrote: > > On 2017/5/18 17:46, Xishi Qiu wrote: > > > >> Hi, my system triggers this bug, and the vmcore shows the anon_vma seems > >> be freed. > >> The kernel is RHEL 7.2, and the bug is hard to reproduce, so I don't know >

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-19 Thread Xishi Qiu
On 2017/5/19 16:52, Xishi Qiu wrote: > On 2017/5/18 17:46, Xishi Qiu wrote: > >> Hi, my system triggers this bug, and the vmcore shows the anon_vma seems be >> freed. >> The kernel is RHEL 7.2, and the bug is hard to reproduce, so I don't know if >> it >> exists in mainline, any reply is

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-19 Thread Xishi Qiu
On 2017/5/19 16:52, Xishi Qiu wrote: > On 2017/5/18 17:46, Xishi Qiu wrote: > >> Hi, my system triggers this bug, and the vmcore shows the anon_vma seems be >> freed. >> The kernel is RHEL 7.2, and the bug is hard to reproduce, so I don't know if >> it >> exists in mainline, any reply is

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-19 Thread Xishi Qiu
On 2017/5/18 17:46, Xishi Qiu wrote: > Hi, my system triggers this bug, and the vmcore shows the anon_vma seems be > freed. > The kernel is RHEL 7.2, and the bug is hard to reproduce, so I don't know if > it > exists in mainline, any reply is welcome! > When we alloc anon_vma, we will init

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-19 Thread Xishi Qiu
On 2017/5/18 17:46, Xishi Qiu wrote: > Hi, my system triggers this bug, and the vmcore shows the anon_vma seems be > freed. > The kernel is RHEL 7.2, and the bug is hard to reproduce, so I don't know if > it > exists in mainline, any reply is welcome! > When we alloc anon_vma, we will init

mm, something wring in page_lock_anon_vma_read()?

2017-05-18 Thread Xishi Qiu
Hi, my system triggers this bug, and the vmcore shows the anon_vma seems be freed. The kernel is RHEL 7.2, and the bug is hard to reproduce, so I don't know if it exists in mainline, any reply is welcome! [35030.332666] general protection fault: [#1] SMP [35030.333016] Modules linked in:

mm, something wring in page_lock_anon_vma_read()?

2017-05-18 Thread Xishi Qiu
Hi, my system triggers this bug, and the vmcore shows the anon_vma seems be freed. The kernel is RHEL 7.2, and the bug is hard to reproduce, so I don't know if it exists in mainline, any reply is welcome! [35030.332666] general protection fault: [#1] SMP [35030.333016] Modules linked in: