[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y9EuvNGJOZ9KZzWH@arm.com>
Date: Wed, 25 Jan 2023 13:29:32 +0000
From: Catalin Marinas <catalin.marinas@....com>
To: "Isaac J. Manjarres" <isaacmanjarres@...gle.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Rob Herring <robh+dt@...nel.org>,
Frank Rowand <frowand.list@...il.com>, linux-mm@...ck.org,
Saravana Kannan <saravanak@...gle.com>, stable@...r.kernel.org,
Calvin Zhang <calvinzhang.cool@...il.com>,
kernel-team@...roid.com, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v1] Revert "mm: kmemleak: alloc gray object for reserved
region with direct map"
On Tue, Jan 24, 2023 at 03:02:54PM -0800, Isaac J. Manjarres wrote:
> This reverts commit 972fa3a7c17c9d60212e32ecc0205dc585b1e769.
>
> Kmemleak operates by periodically scanning memory regions for pointers
> to allocated memory blocks to determine if they are leaked or not.
> However, reserved memory regions can be used for DMA transactions
> between a device and a CPU, and thus, wouldn't contain pointers to
> allocated memory blocks, making them inappropriate for kmemleak to
> scan. Thus, revert this commit.
>
> Cc: stable@...r.kernel.org # 5.17+
> Cc: Calvin Zhang <calvinzhang.cool@...il.com>
> Signed-off-by: Isaac J. Manjarres <isaacmanjarres@...gle.com>
Acked-by: Catalin Marinas <catalin.marinas@....com>
Powered by blists - more mailing lists