From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9E169C433EF for ; Wed, 22 Sep 2021 20:37:28 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 203F461019 for ; Wed, 22 Sep 2021 20:37:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 203F461019 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 9623A6B006C; Wed, 22 Sep 2021 16:37:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9126D6B0071; Wed, 22 Sep 2021 16:37:27 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8286B900002; Wed, 22 Sep 2021 16:37:27 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0024.hostedemail.com [216.40.44.24]) by kanga.kvack.org (Postfix) with ESMTP id 746D06B006C for ; Wed, 22 Sep 2021 16:37:27 -0400 (EDT) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 1AE5282499B9 for ; Wed, 22 Sep 2021 20:37:27 +0000 (UTC) X-FDA: 78616369734.14.DF8B1F9 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) by imf08.hostedemail.com (Postfix) with ESMTP id C9D5230000A9 for ; Wed, 22 Sep 2021 20:37:26 +0000 (UTC) Received: by mail-ed1-f43.google.com with SMTP id v22so14306961edd.11 for ; Wed, 22 Sep 2021 13:37:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qhR4BBPrkbqBPDREiZkyVSMc0RaquplEP+Rg3q+eWXU=; b=BpSz+zinLVgEW81plHtbJ6/OM5mmbULUAR/9nhwvKiCPCgPkj9ce3UNEwXrXAfmUtg IoSV2j4WrfvaksSSyDXTFezEwDuEFXqUqGT15kxq5ZExSQAiT3+B3RDYHU+TqO4zaS8U JRRgZO0hhu2I/7vUNP97XzT6K+AvYjQKx/F1PmKti7JLGFKw1lGgWcdfu+XNrO/ir+HK 0kJNzQKaoMNra1TnQZZKbcOLmlQcNEuP+1W3hLTnxGwDO8cMVZ5KRbbkFtgmV54wWrHK lXI87M5yS2SEcLoVR3VRWoU1HZ6BQSkIk2WnBR33hXm2I+kEhxFx/IRFZp5VILAuQODK D88g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qhR4BBPrkbqBPDREiZkyVSMc0RaquplEP+Rg3q+eWXU=; b=0O9lRvbj5vKB4+IxptLr+avx9zwplXVlN0IUN+rgSdygy4WcKbNiALlhI4ek0NnTRW tR3Qh2dWAT1BvRKGCujeT2kcK5NRVmNa9+sr6vboksLmUf3mFUFFvUzrk6he8RFD7fZz 6PYBsx4r1/FSyi5h+o9/F93ZRrm96K96i+P8HzMV9/SG500nue/VwuonfgnW5Ch/l/4V lUCIXFq57FvLy+xpQBr4U/Vk0BQBP1Hmnl5f4glr7t13Lb8iEb48MoguGN352l7Przk9 d5T5Y0R9fztLWL4mpSPEQ3ZK48gAI5JNiMx67CZWJqkXNhrA1kltMiTBqtNHytfo3/iU hJgQ== X-Gm-Message-State: AOAM532kIor8B3DTl11vaw8dButMPwV6Zi/JJy3eOnb1hhXXAVurtibD opFNcjvaqVi0b0bcXjTQFxccNTh1pf6tClK/EmQ= X-Google-Smtp-Source: ABdhPJzRiJss2T7SXUtcUDI8d5MI4G89nD5FlC4r7QitdCf2uhr8zUOOZVrZNYCcd6zLp7/8DsBTtfBofTTTIHfROGw= X-Received: by 2002:a05:6402:14c3:: with SMTP id f3mr1494205edx.312.1632343045520; Wed, 22 Sep 2021 13:37:25 -0700 (PDT) MIME-Version: 1.0 References: <20210819054116.266126-1-shy828301@gmail.com> <20210819054116.266126-3-shy828301@gmail.com> In-Reply-To: From: Yang Shi Date: Wed, 22 Sep 2021 13:37:12 -0700 Message-ID: Subject: Re: [v2 PATCH 3/3] mm: hwpoison: dump page for unhandlable page To: "Luck, Tony" Cc: =?UTF-8?B?SE9SSUdVQ0hJIE5BT1lBKOWggOWPoyDnm7TkuZ8p?= , Oscar Salvador , tdmackey@twitter.com, David Hildenbrand , Matthew Wilcox , Andrew Morton , Jonathan Corbet , Linux MM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=BpSz+zin; spf=pass (imf08.hostedemail.com: domain of shy828301@gmail.com designates 209.85.208.43 as permitted sender) smtp.mailfrom=shy828301@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: C9D5230000A9 X-Stat-Signature: 5tor5fxgqu16q4tatigpk8guggd8drb9 X-HE-Tag: 1632343046-123128 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Sep 22, 2021 at 12:58 PM Yang Shi wrote: > > On Wed, Sep 22, 2021 at 12:37 PM Luck, Tony wrote: > > > > On Wed, Aug 18, 2021 at 10:41:16PM -0700, Yang Shi wrote: > > > Currently just very simple message is shown for unhandlable page, e.g. > > > non-LRU page, like: > > > soft_offline: 0x1469f2: unknown non LRU page type 5ffff0000000000 () > > > > > > It is not very helpful for further debug, calling dump_page() could show > > > more useful information. > > > > Looks like your code already caught something. An error injection > > test may have injected into a shared library. Though I'm not sure that > > the refcount/mapcount in the dump agrees with that diagnosis from the > > author of this test. > > The messages from dump_page() are (unwind them from mce logs): > > [ 4817.630520] page:000000003ab9dca4 refcount:1 mapcount:0 > mapping:0000000000000000 index:0x0 pfn:0xcef2747 > [ 4817.646860] flags: > 0x57ffffc0801000(reserved|hwpoison|node=1|zone=2|lastcpupid=0x1fffff) > [ 4818.033689] raw: 0057ffffc0801000 ffd400033bc9d1c8 ffd400033bc9d1c8 > 0000000000000000 > [ 4818.280640] raw: 0000000000000000 0000000000000000 00000001ffffffff > 0000000000000000 Missed one line from the dump: [ 4818.321804] page dumped because: hwpoison: unhandlable page Anyway dump_page() is just called when unhandlable page is met. > > The page flags tell it is a "reserved" page and mapping is NULL. It > doesn't seem like a user page or movable page, so hwpoision can't > handle it so that the messages are dumped. > > > > > Here's what appeared on the console: > > > > [ 4817.622254] mce: Uncorrected hardware memory error in user-access at cef2747000 > > [ 4817.630520] page:000000003ab9dca4 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xcef2747 > > [ 4817.638651] mce: Uncorrected hardware memory error in user-access at cef2747000 > > [ 4817.646860] flags: 0x57ffffc0801000(reserved|hwpoison|node=1|zone=2|lastcpupid=0x1fffff) > > [ 4818.025515] mce: Uncorrected hardware memory error in user-access at cef2747000 > > [ 4818.033689] raw: 0057ffffc0801000 ffd400033bc9d1c8 ffd400033bc9d1c8 0000000000000000 > > [ 4818.272435] mce: Uncorrected hardware memory error in user-access at cef2747000 > > [ 4818.280640] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 > > [ 4818.280658] mce: Uncorrected hardware memory error in user-access at cef2747000 > > [ 4818.313606] mce: Uncorrected hardware memory error in user-access at cef2747000 > > [ 4818.321804] page dumped because: hwpoison: unhandlable page > > [ 4818.564802] mce: Uncorrected hardware memory error in user-access at cef2747000 > > [ 4818.573043] Memory failure: 0xcef2747: recovery action for unknown page: Ignored > > [ 4818.595837] Memory failure: 0xcef2747: already hardware poisoned > > [ 4818.603245] Memory failure: 0xcef2747: Sending SIGBUS to multichase:67460 due to hardware memory corruption > > [ 4818.614297] Memory failure: 0xcef2747: already hardware poisoned > > > > -Tony