Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2196862iof; Tue, 7 Jun 2022 22:55:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwZEytX0b7RbS4N+slcUElHw3Ys2IHb+aL9ukage4ZxwlgT5JnHM4Mnhtf3vZYDp22GFcf X-Received: by 2002:a17:903:2281:b0:167:56a9:9359 with SMTP id b1-20020a170903228100b0016756a99359mr23063565plh.126.1654667719946; Tue, 07 Jun 2022 22:55:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654667719; cv=none; d=google.com; s=arc-20160816; b=kK/s0mfHFcotVkDX3fVNWxYPiG5uFvsYckXFgiZi9Bgxc7i9MGawRykaHn1ogGtC7J CCqG2CTsiFNfZuqMZR5nHxU2sQe1+gAzGy3xxSgQDS5zpPw8hClN/KSTz/pNyG2pfILc zKkrG4jxZ/ChfUEQDILmtGoz8klb63BmqspI2rzKv9H7tM3Ne6j6dYoNUfnGlqLiWqIg W+rZK2W3PmOiWIc2h0qSAhVctYBnsZKbLRdI4Z27jbKo/7GLUknCZ9Y+Nox6U3pUAB/m nB0ZYDljGsQpIAcMaz63c3qdg1tcBX91EecV1lgHaal8KRGlfbs0W8xhViZDZIVEzVfo gQHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=V6bpw75qECC+WreFLaqr+nCqbg2olbZkYfKZSkE04qs=; b=I5lJ2f+a1IGWd7eLAaRVTlH+msUB7B+7Awa7ERj/9wMD1g/4XyA5GHB0AQoDvEEf4d xepO+6M9ZbPuiPW+F/qoqY404uJp8XzwBpbvykE8Y6ogodWUcAprP8difVzhbDbhvKfa FsOshoekOG9uQ4na2Tmbb7dYA1y3tavkTEPd/G+3VCT+ENloNxKPJJumvmkuOsoECwZj C+mhev6NpTNzDKDbUNOT3SaViA3bRZzaxUYrEfaY3eNIfJn+xV4TQbxXQFLVQSJP8v0c qchTBS01y7UkSeIgy1+5lprQ/lAjJlw4ROTHAgyuYtbdUxybNsEi0VsojTM9zWi9s5ku L0uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linux-foundation.org header.s=korg header.b=YyEmDOru; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m10-20020a170902768a00b00161946a7108si23639565pll.161.2022.06.07.22.55.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:55:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=fail header.i=@linux-foundation.org header.s=korg header.b=YyEmDOru; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DEFA31E96FF; Tue, 7 Jun 2022 22:21:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443298AbiFHA5z (ORCPT + 99 others); Tue, 7 Jun 2022 20:57:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1578040AbiFGXb1 (ORCPT ); Tue, 7 Jun 2022 19:31:27 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF5414351A2 for ; Tue, 7 Jun 2022 15:00:03 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 22E9ACE2018 for ; Tue, 7 Jun 2022 22:00:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21CD3C385A2; Tue, 7 Jun 2022 22:00:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1654639200; bh=8sL/rpVGiBwSPrjgFyVx4IBH9TqPDfomNd6mM8hy9kU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YyEmDOruYF7lVaZO4mPnA3SXKSgcKPOjb3an5AivFk4EHvhDPF0FP5i78f89hDw42 WQh31V72ZEffZrfbpmy7yrLeeHt/26dVf29QXB0juYr2UiuWp/21DT4UlVdrOdeaEl xdHSPld+OLAEZ6A0kLMws3s6L7gq0297zHXhPM5w= Date: Tue, 7 Jun 2022 14:59:59 -0700 From: Andrew Morton To: David Hildenbrand Cc: HORIGUCHI =?UTF-8?B?TkFPWUE=?= (=?UTF-8?B?5aCA5Y+jIOebtOS5nw==?=) , zhenwei pi , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Tony Luck , Wu Fengguang Subject: Re: [PATCH] mm/memory-failure: don't allow to unpoison hw corrupted page Message-Id: <20220607145959.785e54c752f373bcc283732b@linux-foundation.org> In-Reply-To: <5e7abb3f-56e7-0343-a678-749b6f5238a2@redhat.com> References: <20220604103229.3378591-1-pizhenwei@bytedance.com> <20220604115616.b7d5912ac5a37db608f67b78@linux-foundation.org> <584eedd3-9369-9df1-39e2-62e331abdcc0@bytedance.com> <20220606043202.GA1328953@hori.linux.bs1.fc.nec.co.jp> <3b58adbf-a8b2-8dba-71a7-123ba3850c10@bytedance.com> <20220606091503.GA1337789@hori.linux.bs1.fc.nec.co.jp> <5e7abb3f-56e7-0343-a678-749b6f5238a2@redhat.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 7 Jun 2022 14:36:00 +0200 David Hildenbrand wrote: > On 06.06.22 11:15, HORIGUCHI NAOYA(堀口 直也) wrote: > >>> [ 917.864266] > >>> [ 917.864961] clear_huge_page+0x147/0x270 > >>> [ 917.866236] hugetlb_fault+0x440/0xad0 > >>> [ 917.867366] handle_mm_fault+0x270/0x290 > >>> [ 917.868532] do_user_addr_fault+0x1c3/0x680 > >>> [ 917.869768] exc_page_fault+0x6c/0x160 > >>> [ 917.870912] ? asm_exc_page_fault+0x8/0x30 > >>> [ 917.872082] asm_exc_page_fault+0x1e/0x30 > >>> [ 917.873220] RIP: 0033:0x7f2aeb8ba367 > >>> > >>> I don't think of a workaround for this now ... > >>> > >> > >> Could you please tell me how to reproduce this issue? > > > > You are familiar with qemu-monitor-command, so the following procedure > > should work for you: > > > > - run a process using hugepages on your VM, > > - check the guest physical address of the hugepage (page-types.c is helpful for this), > > - inject a MCE with virsh qemu-monitor-command on the guest physical address, then > > - unpoison the injected physical address. > > That's triggered via debugfs / HWPOISON_INJECT, right? > > That's a DEBUG_KERNEL option, so I'm not 100% sure if we really want to > cc stable. Sure, it's hardly a must-have. But let's also take the patch complexity&risk into account. This is one dang simple patch. Or is it. Should these things be happening outside mf_mutex? What the heck is the role of mf_mutex anyway?