From patchwork Thu Aug 18 13:00:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12948106 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 5F72DC00140 for ; Thu, 18 Aug 2022 22:50:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C73898E0002; Thu, 18 Aug 2022 18:50:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C23288D0002; Thu, 18 Aug 2022 18:50:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AEC728E0002; Thu, 18 Aug 2022 18:50: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 A0AF58D0002 for ; Thu, 18 Aug 2022 18:50:23 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 6137380C74 for ; Thu, 18 Aug 2022 22:50:23 +0000 (UTC) X-FDA: 79814208684.03.9B75E06 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by imf30.hostedemail.com (Postfix) with ESMTP id 10688892E6 for ; Thu, 18 Aug 2022 22:04:48 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.53]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4M7lKB6b1Vz1N7Kl; Thu, 18 Aug 2022 20:57:18 +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; Thu, 18 Aug 2022 21:00:40 +0800 From: Miaohe Lin To: , CC: , , Subject: [PATCH 0/6] A few fixup patches for hugetlb Date: Thu, 18 Aug 2022 21:00:10 +0800 Message-ID: <20220818130016.45313-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: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1660860290; 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=bjElWNpvHfa/+DL3qvgZ2t7VaLI1x1luOpgPGNxKrvc=; b=T2O0a/brzVhqK7nMGJBvyVgu8JPWpmR+cRwjrCn3b0PnpUINiaq7X4RrQ3cqMsA9UDzcSk bpaQiGxQtXs9INWhtHMfZp6Xo79nH2nVL0TpSlhInHhBRe6rZJ/bkaNA85ODDXVTvpK6w1 NGTBsmxGjaN1//20K47Hqndeew7iBWw= 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.255 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1660860290; a=rsa-sha256; cv=none; b=iPe1Rm1lKa8vlinZSL7gXNDEp8HUuLU8T2GRfcR3iHhFsC7zRpoRSwskgJrrwObWKhzbvk A6mzP9tqsf4K59tnQbgW/u3atpDU5Ov7M7DDVpBXm5owAdv+rgkdErdGxo6omGE1ibga3f shE1Vlxrb7QVHruAT+nCutSEABuNmkw= X-Stat-Signature: soqdcywu9eaj5y1pogxf16zicrhd694c X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 10688892E6 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.255 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com X-Rspam-User: X-HE-Tag: 1660860288-76181 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! 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 | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-)