[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Zd91tagUX3EZCINk@slm.duckdns.org>
Date: Wed, 28 Feb 2024 08:04:37 -1000
From: Tejun Heo <tj@...nel.org>
To: Waiman Long <longman@...hat.com>
Cc: Zefan Li <lizefan.x@...edance.com>,
Johannes Weiner <hannes@...xchg.org>, cgroups@...r.kernel.org,
linux-kernel@...r.kernel.org,
Mirsad Todorovac <mirsad.todorovac@....hr>
Subject: Re: [PATCH] cgroup/cpuset: Fix a memory leak in
update_exclusive_cpumask()
Hello,
On Tue, Feb 27, 2024 at 07:58:01PM -0500, Waiman Long wrote:
> Fix a possible memory leak in update_exclusive_cpumask() by moving the
> alloc_cpumasks() down after the validate_change() check which can fail
> and still before the temporary cpumasks are needed.
>
> Fixes: e2ffe502ba45 ("cgroup/cpuset: Add cpuset.cpus.exclusive for v2")
> Reported-by: Mirsad Todorovac <mirsad.todorovac@....hr>
> Closes: https://lore.kernel.org/lkml/14915689-27a3-4cd8-80d2-9c30d0c768b6@alu.unizg.hr
> Signed-off-by: Waiman Long <longman@...hat.com>
Applied to cgroup/for-6.8-fixes with stable cc'd. Depending on when v6.9
gets cut, this might go in together with for-6.9 during rc1.
Thanks.
--
tejun
Powered by blists - more mailing lists