linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* BUG at mm/huge_memory.c:1428!
@ 2012-09-13 18:14 Jiri Slaby
  2012-09-13 22:46 ` Michel Lespinasse
  0 siblings, 1 reply; 4+ messages in thread
From: Jiri Slaby @ 2012-09-13 18:14 UTC (permalink / raw)
  To: linux-mm; +Cc: LKML, Andrea Arcangeli, Jiri Slaby

Hi,

I've just get the following BUG with today's -next. It happens every
time I try to update packages.

kernel BUG at mm/huge_memory.c:1428!
invalid opcode: 0000 [#1] SMP
Modules linked in:
CPU 1
Pid: 3087, comm: zypper Tainted: G        W
3.6.0-rc5-next-20120913_64+ #45 Bochs Bochs
RIP: 0010:[<ffffffff81125b04>]  [<ffffffff81125b04>]
split_huge_page+0x6d4/0x830
RSP: 0018:ffff880046223ce8  EFLAGS: 00010296
RAX: 000000000000002f RBX: ffff880043e9d170 RCX: 00000000000000dc
RDX: 000000000000004c RSI: 0000000000000046 RDI: ffffffff81b3c05c
RBP: ffff880046223d58 R08: 000000000000000a R09: 00000000000001b0
R10: 0000000000000000 R11: 00000000000001af R12: 0000000000000000
R13: ffffea0000e60000 R14: 00007f7ff561a000 R15: ffff8800453aa880
FS:  00007f8000069800(0000) GS:ffff880049700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000003611000 CR3: 000000004506e000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process zypper (pid: 3087, threadinfo ffff880046222000, task
ffff880043cf5330)
Stack:
 ffff880047810480 ffff880043ee1980 ffff880047808c40 ffff880043ee19b0
 ffff880046223dc8 0000000000000296 00007f7ff581a000 00000007f7ff561a
 ffffffff8110e8c1 ffffea0000e60000 ffff8800453aa880 ffff88004635abd0
Call Trace:
 [<ffffffff8110e8c1>] ? anon_vma_clone+0x41/0x140
 [<ffffffff8112690f>] __split_huge_page_pmd+0x5f/0xb0
 [<ffffffff811269d5>] split_huge_page_address+0x75/0x80
 [<ffffffff81126a7b>] __vma_adjust_trans_huge+0x9b/0xf0
 [<ffffffff81109064>] vma_adjust+0x564/0x5d0
 [<ffffffff8110929b>] __split_vma.isra.34+0x1cb/0x1e0
 [<ffffffff81109c25>] do_munmap+0xf5/0x400
 [<ffffffff8110ccdb>] sys_mremap+0x2fb/0x520
 [<ffffffff81061ff9>] ? do_page_fault+0x9/0x10
 [<ffffffff8160fa62>] system_call_fastpath+0x16/0x1b
Code: 4e 00 0f 0b f3 90 49 8b 45 00 a9 00 00 80 00 75 f3 e9 de fa ff ff
48 c7 c6 18 58 94 81 48 c7 c7 49 ba 92 81 31 c0 e8 b6 07 4e 00 <0f> 0b
41 8b 55 18 48 c7 c7 f8 57 94 81 31 c0 8b 75 bc 83 c2 01

thanks,
-- 
js
suse labs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BUG at mm/huge_memory.c:1428!
  2012-09-13 18:14 BUG at mm/huge_memory.c:1428! Jiri Slaby
@ 2012-09-13 22:46 ` Michel Lespinasse
  2012-09-14 19:28   ` Jiri Slaby
  0 siblings, 1 reply; 4+ messages in thread
From: Michel Lespinasse @ 2012-09-13 22:46 UTC (permalink / raw)
  To: Jiri Slaby; +Cc: linux-mm, LKML, Andrea Arcangeli, Jiri Slaby

On Thu, Sep 13, 2012 at 11:14 AM, Jiri Slaby <jslaby@suse.cz> wrote:
> Hi,
>
> I've just get the following BUG with today's -next. It happens every
> time I try to update packages.
>
> kernel BUG at mm/huge_memory.c:1428!

That is very likely my bug.

Do you have the message that should be printed right above the bug ?
(                printk(KERN_ERR "mapcount %d page_mapcount %d\n",
                       mapcount, page_mapcount(page));
)

Do you get any errors if building with CONFIG_DEBUG_VM and CONFIG_DEBUG_VM_RB ?

Does it go away if you revert "mm: avoid taking rmap locks in
move_ptes()" (cc0eac2e50f036d4d798b18679ca2ae3c4828105 in the -next
version I have here) ?

-- 
Michel "Walken" Lespinasse
A program is never fully debugged until the last user dies.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BUG at mm/huge_memory.c:1428!
  2012-09-13 22:46 ` Michel Lespinasse
@ 2012-09-14 19:28   ` Jiri Slaby
  2012-09-17 15:39     ` Jiri Slaby
  0 siblings, 1 reply; 4+ messages in thread
From: Jiri Slaby @ 2012-09-14 19:28 UTC (permalink / raw)
  To: Michel Lespinasse; +Cc: linux-mm, LKML, Andrea Arcangeli, Jiri Slaby

On 09/14/2012 12:46 AM, Michel Lespinasse wrote:
> On Thu, Sep 13, 2012 at 11:14 AM, Jiri Slaby <jslaby@suse.cz> wrote:
>> Hi,
>>
>> I've just get the following BUG with today's -next. It happens every
>> time I try to update packages.
>>
>> kernel BUG at mm/huge_memory.c:1428!
> 
> That is very likely my bug.
> 
> Do you have the message that should be printed right above the bug ?
> (                printk(KERN_ERR "mapcount %d page_mapcount %d\n",
>                        mapcount, page_mapcount(page));
> )

Unfortunately no. And I cannot reproduce anymore :(...

thanks,
-- 
js
suse labs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: BUG at mm/huge_memory.c:1428!
  2012-09-14 19:28   ` Jiri Slaby
@ 2012-09-17 15:39     ` Jiri Slaby
  0 siblings, 0 replies; 4+ messages in thread
From: Jiri Slaby @ 2012-09-17 15:39 UTC (permalink / raw)
  To: Michel Lespinasse; +Cc: linux-mm, LKML, Andrea Arcangeli, Jiri Slaby

On 09/14/2012 09:28 PM, Jiri Slaby wrote:
> On 09/14/2012 12:46 AM, Michel Lespinasse wrote:
>> On Thu, Sep 13, 2012 at 11:14 AM, Jiri Slaby <jslaby@suse.cz> wrote:
>>> Hi,
>>>
>>> I've just get the following BUG with today's -next. It happens every
>>> time I try to update packages.
>>>
>>> kernel BUG at mm/huge_memory.c:1428!
>>
>> That is very likely my bug.
>>
>> Do you have the message that should be printed right above the bug ?
>> (                printk(KERN_ERR "mapcount %d page_mapcount %d\n",
>>                        mapcount, page_mapcount(page));
>> )
> 
> Unfortunately no. And I cannot reproduce anymore :(...

FWIW: mapcount 0 page_mapcount 1

It happened today. Now I'm going to apply your patch.

> thanks,
-- 
js
suse labs

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-09-17 15:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-13 18:14 BUG at mm/huge_memory.c:1428! Jiri Slaby
2012-09-13 22:46 ` Michel Lespinasse
2012-09-14 19:28   ` Jiri Slaby
2012-09-17 15:39     ` Jiri Slaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).