From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932277AbcDTHIO (ORCPT ); Wed, 20 Apr 2016 03:08:14 -0400 Received: from TYO202.gate.nec.co.jp ([210.143.35.52]:47767 "EHLO tyo202.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753988AbcDTHIN convert rfc822-to-8bit (ORCPT ); Wed, 20 Apr 2016 03:08:13 -0400 From: Naoya Horiguchi To: Xishi Qiu CC: Linux MM , LKML Subject: Re: mce: a question about memory_failure_early_kill in memory_failure() Thread-Topic: mce: a question about memory_failure_early_kill in memory_failure() Thread-Index: AQHRmiyPMbYNrNsH9kuNvhZHQW0kY5+R22iA Date: Wed, 20 Apr 2016 07:07:35 +0000 Message-ID: <20160420070735.GA10125@hori1.linux.bs1.fc.nec.co.jp> References: <571612DE.8020908@huawei.com> In-Reply-To: <571612DE.8020908@huawei.com> Accept-Language: en-US, ja-JP Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.128.101.32] Content-Type: text/plain; charset="iso-2022-jp" Content-ID: <6DA2EE554D16DD44933968A549DFD0EF@gisp.nec.co.jp> Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 19, 2016 at 07:13:34PM +0800, Xishi Qiu wrote: > /proc/sys/vm/memory_failure_early_kill > > 1: means kill all processes that have the corrupted and not reloadable page mapped. > 0: means only unmap the corrupted page from all processes and only kill a process > who tries to access it. > > If set memory_failure_early_kill to 0, and memory_failure() has been called. > memory_failure() > hwpoison_user_mappings() > collect_procs() // the task(with no PF_MCE_PROCESS flag) is not in the tokill list > try_to_unmap() > > If the task access the memory, there will be a page fault, > so the task can not access the original page again, right? Yes, right. That's the behavior in default "late kill" case. I'm guessing that you might have a more specific problem around this code. If so, please feel free to ask with detail. Thanks, Naoya Horiguchi