Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp493207ybm; Mon, 20 May 2019 21:15:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBq0fjEGMJOZETwhAdtMajvy3KuyKNhyxAEzfIeiRdLN4aS+GTx8b2pMMT3chJkSVmb22b X-Received: by 2002:a17:902:b184:: with SMTP id s4mr41954421plr.46.1558412150146; Mon, 20 May 2019 21:15:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558412150; cv=none; d=google.com; s=arc-20160816; b=W9JmiaLs+VkWi1b17YySA162zCitRtD5jGE4vt1XM7OiSLZwHBAAU2JKO0JofkSGwe U8QZvqJ0CnmUnNweGBk9t+d1DkNbnAw5ZIAZaCafpp/rCBY8OuQCuVBLeKqYR+8ElRdo acaSxwCZZObWPeVgqSIIMqW9RqRAOY4V1p8jZCel6qGW+a8gw95vvEbn5EvSkXUndqd+ +koAi+0ABcE54mz2EYwAuUr+ge+3J7YVVP/fqI2hoyz1RUN44gx8ne9PAd6aU/ZC9Pum KpsC48sJl7YkjnEvaW3Tdd8TYx0IGJsQ8xq4rpEqh8VxatJeg4GEThLqrrgu/FDPMgk2 YO8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=fQ7aQmhE8+dRZtKkpkNL7qpCKQOKXf/QHauGKs6H4lU=; b=ta+MfoGnTRzsrkngE7RCAfyPCBXPy0Ap9AzmEop0KZO3mICxHl1L88u5KViT67rmdP kWSIpcs0Ff8pkzzX/k+iD9ZgWRDkf73brjabpuvbark6MsWMqOKJfeLDKhjYy5IQAjzn KSEjxg/fToYPh6tZZqPROUxBKCPPnpWTA2rMaAcR1eNAOGFnHpnFdVqFKTdLh1Jej/F+ Xp6N9ag5Qja1yGNsrsaU+nLj6EwZQZJqIBPvuDCWeYtf64FGocCN3cK4gTjIdVSKlOUx 7luPaX42AdeD7+jhHaofomhsELuxKYJMELtnhJAl1reX8WA07gS5PGZkXzbvEIMuU4iq Yvbw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f7si20920629plm.427.2019.05.20.21.15.33; Mon, 20 May 2019 21:15: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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726042AbfEUEO3 (ORCPT + 99 others); Tue, 21 May 2019 00:14:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38064 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725789AbfEUEO3 (ORCPT ); Tue, 21 May 2019 00:14:29 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CCFDDC057E65; Tue, 21 May 2019 04:14:28 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C0245600C6; Tue, 21 May 2019 04:14:28 +0000 (UTC) Received: from zmail21.collab.prod.int.phx2.redhat.com (zmail21.collab.prod.int.phx2.redhat.com [10.5.83.24]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id B2B924A460; Tue, 21 May 2019 04:14:28 +0000 (UTC) Date: Tue, 21 May 2019 00:14:28 -0400 (EDT) From: Pankaj Gupta To: Jane Chu Cc: n-horiguchi@ah.jp.nec.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-nvdimm@lists.01.org Message-ID: <255137178.29997735.1558412068338.JavaMail.zimbra@redhat.com> In-Reply-To: <1558403523-22079-1-git-send-email-jane.chu@oracle.com> References: <1558403523-22079-1-git-send-email-jane.chu@oracle.com> Subject: Re: [PATCH v2] mm, memory-failure: clarify error message MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.116.97, 10.4.195.29] Thread-Topic: mm, memory-failure: clarify error message Thread-Index: 1DbEf0kdw7K8egROywjW6H/tEghkdQ== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Tue, 21 May 2019 04:14:28 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Some user who install SIGBUS handler that does longjmp out > therefore keeping the process alive is confused by the error > message > "[188988.765862] Memory failure: 0x1840200: Killing > cellsrv:33395 due to hardware memory corruption" > Slightly modify the error message to improve clarity. > > Signed-off-by: Jane Chu > --- > mm/memory-failure.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/memory-failure.c b/mm/memory-failure.c > index fc8b517..c4f4bcd 100644 > --- a/mm/memory-failure.c > +++ b/mm/memory-failure.c > @@ -216,7 +216,7 @@ static int kill_proc(struct to_kill *tk, unsigned long > pfn, int flags) > short addr_lsb = tk->size_shift; > int ret; > > - pr_err("Memory failure: %#lx: Killing %s:%d due to hardware memory > corruption\n", > + pr_err("Memory failure: %#lx: Sending SIGBUS to %s:%d due to hardware > memory corruption\n", > pfn, t->comm, t->pid); > > if ((flags & MF_ACTION_REQUIRED) && t->mm == current->mm) { > -- > 1.8.3.1 This error message is helpful. Acked-by: Pankaj Gupta > > _______________________________________________ > Linux-nvdimm mailing list > Linux-nvdimm@lists.01.org > https://lists.01.org/mailman/listinfo/linux-nvdimm >