From patchwork Tue Aug 23 03:23:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12951674 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 E3A9AC28D13 for ; Tue, 23 Aug 2022 03:24:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6585A8D0002; Mon, 22 Aug 2022 23:24:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6069D8D0001; Mon, 22 Aug 2022 23:24:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4F5558D0002; Mon, 22 Aug 2022 23:24:23 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 3FF0F8D0001 for ; Mon, 22 Aug 2022 23:24:23 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 0CAB681335 for ; Tue, 23 Aug 2022 03:24:23 +0000 (UTC) X-FDA: 79829414406.16.0765F4C Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf24.hostedemail.com (Postfix) with ESMTP id 3081C18004E for ; Tue, 23 Aug 2022 03:24:22 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MBZHk548nzgYp0; Tue, 23 Aug 2022 11:20:50 +0800 (CST) Received: from huawei.com (10.175.124.27) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 23 Aug 2022 11:24:19 +0800 From: Miaohe Lin To: , CC: , , Subject: [PATCH v2 0/6] A few fixup patches for memory-failure Date: Tue, 23 Aug 2022 11:23:40 +0800 Message-ID: <20220823032346.4260-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=none; spf=pass (imf24.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 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=1661225062; a=rsa-sha256; cv=none; b=OrSs7mIpwHdYtVTw2OoCk/uE1Xl8syekUs2GMy/EmnRZymEMcnYMkhg2lbzHOiO4UIveUU gIkHrA9rF7PtptIBogBC9aRq1CXz4SgONMNEmuikNBrD0UkKSJw3paPESBCJmBmc7Dq6Gi zWDV1MOprL16sZnizB5dp/v8c5aVJrE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1661225062; 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: references; bh=4hPBB71VAZvNpYk2ufmIHjgEd1tbYIYJ4V151MCIHL0=; b=0lDdNgXsqGiqSoZ8IqJR9cB+cEM1j+aFqYu+zM1SCEnHxS6k/7pc4cNwjw38oqK5TGZp/W V60mqjNRXvTVdu6OvbpaCFkFUjAfsLUwpT/SmKscHx46VS7D+dJztLuvGQ6ZVMPY/KLMVP 1eeTztJsGW0JwUwhC7IGiyl2a3sjokA= Authentication-Results: imf24.hostedemail.com; dkim=none; spf=pass (imf24.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 3081C18004E X-Stat-Signature: mfbq5rtgdzr1rz7ojtggj7x5ae73rqjc X-HE-Tag: 1661225062-637452 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: Hi everyone, This series contains a few fixup patches to fix incorrect update of page refcnt, fix possible use-after-free issue and so on. More details can be found in the respective changelogs. Thanks! --- v2: Collect Acked-by tag per Naoya. Thanks! Change to add list_del() in kill_procs in 4/6 Remove deprecated comment in 5/6 --- Miaohe Lin (6): mm, hwpoison: fix page refcnt leaking in try_memory_failure_hugetlb() mm, hwpoison: fix page refcnt leaking in unpoison_memory() mm, hwpoison: fix extra put_page() in soft_offline_page() mm, hwpoison: fix possible use-after-free in mf_dax_kill_procs() mm, hwpoison: kill procs if unmap fails mm, hwpoison: avoid trying to unpoison reserved page mm/memory-failure.c | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-)