From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: kernel BUG at mm/swapfile.c:2524 Date: Thu, 21 Apr 2011 11:14:53 -0400 Message-ID: <20110421151453.GA25745@dumpdata.com> References: <20110407135009.GA7258@dumpdata.com> <3FC940A3-FD29-40E9-8F09-E43D77B6E6F2@linode.com> <4DB045F6.9080301@theshore.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <4DB045F6.9080301@theshore.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Christopher S. Aker" Cc: xen-devel@lists.xensource.com, Peter Sandin List-Id: xen-devel@lists.xenproject.org On Thu, Apr 21, 2011 at 10:57:58AM -0400, Christopher S. Aker wrote: > We're still getting reports of this occurring with 2.6.38 domU. Darn. I was hoping it would have just disappeared on its own :-) > Here's a fresh one: > > ------------[ cut here ]------------ > kernel BUG at mm/swapfile.c:2524! > invalid opcode: 0000 [#1] SMP > last sysfs file: /sys/kernel/uevent_seqnum > Modules linked in: > > Pid: 12589, comm: apache2 Not tainted 2.6.38-linode31 #1 > EIP: 0061:[] EFLAGS: 00210246 CPU: 0 > EIP is at swap_count_continued+0x176/0x180 > EAX: f57ba6c3 EBX: ed3af500 ECX: f57ba000 EDX: 00000000 > ESI: ed3c5280 EDI: 00000080 EBP: 000006c3 ESP: d4bcde30 > DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0069 > Process apache2 (pid: 12589, ti=d4bcc000 task=ec9c17d0 task.ti=d4bcc000) > Stack: > ec03c4c0 000166c3 00000000 00000000 c01a37b1 b7d63000 ec03c4c0 000166c3 > 00000000 c01a5b67 b7d63000 b7e00000 eae67b18 c0196296 6bb30067 80000006 > c01039c6 0000000c 00000000 00000000 002cd860 0006c92f d0374df0 d17b3040 > Call Trace: > [] ? swap_entry_free+0xf1/0x120 > [] ? free_swap_and_cache+0x27/0xd0 > [] ? unmap_vmas+0x3d6/0x820 > [] ? __raw_callee_save_xen_make_pte+0x6/0x8 > [] ? exit_mmap+0x91/0x140 > [] ? mmput+0x2b/0xc0 > [] ? exit_mm+0xe7/0x120 > [] ? _raw_spin_lock_irq+0x10/0x20 > [] ? do_exit+0x10a/0x6e0 > [] ? do_group_exit+0x3c/0xa0 > [] ? sys_exit_group+0x11/0x20 > [] ? syscall_call+0x7/0xb > [] ? sctp_sockaddr_af+0x20/0x90 > Code: ff 89 d8 e8 cd f7 f7 ff 01 e8 8d 76 00 c6 00 00 ba 01 00 00 00 > eb b2 89 f8 3c 80 0f 94 c0 e9 b9 fe ff ff 0f 0b e > b fe 0f 0b eb fe <0f> 0b eb fe 0f 0b eb fe 66 90 83 ec 10 89 1c 24 > 89 c3 89 74 24 > EIP: [] swap_count_continued+0x176/0x180 SS:ESP 0069:d4bcde30 > ---[ end trace f3fdefcfb4d8b5dc ]--- > Fixing recursive fault but reboot is needed! > BUG: scheduling while atomic: apache2/12589/0x00000001 > Modules linked in: > Pid: 12589, comm: apache2 Tainted: G D 2.6.38-linode31 #1 Aaah, so another HTTP server. How can I reproduce this? > Call Trace: > > [] ? schedule+0x6a9/0x8b0 > [] ? xen_restore_fl_direct_end+0x0/0x1 > [] ? _raw_spin_unlock_irqrestore+0x11/0x20 > [] ? console_unlock+0x1c3/0x200 > [] ? vprintk+0x17f/0x3c0 > [] ? do_exit+0x5bf/0x6e0 > [] ? _raw_spin_lock_irqsave+0x27/0x40 > [] ? _raw_spin_unlock_irqrestore+0x11/0x20 > [] ? kmsg_dump+0x36/0xf0 > [] ? do_invalid_op+0x0/0x90 > [] ? do_invalid_op+0x0/0x90 > [] ? oops_end+0x71/0xa0 > [] ? do_invalid_op+0x7f/0x90 > [] ? swap_count_continued+0x176/0x180 > [] ? handle_IRQ_event+0x55/0xc0 > [] ? xen_force_evtchn_callback+0x17/0x30 > [] ? __do_softirq+0x0/0x130 > [] ? check_events+0x8/0xc > [] ? xen_restore_fl_direct_end+0x0/0x1 > [] ? do_softirq+0x42/0xb0 > [] ? error_code+0x5a/0x60 > [] ? __change_page_attr_set_clr+0xa2b/0xb40 > [] ? do_invalid_op+0x0/0x90 > [] ? swap_count_continued+0x176/0x180 > [] ? swap_entry_free+0xf1/0x120 > [] ? free_swap_and_cache+0x27/0xd0 So back to unmap_vmas. I wonder if we are missing the lazy_unmap flag in 2.6.38. > [] ? unmap_vmas+0x3d6/0x820 > [] ? __raw_callee_save_xen_make_pte+0x6/0x8 > [] ? exit_mmap+0x91/0x140 > [] ? mmput+0x2b/0xc0 > [] ? exit_mm+0xe7/0x120 > [] ? _raw_spin_lock_irq+0x10/0x20 > [] ? do_exit+0x10a/0x6e0 > [] ? do_group_exit+0x3c/0xa0 > [] ? sys_exit_group+0x11/0x20 > [] ? syscall_call+0x7/0xb > [] ? sctp_sockaddr_af+0x20/0x90 > > -Chris > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel