From patchwork Fri May 24 09:13:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 13672911 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 A43BAC25B74 for ; Fri, 24 May 2024 09:17:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6CCAA6B00A6; Fri, 24 May 2024 05:16:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 62E226B00A8; Fri, 24 May 2024 05:16:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 435576B00A9; Fri, 24 May 2024 05:16:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id E937F6B00A8 for ; Fri, 24 May 2024 05:16:37 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 72D50120A23 for ; Fri, 24 May 2024 09:16:37 +0000 (UTC) X-FDA: 82152734034.02.5185420 Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) by imf30.hostedemail.com (Postfix) with ESMTP id 18A828000E for ; Fri, 24 May 2024 09:16:34 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf30.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.191 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1716542195; 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=F+da3HJZTj8WogVcSs+ISuxH9YFAHGJQfBVrIoXzN3Y=; b=6X33/EHuDg5TIE9TbY5b+2Pwug0IVZjeWCri41DcqP2pxBmzxo4apvBKctFs5Kki2cCevJ 5d8hW+siUszCosX0Hdwchy+Q050tK9XJ9zDmyfYqD8RsjsV6s2mMdJRFyApwe3IwWARo25 NAN7YAecx413KFBSF1LYMc8vxdT1U/E= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf30.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.191 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1716542195; a=rsa-sha256; cv=none; b=KPBxNEP524ntgBfiH+df1tH46m21kYwX2OmeFlfoA1vZAN+FHUTt15o4LLhF87IW+1cPKk c31OoroULuDKfkpL/G7qxvuZO86c61j1Z3EQhFdueeMnt0WEU6UUuvvpvKG1D9oyYLyOW3 dG/3NgdjlTx7L1QPagxg2l5AlyG+xXI= Received: from mail.maildlp.com (unknown [172.19.162.112]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4Vlzpj3Z9Dz2cMp7; Fri, 24 May 2024 17:13:01 +0800 (CST) Received: from canpemm500002.china.huawei.com (unknown [7.192.104.244]) by mail.maildlp.com (Postfix) with ESMTPS id 0423A14037C; Fri, 24 May 2024 17:16:32 +0800 (CST) Received: from huawei.com (10.173.135.154) 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; Fri, 24 May 2024 17:16:31 +0800 From: Miaohe Lin To: , , CC: , , , , Subject: [PATCH 12/13] mm/memory-failure: remove obsolete comment in kill_proc() Date: Fri, 24 May 2024 17:13:09 +0800 Message-ID: <20240524091310.1430048-13-linmiaohe@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20240524091310.1430048-1-linmiaohe@huawei.com> References: <20240524091310.1430048-1-linmiaohe@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.173.135.154] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500002.china.huawei.com (7.192.104.244) X-Rspamd-Queue-Id: 18A828000E X-Stat-Signature: fy3fu5zqiuhdt8576mnjy5sc1j8ewi3t X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1716542194-393962 X-HE-Meta: U2FsdGVkX1/eNDBHON0ovU2XqOYQBpsja+gfEPURQpg/yJ5+l6MeBADtno2cjk0d/dATrbOSS1jHk9SwSR3HBnTrQZMDBwYfvHPhS3qLNci5BfdZ/rP4huLs9+nP+t+wroJsUdEx5NQLFy3rF0eT/FS7JtLZglb2VUro7moTAfqQY5wAgAGPmQD2J/fo5BwvzNJPlFPCnlF+LgU5/jBj4FtpkTDkXyiUFgSrWg9dNOImEgSFsgdeQdDQmoSvuFx+bRGT1b+4NRyDkpbijgg1C3UItI/GwVzi7ageO9s9KNjnYwR+Or8IN2O2Tt1sYNKI9U6YAj5G0dHSXgfU1RAGSHuu963dvCH9LrSsKSEk+OvtV0oNL2Jh2cJCnlgearqyUzHZu9Y8M/3YUpfKCHS6Pya1M9NY/eTZg2WwwJGEffI3MCoGkE8lmm8ue1+O5PveA0Fm29qdaUmoELsd+DyygCJTlLfQJNoYpUcW3q/vhf1v04op0cRDYW2hflQJRkPnF3z0FdXTT3lnM4yUnAIRl2ogcBvZ/gBmQiphZMDJ6dcPFpfMbWIfLm7rbmTtAMzNmWhx1ltcZnXYhouHljthbwEU3OkRkHYYb/vYVyztFJ+Qk2ts33Oxrdja3zlMOJUPqYJ5/gfEIvLrrXA5A6eVkXmz2KfXu3bGcqLn/w/Aqz8MFGWXXP1QyBNKd6Gk000Jw+8eFP6ZqbWPc7dqWJUIdrQR4XyXsmUDQRAEbLEkeZDb1LL2xbGzZjQPpk0LlRY4r62EPipkg3I6ymX7uF1277q6PpTi4aiApWckrEdbUO9NefLXvvAR2giyVZZe3gfBraNVR3e98YWBuvMZ23sWrkTRWg43QDgSNvbekUBkAm6Yo9z5XBUnrokVnR0In6vQoUPc6R7lZ1ivLiCsez/eHGUQfWMHMJBtJiMBPbI+jKTlDKQkYdth9u43Iy7kWu9Ihj4t+P1jdXiccNBn2j6 iP9Zfcs5 DXlq3zZpU71aqURXj0H0tL+eMHqD1Nyf7IG83cSuj/FsZGdYiXbP23yREMR1j9QK447MAdbcYNqGg6BVhWx+YAfmMEPSB0vzee01FZhb4+oa2VP5jprDtvYRSkPe4muCWaMRSSnEUq3eG6TTZVJC86x0iWjk/iAH5E5vmg3Bh+OJdQRX21zmwuXnIZKUXVXU9bvoS0mZOuHR1eSn6ZOLBvSbmqkeA4H2uClFf1goR7rj6SUpDnMXncok/WWiDEkSjbRgwNKMgb2ddc81nAczEs7OlQfsMCxh5pTBlIXXZlslfiSpduE7hNwHdwg== 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 705cd0bbb603..b6bdb4e2834a 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -349,8 +349,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);