Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753757AbcDSLOB (ORCPT ); Tue, 19 Apr 2016 07:14:01 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:30851 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752278AbcDSLOA (ORCPT ); Tue, 19 Apr 2016 07:14:00 -0400 Message-ID: <571612DE.8020908@huawei.com> Date: Tue, 19 Apr 2016 19:13:34 +0800 From: Xishi Qiu User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Linux MM , LKML , Naoya Horiguchi CC: Xishi Qiu Subject: mce: a question about memory_failure_early_kill in memory_failure() Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.25.179] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A0B0202.571612EF.0244,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: cd8fadb62db7173e90c3bf8dfc00b7f5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 593 Lines: 17 /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? Thanks, Xishi Qiu