From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57944C433E0 for ; Tue, 19 Jan 2021 06:04:40 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3A90122D2A for ; Tue, 19 Jan 2021 06:04:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3A90122D2A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kingsoft.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 76A3C8D002D; Tue, 19 Jan 2021 01:04:32 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 71B8B8D002C; Tue, 19 Jan 2021 01:04:32 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 60A298D002D; Tue, 19 Jan 2021 01:04:32 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0230.hostedemail.com [216.40.44.230]) by kanga.kvack.org (Postfix) with ESMTP id 48D798D002C for ; Tue, 19 Jan 2021 01:04:32 -0500 (EST) Received: from smtpin25.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 0D6501EF1 for ; Tue, 19 Jan 2021 06:04:32 +0000 (UTC) X-FDA: 77721485184.25.range29_5f09cea2754f Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin25.hostedemail.com (Postfix) with ESMTP id E34391804E3A1 for ; Tue, 19 Jan 2021 06:04:31 +0000 (UTC) X-HE-Tag: range29_5f09cea2754f X-Filterd-Recvd-Size: 4326 Received: from mail.kingsoft.com (mail.kingsoft.com [114.255.44.145]) by imf14.hostedemail.com (Postfix) with ESMTP for ; Tue, 19 Jan 2021 06:04:28 +0000 (UTC) X-AuditID: 0a580157-f39ff7000005df43-fa-60067123d4b8 Received: from mail.kingsoft.com (localhost [10.88.1.32]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.kingsoft.com (SMG-1-NODE-87) with SMTP id 07.44.57155.32176006; Tue, 19 Jan 2021 13:41:55 +0800 (HKT) Received: from aili-OptiPlex-7020 (172.16.253.254) by KSBJMAIL2.kingsoft.cn (10.88.1.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Tue, 19 Jan 2021 14:04:19 +0800 Date: Tue, 19 Jan 2021 14:04:18 +0800 From: Aili Yao To: "HORIGUCHI =?UTF-8?B?TkFPWUE=?=(=?UTF-8?B?5aCA5Y+j44CA55u05Lmf?=)" CC: Oscar Salvador , "linux-mm@kvack.org" , "yangfeng1@kingsoft.com" Subject: Re: [PATCH] mm,hwpoison: non-current task should be checked early_kill for force_early Message-ID: <20210119140418.115bb906.yaoaili@kingsoft.com> In-Reply-To: <20210119052537.GA1642@hori.linux.bs1.fc.nec.co.jp> References: <20210115155506.2d59fe83.yaoaili@kingsoft.com> <20210115084920.GA4092@linux> <20210115172622.699d68e5.yaoaili@kingsoft.com> <20210118051555.GA3585@hori.linux.bs1.fc.nec.co.jp> <20210118135744.7413cd06.yaoaili@kingsoft.com> <20210118065054.GA7447@hori.linux.bs1.fc.nec.co.jp> <20210118161512.701c94e7.yaoaili@kingsoft.com> <20210118085747.GA904@hori.linux.bs1.fc.nec.co.jp> <20210118170900.6fe9595a.yaoaili@kingsoft.com> <20210119052537.GA1642@hori.linux.bs1.fc.nec.co.jp> Organization: Kingsoft X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [172.16.253.254] X-ClientProxiedBy: KSBJMAIL1.kingsoft.cn (10.88.1.31) To KSBJMAIL2.kingsoft.cn (10.88.1.32) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMLMWRmVeSWpSXmKPExsXCFcGooKtcyJZgcHW7ssW9Nf9ZLS42HmC0 ODOtyIHZY9OnSeweL65uZPHYfLo6gDmKyyYlNSezLLVI3y6BK2POg3XsBZs5K65u/8DSwHiU vYuRk0NCwERi59s/zF2MXBxCAtOZJJY8aYdyXjBKPJ+xkRWkikVAVaL96Q8mEJsNyN51bxZY XEQgSWLx7K9MIA3MAm2MEld2fAQrEhZIlDg+aR8biM0rYCWxZU8D2DpOAQeJyQ2bwGwhga/M Et+3CnUxcnDwC4hJvGowhrjIXuL537PMEK2CEidnPmEBsZkFdCROrDrGDGHLS2x/O4cZYoyi xOElv6C+UZI40j2DDcKOlVg27xXrBEbhWUhGzUIyahaSUQsYmVcxshTnphtuYoSEc/gOxnlN H/UOMTJxMB5ilOBgVhLhLV3HlCDEm5JYWZValB9fVJqTWnyIUZqDRUmcV9+ZLUFIID2xJDU7 NbUgtQgmy8TBKdXAVLvmvcccpTtb3cvWZf68w/t3a5x8yLKrrp3a913Pc7SbHGq3Nby7+mfK zSbVKUtTZnRnv2fY+MJ4SXLVM/v8SJscH65NZ+tWBBzpnxU1eeav44oJvHtUHOc2XpnaqPri 4Jdj9wQVb20KuZqzT06Etbp5c0XFycKubxzBVqFhCufZcxtdxEKvPXlm+THO6c/aA0tCPIXy fumuZpm32OGzrKnmZV17O0eH9SHX12uELb3BGMIZdKLfIK/c8XPAVP+sbWwMxV9/u59b8yl3 lXzp7odJPq3FpbZ6DFxKLW8kQnXq9JImtovWGxvE18z+bBx+7Epi/aL6v3sqD16r4jUINf7X kVgmeKdwvVj+tplKLMUZiYZazEXFiQBLOcEx1gIAAA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.170980, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: > Thanks, so which interface did you use for error injection? I guess first > you used /sys/devices/system/memory/hard_offline_page, but if it's true, > then the error event should be action optional (no MF_ACTION_REQUIRED set). > So now I'm wondering why you are observing action required events? > My another guess is that you might have used mce-inject tool, if that's true, > please use hard_offline_page, then current kernel code should properly send > SIGBUS to dedicated process. > The test has no relation to ce and hard_offline_page, sorry for misleading. if the test code will compiled to my_test bin, here is my script: ./my_test hola salut servus test haaa --- this case no early-kill flag set or ./my_test -s hola salut servus test haaa --- this case early-kill is set. there must be a process names "test" which will trigger the UE; when the my_test start, the shared page's physical address will be printed; In another console, I will use einj module to inject the 0X10 LEVEL error to this physical address. After that, the test process trigger the memory-failure process, and then the log should be observed. Thanks. -- Best Regards! Aili Yao