Re: BUG at mm/vmscan.c:904 [mmotm 2009-07-02-19-57]

From: Minchan Kim
Date: Fri Jul 03 2009 - 05:12:34 EST


Hi, kame.

Andrew already reverted it.
It's totally my fault.
I'll fix it on tomorrow.

Thanks for notifying me. :)

On Fri, Jul 3, 2009 at 5:39 PM, KAMEZAWA
Hiroyuki<kamezawa.hiroyu@xxxxxxxxxxxxxx> wrote:
> On Fri, 03 Jul 2009 10:19:34 +0200
> Jiri Slaby <jirislaby@xxxxxxxxx> wrote:
>
>> Hi,
>>
>> I don't know what exactly lead to this, but I got it when installing a
>> kernel rpm (io load) in qemu:
>>
> IIUC....
>
> plz revert this.
>
> Âvmscan-dont-attempt-to-reclaim-anon-page-in-lumpy-reclaim-when-no-swap-space-is-available.patch
>
> or rewrite as following.
> ==
> + Â Â Â if (nr_swap_pages <= 0 && (PageAnon(page) && !PageSwapCache(page)))
> + Â Â Â Â Â Â Â return -EBUSY;
> +
> ==
>
> CCed to Minchan and Kosaki.
>
> Regards,
> -Kame
>
>
>
>> ------------[ cut here ]------------
>> kernel BUG at mm/vmscan.c:904!
>> invalid opcode: 0000 [#1] PREEMPT SMP
>> last sysfs file: /sys/devices/pci0000:00/0000:00:05.0/modalias
>> CPU 0
>> Modules linked in: e1000
>> Pid: 290, comm: kswapd0 Tainted: G Â Â Â AW Â2.6.31-rc1-mm1 #103
>> RIP: 0010:[<ffffffff81095c96>] Â[<ffffffff81095c96>]
>> isolate_pages_global+0x196/0x260
>> RSP: 0018:ffff880011943c40 ÂEFLAGS: 00010082
>> RAX: 00000000ffffffea RBX: ffffea0000050170 RCX: 0000000000000001
>> RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffffea0000050170
>> RBP: ffff880011943cd0 R08: 0000000000000001 R09: ffffffff81668b00
>> R10: 00000000ffffffff R11: 0000000000000001 R12: ffffffff81669060
>> R13: ffffea0000050198 R14: ffff880011943d50 R15: ffffffff81668b00
>> FS: Â0000000000000000(0000) GS:ffff88000176f000(0000) knlGS:0000000000000000
>> CS: Â0010 DS: 0018 ES: 0018 CR0: 000000008005003b
>> CR2: 00007f5d32981000 CR3: 0000000011adb000 CR4: 00000000000006f0
>> DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
>> DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
>> Process kswapd0 (pid: 290, threadinfo ffff880011942000, task
>> ffff88001254c840)
>> Stack:
>> Âffff880011943d68 0000000000000020 0000000000000030 000000020177f4b0
>> <0> 0000000000000003 000000008103329b 0000000000000001 ffffffffffffffff
>> <0> 0000000100000003 0000000000000000 0000000000000000 0000000000000000
>> Call Trace:
>> Â[<ffffffff81096ae6>] shrink_active_list+0xa6/0x330
>> Â[<ffffffff81032fe8>] ? task_rq_lock+0x48/0x90
>> Â[<ffffffff810985c0>] ? kswapd+0x0/0x770
>> Â[<ffffffff81098ab5>] kswapd+0x4f5/0x770
>> Â[<ffffffff81037177>] ? pick_next_task_fair+0xd7/0xf0
>> Â[<ffffffff810985c0>] ? kswapd+0x0/0x770
>> Â[<ffffffff81095b00>] ? isolate_pages_global+0x0/0x260
>> Â[<ffffffff8103f1ed>] ? default_wake_function+0xd/0x10
>> Â[<ffffffff8105aa30>] ? autoremove_wake_function+0x0/0x40
>> Â[<ffffffff813f9978>] ? preempt_schedule+0x38/0x60
>> Â[<ffffffff813fbb40>] ? _spin_unlock_irqrestore+0x30/0x40
>> Â[<ffffffff810985c0>] ? kswapd+0x0/0x770
>> Â[<ffffffff8105a6b6>] kthread+0x96/0xa0
>> Â[<ffffffff8100ceaa>] child_rip+0xa/0x20
>> Â[<ffffffff8105a620>] ? kthread+0x0/0xa0
>> Â[<ffffffff8100cea0>] ? child_rip+0x0/0x20
>> Code: 80 75 12 8b 55 bc 8b 75 b4 4c 89 ef e8 f4 f9 ff ff 85 c0 74 79 49
>> ff c7 49 83 c5 38 4c 39 7d 98 77 cf 48 ff 45 c8 e9 e9 fe ff ff <0f> 0b
>> eb fe 48 8b 53 30 48 8b 4b 28 48 8d 43 28 48 89 51 08 48
>> RIP Â[<ffffffff81095c96>] isolate_pages_global+0x196/0x260
>> ÂRSP <ffff880011943c40>
>> ---[ end trace fc1de39f3465335f ]---
>> note: kswapd0[290] exited with preempt_count 1
>>
>> --
>> To unsubscribe, send a message with 'unsubscribe linux-mm' in
>> the body to majordomo@xxxxxxxxxx ÂFor more info on Linux MM,
>> see: http://www.linux-mm.org/ .
>> Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>
>>
>
>



--
Kind regards,
Minchan Kim
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/