Re: mm: ksm: deadlock in oom killing process while breaking ksm pages

2015-10-06 Thread Hugh Dickins
On Mon, 5 Oct 2015, Hugh Dickins wrote: > On Thu, 1 Oct 2015, Sasha Levin wrote: > > > Hi Hugh, > > > > I've hit this (actual) lockup during testing. It seems that we were trying > > to allocate > > a new page to break KSM on an existing page, ended up in the oom killer who > > killed our > > p

Re: mm: ksm: deadlock in oom killing process while breaking ksm pages

2015-10-05 Thread Hugh Dickins
On Thu, 1 Oct 2015, Sasha Levin wrote: > Hi Hugh, > > I've hit this (actual) lockup during testing. It seems that we were trying to > allocate > a new page to break KSM on an existing page, ended up in the oom killer who > killed our > process, and locked up in __ksm_exit() trying to get a writ

mm: ksm: deadlock in oom killing process while breaking ksm pages

2015-10-01 Thread Sasha Levin
Hi Hugh, I've hit this (actual) lockup during testing. It seems that we were trying to allocate a new page to break KSM on an existing page, ended up in the oom killer who killed our process, and locked up in __ksm_exit() trying to get a write lock while already holding a read lock. A very sim