Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp40885imm; Thu, 30 Aug 2018 06:33:50 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYjmXmaiQjdaZlBJ2ESYEqildf7VrBrziifW2rt9SilwOB+1y04GJ5N5bgXn7RMjhizokjI X-Received: by 2002:a62:ad9:: with SMTP id 86-v6mr10593042pfk.57.1535636030306; Thu, 30 Aug 2018 06:33:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535636030; cv=none; d=google.com; s=arc-20160816; b=A6gw8pFuPj1Ih99Sz03tq9UMrMZIXgy/TE88/GjU+MeDf9bFnZ1Ub57ZG8MjgOR+Ol iwqa4w8tsEM0Tcf4O+2HCSl2QeHjyYTCmVEsKu28yWgyx3RxlFMB0oVztkSHdWJSS3RP yReyo443CSxm24bgy3mndtaCQRxrmWuNdIorIV9zQRC6pgEO0ZujnEKLQ1Tlm+1Sagvt xEFlwW2AmcQIohIk0I7pSmaDgueQUyVgFD8g1plFde7QTtW0xLzIEctwjPAixFFOqbef nQw73+SEuJcyGeRf1r4RjgkFYM1drzGp2Dusn+uIW3IGRZP/MpD8kT/OYTSO7R7Tdmzm c1Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature:arc-authentication-results; bh=g4Hn+3cjsIAt8ugpvtIzKipYKQ2n4pxdLr7S4AkQYyw=; b=oRByk+U6EREQl/taxGQFia91zI9raIjiW/5RcpPLItL7rCXRzNBjIR2ksJlycNGkEg 9cdS/RnkC8B1/HOn3uEcXYenfv1ytUUVR4o/F2/Q74M+woU/30K1q7aHtwFkT/cAlTnQ sXV8uwLoKccfuFti+42q3BfHnkEaEqT6Saeo21prRH0V4IcVtJAvlYV5wtLyWZdqHxdE y7VziIZkbtNC37FtnfeXYqNXVwVL8tI3fVSPx2kp99yHGFmzgB5xHC8IYX0BVSxEqMfi 1TXke3WSbAbP9GM17GVch+GDgctRaAQhbvIH4v4pz4nFSeUtcaF5/Qpz+q5m1CzkDnKF 42ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GnuqDRrb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c17-v6si6911678pgm.15.2018.08.30.06.33.33; Thu, 30 Aug 2018 06:33:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GnuqDRrb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728934AbeH3ReK (ORCPT + 99 others); Thu, 30 Aug 2018 13:34:10 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:37139 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728561AbeH3ReK (ORCPT ); Thu, 30 Aug 2018 13:34:10 -0400 Received: by mail-wr1-f68.google.com with SMTP id u12-v6so8073559wrr.4 for ; Thu, 30 Aug 2018 06:31:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=g4Hn+3cjsIAt8ugpvtIzKipYKQ2n4pxdLr7S4AkQYyw=; b=GnuqDRrbPSMJqIN3eGzi8qCJLBDr5G311+EBoSzNEMJVMWXBXFPnsbkTKvG3xa3vdI VOL72xAP3fC8XOz+kE0oMZwi61DPpxGWKr0J6lkQNl+qmDtPCN8jgBYeJgC+LlF/+Pf/ mjS0W7+T06/F/s+VLfiXOIkdFwlpHIFnYhHXLxmrGxIi3sXrp0KsrNkX1/Q5Y1SjL3/W w3L3krUF3dDB76hyVBt3ZAFjQqKFvxvTS58phQgqW/R6HgZRvBsNetEVNGgBp4zluTle C3WBa+/GGkBT0hfCPSLvMMSGjOHWrRvUgMZht5SQdYQxtmKuy8KnD/6n5RZPDaTFVhaR eqqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=g4Hn+3cjsIAt8ugpvtIzKipYKQ2n4pxdLr7S4AkQYyw=; b=ULf7aEL0xaFx4nBy1uBpKJdpmi+/HPw4+kNKSI+/AXTS1pliYgtqJjM/S+4KvP2Odd z7m/Un4F4UrmR2o/0OpvKzCTaiJEYhVgrXIsIbrvBJr7YEarbuXtOhzYN/ZYO2lgI3XP mQ02/FQA0Bqrubcd+aXQU2O3nVn+FKgYnlGSzdeUabiVBo8xxy/AbPRFI1aFZ5sV1fpq jkt2QOz5/NUAOeaBTSqb3Dh84CEmGu/mMqFOrojsOb/QIGR61YS18algDCq2fEcP/z2f Sak6dXWdyE/DIvbjsJ8hB9LaXXN3DnucglNEayRGITJl2hakJp02h36/AT9ANUxLlDtK 3Pcw== X-Gm-Message-State: APzg51D5RVww+K8ykBE0UBlyW3ZTVtXmjBePiRkE2gRRgHlj85EwsRGG u7GqNYgUnI9EzotJDBNsacU3n8JzDJcBTFdwP3QU0jaN X-Received: by 2002:adf:f608:: with SMTP id t8-v6mr7642101wrp.186.1535635918252; Thu, 30 Aug 2018 06:31:58 -0700 (PDT) MIME-Version: 1.0 From: Vegard Nossum Date: Thu, 30 Aug 2018 15:31:46 +0200 Message-ID: Subject: v4.18.0+ WARNING: at mm/vmscan.c:1756 isolate_lru_page + bad page state To: LKML , Linux Memory Management List Cc: Hugh Dickins , Mel Gorman Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Got this on a recent kernel (pretty sure it was 2ad0d52699700a91660a406a4046017a2d7f246a but annoyingly the oops itself doesn't tell me the exact version): ------------[ cut here ]------------ trying to isolate tail page WARNING: CPU: 2 PID: 19156 at mm/vmscan.c:1756 isolate_lru_page+0x235/0x250 CPU: 2 PID: 19156 Comm: mmap Not tainted 4.18.0+ #493 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Ubuntu-1.8.2-1ubuntu1 04/01/2014 RIP: 0010:isolate_lru_page+0x235/0x250 Code: fe ff ff 48 c7 c6 80 73 43 82 48 c7 c7 60 27 a9 82 e8 3f 40 c9 00 85 c0 0f 84 f4 fd ff ff 48 c7 c7 a5 ba 75 82 e8 6b 59 ed ff <0f> 0b e9 e1 fd ff ff 49 c7 c7 00 fe ff ff 44 89 7c 24 04 e9 ed fe RSP: 0018:ffffc90008edbc20 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffffea00082fd000 RCX: 0000000000000002 RDX: 0000000080000002 RSI: 0000000000000002 RDI: 00000000ffffffff RBP: ffff8803a157ea00 R08: 0000000000000001 R09: 0000000000000000 R10: ffffffff82e456dc R11: 0000000000000001 R12: ffffea00082fd000 R13: 800000020bf40805 R14: 00007fe50f341000 R15: ffffc90008edbdd8 FS: 0000000000000000(0000) GS:ffff88042fb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000580fb8 CR3: 0000000002a1e004 CR4: 00000000000606e0 Call Trace: clear_page_mlock+0x73/0xb0 page_remove_rmap+0x31e/0x370 unmap_page_range+0x70b/0xa40 unmap_vmas+0x47/0x90 exit_mmap+0xb0/0x1c0 mmput+0x5d/0x130 do_exit+0x2c2/0xc20 do_group_exit+0x42/0xb0 __x64_sys_exit_group+0xf/0x10 do_syscall_64+0x57/0x170 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x501ad8 Code: Bad RIP value. RSP: 002b:00007fff9bb8dee8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000501ad8 RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 RBP: 000000000059b4a0 R08: 00000000000000e7 R09: ffffffffffffffc8 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00000000007d7860 R14: 0000000000027150 R15: 00007fff9bb8e0c0 ---[ end trace d3ada49968979043 ]--- ------------[ cut here ]------------ list_del corruption, ffffea00082fd008->prev is LIST_POISON2 (dead000000000200) WARNING: CPU: 2 PID: 19156 at lib/list_debug.c:50 __list_del_entry_valid+0x62/0x90 CPU: 2 PID: 19156 Comm: mmap Tainted: G W 4.18.0+ #493 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Ubuntu-1.8.2-1ubuntu1 04/01/2014 RIP: 0010:__list_del_entry_valid+0x62/0x90 Code: 00 00 00 c3 48 89 fe 48 89 c2 48 c7 c7 f0 b3 79 82 e8 d2 84 b1 ff 0f 0b 31 c0 c3 48 89 fe 48 c7 c7 28 b4 79 82 e8 be 84 b1 ff <0f> 0b 31 c0 c3 48 89 fe 48 c7 c7 60 b4 79 82 e8 aa 84 b1 ff 0f 0b RSP: 0018:ffffc90008edbc18 EFLAGS: 00010086 RAX: 0000000000000000 RBX: ffffea00082fd000 RCX: 0000000000000003 RDX: 0000000000000003 RSI: 0000000000000003 RDI: 00000000ffffffff RBP: ffff88043fff0d00 R08: 0000000000000001 R09: 0000000000000000 R10: ffff8802794a60c8 R11: 0000000000000001 R12: 0000000000000004 R13: ffff88042f4ae800 R14: 0000000000000005 R15: ffffc90008edbdd8 FS: 0000000000000000(0000) GS:ffff88042fb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000501aae CR3: 0000000002a1e004 CR4: 00000000000606e0 Call Trace: isolate_lru_page+0xf3/0x250 clear_page_mlock+0x73/0xb0 page_remove_rmap+0x31e/0x370 unmap_page_range+0x70b/0xa40 unmap_vmas+0x47/0x90 exit_mmap+0xb0/0x1c0 mmput+0x5d/0x130 do_exit+0x2c2/0xc20 do_group_exit+0x42/0xb0 __x64_sys_exit_group+0xf/0x10 do_syscall_64+0x57/0x170 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x501ad8 Code: Bad RIP value. RSP: 002b:00007fff9bb8dee8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000501ad8 RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 RBP: 000000000059b4a0 R08: 00000000000000e7 R09: ffffffffffffffc8 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00000000007d7860 R14: 0000000000027150 R15: 00007fff9bb8e0c0 ---[ end trace d3ada49968979044 ]--- BUG: Bad page state in process mmap pfn:20bf40 page:ffffea00082fd000 count:0 mapcount:0 mapping:dead000000000400 index:0x1 flags: 0x400000000000000() raw: 0400000000000000 dead000000000100 dead000000000200 dead000000000400 raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: non-NULL mapping CPU: 2 PID: 19156 Comm: mmap Tainted: G W 4.18.0+ #493 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Ubuntu-1.8.2-1ubuntu1 04/01/2014 Call Trace: dump_stack+0x5c/0x7b bad_page+0xb3/0x110 free_pcppages_bulk+0x17b/0x7e0 free_unref_page+0x4a/0x60 zap_huge_pmd+0x204/0x360 unmap_page_range+0x970/0xa40 unmap_vmas+0x47/0x90 exit_mmap+0xb0/0x1c0 mmput+0x5d/0x130 do_exit+0x2c2/0xc20 do_group_exit+0x42/0xb0 __x64_sys_exit_group+0xf/0x10 do_syscall_64+0x57/0x170 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x501ad8 Code: Bad RIP value. RSP: 002b:00007fff9bb8dee8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000501ad8 RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 RBP: 000000000059b4a0 R08: 00000000000000e7 R09: ffffffffffffffc8 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00000000007d7860 R14: 0000000000027150 R15: 00007fff9bb8e0c0 Disabling lock debugging due to kernel taint general protection fault: 0000 [#1] PREEMPT SMP PTI CPU: 2 PID: 19156 Comm: mmap Tainted: G B W 4.18.0+ #493 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Ubuntu-1.8.2-1ubuntu1 04/01/2014 RIP: 0010:page_evictable+0x38/0x90 Code: 81 31 d2 45 31 c9 45 31 c0 31 f6 b9 02 00 00 00 48 c7 c7 a0 79 a7 82 e8 b6 6e f2 ff 48 89 ef e8 ce be 00 00 48 85 c0 5a 74 2f <48> 8b 80 08 01 00 00 31 db a8 08 74 22 e8 b6 27 f4 ff 48 c7 c2 a5 RSP: 0018:ffffc90008edbc98 EFLAGS: 00010086 RAX: dead000000000400 RBX: ffffea00082fd000 RCX: 0000000000000000 RDX: ffffffff811fff60 RSI: 0000000000000000 RDI: ffffea00082fd000 RBP: ffffea00082fd000 R08: 0000000000000001 R09: 0000000000000000 R10: ffff8802794a5900 R11: 0000000000000000 R12: ffffea00082fd000 R13: ffff88042f4ae800 R14: 0000000000000000 R15: ffffffff811f8b30 FS: 0000000000991900(0000) GS:ffff88042fb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000501aae CR3: 0000000002a1e004 CR4: 00000000000606e0 Call Trace: __pagevec_lru_add_fn+0x53/0x320 ? __put_compound_page+0x30/0x30 pagevec_lru_move_fn+0x83/0xd0 lru_add_drain_cpu+0xdb/0xf0 lru_add_drain+0x16/0x40 free_pages_and_swap_cache+0x13/0xb0 tlb_flush_mmu_free+0x2c/0x50 arch_tlb_finish_mmu+0x3d/0x70 tlb_finish_mmu+0x1a/0x30 exit_mmap+0xd8/0x1c0 mmput+0x5d/0x130 do_exit+0x2c2/0xc20 do_group_exit+0x42/0xb0 __x64_sys_exit_group+0xf/0x10 do_syscall_64+0x57/0x170 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x501ad8 Code: Bad RIP value. RSP: 002b:00007fff9bb8dee8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000501ad8 RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 RBP: 000000000059b4a0 R08: 00000000000000e7 R09: ffffffffffffffc8 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00000000007d7860 R14: 0000000000027150 R15: 00007fff9bb8e0c0 Dumping ftrace buffer: (ftrace buffer empty) ---[ end trace d3ada49968979045 ]--- RIP: 0010:page_evictable+0x38/0x90 Code: 81 31 d2 45 31 c9 45 31 c0 31 f6 b9 02 00 00 00 48 c7 c7 a0 79 a7 82 e8 b6 6e f2 ff 48 89 ef e8 ce be 00 00 48 85 c0 5a 74 2f <48> 8b 80 08 01 00 00 31 db a8 08 74 22 e8 b6 27 f4 ff 48 c7 c2 a5 RSP: 0018:ffffc90008edbc98 EFLAGS: 00010086 RAX: dead000000000400 RBX: ffffea00082fd000 RCX: 0000000000000000 RDX: ffffffff811fff60 RSI: 0000000000000000 RDI: ffffea00082fd000 RBP: ffffea00082fd000 R08: 0000000000000001 R09: 0000000000000000 R10: ffff8802794a5900 R11: 0000000000000000 R12: ffffea00082fd000 R13: ffff88042f4ae800 R14: 0000000000000000 R15: ffffffff811f8b30 FS: 0000000000991900(0000) GS:ffff88042fb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000501aae CR3: 0000000002a1e004 CR4: 00000000000606e0 Kernel panic - not syncing: Fatal exception Dumping ftrace buffer: (ftrace buffer empty) Kernel Offset: disabled I don't have the capacity to debug it atm and it may even have been fixed in mainline (though searching didn't yield any other reports AFAICT). I have .config and vmlinux (with DEBUG_INFO=y) if needed. It's not reproducible for the time being. Vegard