Re: [PATCH] mm: dump page when hitting a VM_BUG_ON using VM_BUG_ON_PAGE fix

2013-12-30 Thread Kirill A. Shutemov
On Fri, Dec 27, 2013 at 05:40:18PM -0500, Sasha Levin wrote: > I messed up and forgot to commit this fix before sending out the original > patch. > > It fixes build issues in various files using VM_BUG_ON_PAGE. With the patch applied I see this: CC kernel/bounds.s In file included from /

Re: [PATCH] mm: dump page when hitting a VM_BUG_ON using VM_BUG_ON_PAGE

2013-12-27 Thread Sasha Levin
On 12/26/2013 10:20 PM, Sasha Levin wrote: Most of the VM_BUG_ON assertions are performed on a page. Usually, when one of these assertions fails we'll get a BUG_ON with a call stack and the registers. I've recently noticed based on the requests to add a small piece of code that dumps the page to

[PATCH] mm: dump page when hitting a VM_BUG_ON using VM_BUG_ON_PAGE fix

2013-12-27 Thread Sasha Levin
I messed up and forgot to commit this fix before sending out the original patch. It fixes build issues in various files using VM_BUG_ON_PAGE. Signed-off-by: Sasha Levin --- include/linux/mmdebug.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/mmdebug.h b/include/linux/mmdebu

Re: [PATCH] mm: dump page when hitting a VM_BUG_ON using VM_BUG_ON_PAGE

2013-12-27 Thread Andrew Morton
On Fri, 27 Dec 2013 17:19:44 -0500 Sasha Levin wrote: > On 12/27/2013 05:38 AM, Kirill A. Shutemov wrote: > > On Thu, Dec 26, 2013 at 10:20:52PM -0500, Sasha Levin wrote: > >> Most of the VM_BUG_ON assertions are performed on a page. Usually, when > >> one of these assertions fails we'll get a BU

Re: [PATCH] mm: dump page when hitting a VM_BUG_ON using VM_BUG_ON_PAGE

2013-12-27 Thread Sasha Levin
On 12/27/2013 05:38 AM, Kirill A. Shutemov wrote: On Thu, Dec 26, 2013 at 10:20:52PM -0500, Sasha Levin wrote: Most of the VM_BUG_ON assertions are performed on a page. Usually, when one of these assertions fails we'll get a BUG_ON with a call stack and the registers. I've recently noticed base

Re: [PATCH] mm: dump page when hitting a VM_BUG_ON using VM_BUG_ON_PAGE

2013-12-27 Thread Kirill A. Shutemov
On Thu, Dec 26, 2013 at 10:20:52PM -0500, Sasha Levin wrote: > Most of the VM_BUG_ON assertions are performed on a page. Usually, when > one of these assertions fails we'll get a BUG_ON with a call stack and > the registers. > > I've recently noticed based on the requests to add a small piece of c

[PATCH] mm: dump page when hitting a VM_BUG_ON using VM_BUG_ON_PAGE

2013-12-26 Thread Sasha Levin
Most of the VM_BUG_ON assertions are performed on a page. Usually, when one of these assertions fails we'll get a BUG_ON with a call stack and the registers. I've recently noticed based on the requests to add a small piece of code that dumps the page to various VM_BUG_ON sites that the page dump i