Message ID | 20221216194537.238047-1-mathieu.desnoyers@efficios.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 26BB9C4167B for <linux-mm@archiver.kernel.org>; Fri, 16 Dec 2022 19:45:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 922238E0003; Fri, 16 Dec 2022 14:45:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 8AC988E0001; Fri, 16 Dec 2022 14:45:47 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 74B7C8E0003; Fri, 16 Dec 2022 14:45:47 -0500 (EST) 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 5D5FD8E0001 for <linux-mm@kvack.org>; Fri, 16 Dec 2022 14:45:47 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 32B0F81136 for <linux-mm@kvack.org>; Fri, 16 Dec 2022 19:45:47 +0000 (UTC) X-FDA: 80249199534.05.972841D Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by imf30.hostedemail.com (Postfix) with ESMTP id 9E02280011 for <linux-mm@kvack.org>; Fri, 16 Dec 2022 19:45:45 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=efficios.com header.s=smtpout1 header.b=PIk5P77F; spf=pass (imf30.hostedemail.com: domain of mathieu.desnoyers@efficios.com designates 167.114.26.122 as permitted sender) smtp.mailfrom=mathieu.desnoyers@efficios.com; dmarc=pass (policy=none) header.from=efficios.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1671219945; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=QbgsSmp4iDEqDbwy+gBkGKONGHgZ7fZbKUxbVDVH+RE=; b=0qJ9pUvd0BU7QZpMNhCQtPGyplJ1fnQqrENf+KkN/nKtlUWtq48WbnpPnM+IeynA53pmfp 051yTSZ9uzcU5oMecobnuz0cnB3b3BwwXPfVLOBQKQ9jml5kJZ7TLYmTsf1tPiwfi0Ar4x KuWHNqgmB7v72k3ezGMQH3KuND7kEgc= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=efficios.com header.s=smtpout1 header.b=PIk5P77F; spf=pass (imf30.hostedemail.com: domain of mathieu.desnoyers@efficios.com designates 167.114.26.122 as permitted sender) smtp.mailfrom=mathieu.desnoyers@efficios.com; dmarc=pass (policy=none) header.from=efficios.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1671219945; a=rsa-sha256; cv=none; b=7ZaQsmAdIkZbVM6kTPwv11bSOhSN8Y3iekSXM74Cf143G72ARzreGYL9/eP0FhcWojmuBq WxOP3d+NzYkaZux2GrVLQY1hwmMlQ1fh0u7FnVPgp+vYYD/gm6UeUIJNbZYvQw7BsH6jue Rg3jOBFGISeH9lubJasUcl86fmkZb1k= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1671219944; bh=m6euT/AHHIicwNDOAp3nHcZWM1Blrtk8U8hPYxizTig=; h=From:To:Cc:Subject:Date:From; b=PIk5P77FwZkcBK/nqbbLY5gPhFLweG3xvdRtJ+7pucyP8Tc/+b6Zl9dsvj8VYKvel st/7dYXU3zi6oJgrAVmdq/cSMhRdx59rRpbdtyghSzJ8QUJRppTGvoKDo4E6INIRom i3G7vN5gD9MrhgZuWFHR9TgQSLMO6Q/6L/6+9NAFCUT00sQxLEGVqLnrp5MzgyakYb 6bFuOyfWvv+cqM9Ft4aEBmfxLMow78XFricxKUvRrDbv1Ch4xC6PubN2uBQwLeukWb /sS5cQ6fAupXA74fIZGS/Lg2UwsO5QF3XuhTT9E7a+bRskff/B/CUv8Aq6dzoq289b 3EVjmEbeywJww== Received: from localhost.localdomain (192-222-180-24.qc.cable.ebox.net [192.222.180.24]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4NYfj36pGkzbGk; Fri, 16 Dec 2022 14:45:43 -0500 (EST) From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> To: linux-mm@kvack.org Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>, Randy Dunlap <rdunlap@infradead.org>, "Huang, Ying" <ying.huang@intel.com>, "Aneesh Kumar K . V" <aneesh.kumar@linux.ibm.com>, Michal Hocko <mhocko@suse.com>, Dave Hansen <dave.hansen@linux.intel.com>, Feng Tang <feng.tang@intel.com>, Michal Hocko <mhocko@kernel.org>, Andrea Arcangeli <aarcange@redhat.com>, Mel Gorman <mgorman@techsingularity.net>, Mike Kravetz <mike.kravetz@oracle.com>, Vlastimil Babka <vbabka@suse.cz>, Andi Kleen <ak@linux.intel.com>, Dan Williams <dan.j.williams@intel.com>, linux-api@vger.kernel.org, Andrew Morton <akpm@linux-foundation.org>, stable@vger.kernel.org Subject: [PATCH 1/2] mm/mempolicy: Fix memory leak in set_mempolicy_home_node system call Date: Fri, 16 Dec 2022 14:45:36 -0500 Message-Id: <20221216194537.238047-1-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 9E02280011 X-Stat-Signature: miakjxzex4raxcsbg4nqpaa9z573m1d8 X-Rspam-User: X-HE-Tag: 1671219945-886842 X-HE-Meta: U2FsdGVkX18MOGaQlkdAE1l1dVr8KOUSltMI0JFRfyHnJvM6DOt+daBp6DJHyxd6IHrNQfyaPht1NwkHXXnI2tF6e1j52pr25xU/ZsMGwUHKkCZqrOc2jISbqHxzVbwfBG0K/xC86i6QtL9nA8bm5CSBzM1AeoLXziBb6GZuO5//035NBPnDUOxGbIkv/gwC77o1WM4BK4tNLlEZzvbbOnbLjkUy01dd7XQNVeCMGEcpNR4dH50O6FNro0QY+UKEY2QRbdyZxbnsuK+TTZ6xI3UAFiO/QOF4CYb68VQKPJm/OxyFY/lWRY0RQrte+b6n88SSskbcLOlycfPPEtTkD76IuUPr0wR3Qk/baDC6q8I/30yLurR4VoXlngDHCuW9zGumec7YDX7MXoswllt7kIBV6ZYBMunbsJY2c6HwgctRaW+GppBQxS3qzZxSYNqMFzZ5y9N4pFpH1w8qVJFuxp5He6KKW92UlEHFUFempjhCcAdn7rlgIqd5cktxyHFkky1uwFhrTUTiIzHwOvDZ/kIEFdRUvcl8NHMY+Tafo5vUpkuczZEeje6GojNetmEWeIZ/21vzJV1T4wvENC7iNIIlqfBhhYGFLff6j3TuIAayj+o74OpbzeSqjddM9YIWdPkWW0odw7Ka4dHV/xLKOUod6pAsqE+ZAf7D2maoNUEMSxU6ZvKDQNe7DMjza8w8fGqK/oFhwfuthEY7Y0nbP22l3Y+8Yzu2eaQLvKnuJgRxspz/cOeHQZclcC9UsUErdo2S5YCGCJrgMZtRV4ahnyd8x9otBkeUJ/annPcFGricqe4HTGlnW+rBmwRB9AiOhk51w2cO5aZRSu7F+Q5CbN72Nwjxyo/LorcQhVr+wEckXxjV5RYYicyb8ddWGCsWfP1oRbsYUq7C6cVzfEXZYDIA87M+MtnWqYy6/hz8aJBf8BCAVL6Jptgckqtc6/wvKYka6qYrIqp+CFF8+LK 5KN6Xtil Epc2eTRUKFJ9Lhz3tD65O/zr2YDNgqAolnf/i 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: <linux-mm.kvack.org> |
Series |
[1/2] mm/mempolicy: Fix memory leak in set_mempolicy_home_node system call
|
expand
|
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 61aa9aedb728..02c8a712282f 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -1540,6 +1540,7 @@ SYSCALL_DEFINE4(set_mempolicy_home_node, unsigned long, start, unsigned long, le * the home node for vmas we already updated before. */ if (new->mode != MPOL_BIND && new->mode != MPOL_PREFERRED_MANY) { + mpol_put(new); err = -EOPNOTSUPP; break; }