Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757322AbcJHIGC (ORCPT ); Sat, 8 Oct 2016 04:06:02 -0400 Received: from out0-129.mail.aliyun.com ([140.205.0.129]:56736 "EHLO out0-129.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754364AbcJHIFq (ORCPT ); Sat, 8 Oct 2016 04:05:46 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e02c03301;MF=hillf.zj@alibaba-inc.com;NM=1;PH=DS;RN=3;SR=0;TI=SMTPD_---.71cNoaz_1475913927; Reply-To: "Hillf Danton" From: "Hillf Danton" To: "'Chris Friesen'" , "'lkml'" , References: <57F6BB8F.7070208@windriver.com> In-Reply-To: <57F6BB8F.7070208@windriver.com> Subject: Re: "swap_free: Bad swap file entry" and "BUG: Bad page map in process" but no swap configured Date: Sat, 08 Oct 2016 16:05:27 +0800 Message-ID: <018601d2213a$bb0e44e0$312acea0$@alibaba-inc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQEr1whmiaeo0rcsCOeVU96I01RpEKHqwizQ Content-Language: zh-cn Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2819 Lines: 50 On Friday, October 07, 2016 5:01 AM Chris Friesen > > I have Linux host running as a kvm hypervisor. It's running CentOS. (So the > kernel is based on 3.10 but with loads of stuff backported by RedHat.) I > realize this is not a mainline kernel, but I was wondering if anyone is aware of > similar issues that had been fixed in mainline. > Hey, dunno if you're looking for commit 6dec97dc929 ("mm: move_ptes -- Set soft dirty bit depending on pte type") Hillf > When doing a bunch of live migrations eventually I hit a bunch of errors that > look like this. > > 2016-10-03T23:13:54.017 controller-1 kernel: err [247517.457614] swap_free: Bad > swap file entry 001fe858 > 2016-10-03T23:13:54.017 controller-1 kernel: alert [247517.463191] BUG: Bad page > map in process qemu-kvm pte:3fd0b000 pmd:4557cb067 > 2016-10-03T23:13:54.017 controller-1 kernel: alert [247517.471352] > addr:00007fefa9be4000 vm_flags:00100073 anon_vma:ffff88043f87ff80 mapping: > (null) index:7fefa9be4 > 2016-10-03T23:13:54.017 controller-1 kernel: warning [247517.483510] CPU: 0 PID: > 154525 Comm: qemu-kvm Tainted: G OE ------------ > 3.10.0-327.28.3.7.tis.x86_64 #1 > 2016-10-03T23:13:54.017 controller-1 kernel: warning [247517.483513] Hardware > name: Intel Corporation S2600WT2R/S2600WT2R, BIOS > SE5C610.86B.01.01.0016.033120161139 03/31/2016 > 2016-10-03T23:13:54.017 controller-1 kernel: warning [247517.483516] > 00007fefa9be4000 0000000007795eb9 ffff88044007bc60 ffffffff81670503 > 2016-10-03T23:13:54.017 controller-1 kernel: warning [247517.483524] > ffff88044007bca8 ffffffff8115e70f 000000003fd0b000 00000007fefa9be4 > 2016-10-03T23:13:54.017 controller-1 kernel: warning [247517.483531] > ffff8804557cbf20 000000003fd0b000 00007fefa9c00000 00007fefa9be4000 > 2016-10-03T23:13:54.017 controller-1 kernel: warning [247517.483538] Call Trace: > 2016-10-03T23:13:54.017 controller-1 kernel: warning [247517.483548] > [] dump_stack+0x19/0x1b > 2016-10-03T23:13:54.017 controller-1 kernel: warning [247517.483553] > [] print_bad_pte+0x1af/0x250 > 2016-10-03T23:13:54.017 controller-1 kernel: warning [247517.483557] > [] unmap_page_range+0x5a0/0x7f0 > 2016-10-03T23:13:54.017 controller-1 kernel: warning [247517.483561] > [] unmap_single_vma+0x59/0xd0 > 2016-10-03T23:13:54.017 controller-1 kernel: warning [247517.483564] > [] zap_page_range+0x105/0x170 > 2016-10-03T23:13:54.017 controller-1 kernel: warning [247517.483568] > [] SyS_madvise+0x3bc/0x7d0 > 2016-10-03T23:13:54.017 controller-1 kernel: warning [247517.483573] > [] ? SyS_futex+0x80/0x180 > 2016-10-03T23:13:54.017 controller-1 kernel: warning [247517.483577] > [] system_call_fastpath+0x16/0x1b >