From patchwork Wed Jun 12 07:18:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 13694538 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E8DCC27C75 for ; Wed, 12 Jun 2024 07:23:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B461A6B0174; Wed, 12 Jun 2024 03:22:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A64716B017C; Wed, 12 Jun 2024 03:22:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5C4766B0179; Wed, 12 Jun 2024 03:22:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 18A6B6B0171 for ; Wed, 12 Jun 2024 03:22:58 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id D5AD81215E0 for ; Wed, 12 Jun 2024 07:22:57 +0000 (UTC) X-FDA: 82221394794.24.81D7A3E Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by imf19.hostedemail.com (Postfix) with ESMTP id 9F1F61A0009 for ; Wed, 12 Jun 2024 07:22:55 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=none; spf=pass (imf19.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.189 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1718176976; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dhozlmqvkUuicMVf7NKP7HuYhNgBV+NWa3B+mDkPMbE=; b=DYOJweePsJHbpqgkOMUC/+mjJZfiPY23wpvN92oIfm8UILdMqdHcOAqunDNI3j7k++hdG1 BGaLG0HrIRL/k/dJ8uy6mDYLdbTS7Ie5Fq8tdOL/oDq2gZn/iZFjKx1Q2vF0QPjgRJhqVs nalnOec1g7R4iEFrVi88dWG4FBAulLs= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=none; spf=pass (imf19.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.189 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1718176976; a=rsa-sha256; cv=none; b=K2P9p2hlbd9bcYyIf7Cni8DGXTv3UCbuPvuL1zfxGdwoNQIgwJoC8L3nQqpk+xBetkMYs0 I47xW5bxpsC2qqGXO0YALciQfHKdLMkUrKthsaTmmDFw53edz6Q5i5XfkXqCwsq4rgNjZ7 LQoYnDYFzZe3ebxXze+EFmtf6icXyIU= Received: from mail.maildlp.com (unknown [172.19.163.252]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4VzcNv57flzPqKq; Wed, 12 Jun 2024 15:19:27 +0800 (CST) Received: from canpemm500002.china.huawei.com (unknown [7.192.104.244]) by mail.maildlp.com (Postfix) with ESMTPS id 9B9B5180AA6; Wed, 12 Jun 2024 15:22:52 +0800 (CST) Received: from huawei.com (10.173.127.72) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Wed, 12 Jun 2024 15:22:24 +0800 From: Miaohe Lin To: , , CC: , , , , Subject: [PATCH v3 12/13] mm/memory-failure: remove obsolete comment in kill_proc() Date: Wed, 12 Jun 2024 15:18:34 +0800 Message-ID: <20240612071835.157004-13-linmiaohe@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20240612071835.157004-1-linmiaohe@huawei.com> References: <20240612071835.157004-1-linmiaohe@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.173.127.72] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500002.china.huawei.com (7.192.104.244) X-Rspam-User: X-Rspamd-Queue-Id: 9F1F61A0009 X-Rspamd-Server: rspam01 X-Stat-Signature: mm7dzqma5knerwp1yc793f8p6umi4wwn X-HE-Tag: 1718176975-774370 X-HE-Meta: U2FsdGVkX1+0wEN9mJLpXX8NoqWjzORUDDJKteJ3Fh/hjQOPoNH6J6lCW7P94Q1yzEf2CM3Q+lQ+5m4bKb27dhOi4p62wktJOFSCaA3KPXP/qWqAHZusIF7cHdByHMwX/p+PwQDQCllUxVRuAZ4lqkKlf8FGcwjfT/ZBDlABteWlGv6piWW9ooZP8QYGgomHdcm+Wzt9UuBl6gtGSCPuBBFEAcMTEt+7cFj00lEsulEeZ3cP4Aujqt61f68OMtIT2DIZW8ONpEmtIQa7+XKBfk/+EgIG/QBPShkTRVLd5FNtBfdPOnTjta4NRBrA4YRhG41H2VcJsu6a3VGU+oSZxswrlzzLsQioCQwR2dPTQ9pKWqcNosMYKzOA9IbMkGIDh2Zsq+B1RQ5f1dT6lUwXwV5IsrH5DebckJBmkrtsm79dFZ/3fDX0Wn0aNp7CSpNTPuQjYK1BA0twvIMIvIupTSx3maRNhGFGP3ewrAGClc1FVUyXq/8b4HBae9OrgDVgImVh/LcGtgKQwt/6/Dr+hnoYmsGvpDcx1fh86DK8CTjlMctsurlJsh7II6dqZHWpPsyMeUQbawyJz3MTzOQbdlO9ihfa3R5SRYw9Q0AbJYz1n9NaSh66tR6BTtJXWfIBXznL+ampfk6Hq3l+sigAVlNf2kUwKyKjUaZV+M6VuV5i5gurnl1lzTlcUZT7fBIiJS1imZteLdSQpOkGF7MSL0T7uH99DOBqGjdfNfRxiVY+pUun/54p/n5tcyfNHZbMiSB+2y/v1qHQwdIRFmgNB0YEQcLaX+dFXYNm87nJ63wh4vxw8dxTSmXUE/80vXAGf+J5OsYm0d/ABH4DGRG8pxGJZMVi6EeOwNzH3clUVGLzD9rAMdQkEX1sRoV3VVGzHpJrxqgAtbLua+Vxzj84CSlDOK3LyLnNvvRWpf0tgjv634p5UNkzBqC7ICcwRQ5rqK/ujbpYWQvawL3xBs1 OblYg+7W +uBjxWOCpVL7FlKsSZAqDu4BlK3ukrh6MZZWmfs06lLdiaPMFX5HURncLBYVHNilUduecTo9+dzAcycPGSB3w+dDXnYbXVXeBzV4WDCEvVWNlY1q61c03CTteh/WVs+c//vFlKjjNF2JSiVFLBVDb1BzDfXVyn6QcXxxvPkLlHOCaqPv4kwGgu0OOuzyc/AItnMT6u/SS2fOSnXKVi79hB/iP8hO7SDnlFanjWRkgzQGiS5MJucBegaeAx9yqPZ1S3OSZ1yjWHx2VqmtqO/SzU2nKt1sq7VG7M3A5 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: When user sets SIGBUS to SIG_IGN, it won't cause loop now. For action required mce error, SIGBUS cannot be blocked. Also when a hwpoisoned page is re-accessed, kill_accessing_process() will be called to kill the process. Signed-off-by: Miaohe Lin --- mm/memory-failure.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/memory-failure.c b/mm/memory-failure.c index 475524f79550..12b516895ee7 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -354,8 +354,6 @@ static int kill_proc(struct to_kill *tk, unsigned long pfn, int flags) * PF_MCE_EARLY set. * Don't use force here, it's convenient if the signal * can be temporarily blocked. - * This could cause a loop when the user sets SIGBUS - * to SIG_IGN, but hopefully no one will do that? */ ret = send_sig_mceerr(BUS_MCEERR_AO, (void __user *)tk->addr, addr_lsb, t);