linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "HORIGUCHI NAOYA(堀口 直也)" <naoya.horiguchi@nec.com>
To: Aili Yao <yaoaili@kingsoft.com>
Cc: Naoya Horiguchi <nao.horiguchi@gmail.com>,
	"linux-mm@kvack.org" <linux-mm@kvack.org>,
	Tony Luck <tony.luck@intel.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Oscar Salvador <osalvador@suse.de>,
	David Hildenbrand <david@redhat.com>,
	Borislav Petkov <bp@alien8.de>, Andy Lutomirski <luto@kernel.org>,
	Jue Wang <juew@google.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"yaoaili126@gmail.com" <yaoaili126@gmail.com>
Subject: Re: [PATCH v4 2/2] mm,hwpoison: send SIGBUS when the page has already been poisoned
Date: Mon, 10 May 2021 08:31:57 +0000	[thread overview]
Message-ID: <20210510083155.GB3504859@hori.linux.bs1.fc.nec.co.jp> (raw)
In-Reply-To: <20210510160021.648b41db@alex-virtual-machine>

On Mon, May 10, 2021 at 04:00:21PM +0800, Aili Yao wrote:
> On Mon, 10 May 2021 07:21:28 +0000
> HORIGUCHI NAOYA(堀口 直也) <naoya.horiguchi@nec.com> wrote:
> 
> > On Fri, May 07, 2021 at 05:38:52PM +0800, Aili Yao wrote:
> > > On Tue, 27 Apr 2021 15:29:53 +0900
...
> > > And I think the virtual address along SIGBUS is not mean to backtrace the code, it just want to tell where the error memory is, for multi pte
> > > entry, one virtual address for the same physical page is not enough?
> > > 
> > > Compare this patch with my RFC patch, difference:
> > > 1.This patch will just fix the race issue's invalid virtual address. while my RFC patch will cover all the error case for recovery;
> > > 2.For multi entry, this patch will do one force_sig with no other infomation, But the RFC patch will take one possible right address, I don't know which one is better.
> > > 
> > > And if this multi pte entry is one real issue, it seems the normal recovey work will aslo trigger this, would it be better to fix that first?  
> > 
> > Assuming that your RFC is https://lore.kernel.org/lkml/20210317162304.58ff188c@alex-virtual-machine/,
> > it simply uses the first-found virtual address.  I start thinking that this
> > approach could be fine.  And it's easy to change the patch with this approach.
> > I have no preference, so if you like, I switch to the "first-found" approach.
> 
> Hi Naoya:
>   Thanks for your reply!
>   Yes, you can change to that RFC approach, but there may be some un-indentified issuees, and need more considerations though.
>   And there may be other method to address this, you can also dig into that, get it realized and posted.
>   I am OK with any option.
>   But for here, From the beginning, I thinks the invalid address issue and race issue are two different issues, may have some
> relationship but still two issues in my mind.
>   whould you please seperate this series patches into three again?

OK, I'll do it.
Maybe that's helpful if we consider to send some part of the series to stable.

- Naoya

      reply	other threads:[~2021-05-10  8:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-27  6:29 [PATCH v4 0/2] mm,hwpoison: fix sending SIGBUS for Action Required MCE Naoya Horiguchi
2021-04-27  6:29 ` [PATCH v4 1/2] mm/memory-failure: Use a mutex to avoid memory_failure() races Naoya Horiguchi
2021-05-06  9:37   ` Aili Yao
2021-05-06 15:34     ` Luck, Tony
2021-04-27  6:29 ` [PATCH v4 2/2] mm,hwpoison: send SIGBUS when the page has already been poisoned Naoya Horiguchi
2021-05-07  9:38   ` Aili Yao
2021-05-10  7:21     ` HORIGUCHI NAOYA(堀口 直也)
2021-05-10  8:00       ` Aili Yao
2021-05-10  8:31         ` HORIGUCHI NAOYA(堀口 直也) [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210510083155.GB3504859@hori.linux.bs1.fc.nec.co.jp \
    --to=naoya.horiguchi@nec.com \
    --cc=akpm@linux-foundation.org \
    --cc=bp@alien8.de \
    --cc=david@redhat.com \
    --cc=juew@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=luto@kernel.org \
    --cc=nao.horiguchi@gmail.com \
    --cc=osalvador@suse.de \
    --cc=tony.luck@intel.com \
    --cc=yaoaili126@gmail.com \
    --cc=yaoaili@kingsoft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).