Re: [PATCH 2/2] selftests/mm: test kmemleak's N-consecutive-scan leak confirmation

Breno Leitao <[email protected]> Fri, 3 Jul 2026 10:11:42 -0700
Newsgroups org.kernel.vger.workflows,org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel,org.kernel.vger.linux-kselftest,org.kvack.linux-mm
Message-ID <[email protected]>
On Fri, Jul 03, 2026 at 08:43:27AM -0700, Breno Leitao wrote:
> On Fri, Jul 03, 2026 at 03:55:52PM +0100, Catalin Marinas wrote:
>
> I will spin this "fix" separated (CCing stable), and send a v2 for this
> selftest with priming enabled.

Quick update on this plan. The v2 for this patch depends on checksum fix[0],
given it touches a similar code:

	@@ -687,6 +692,7 @@ static struct kmemleak_object *__alloc_object(gfp_t gfp)
		atomic_set(&object->use_count, 1);
		object->excess_ref = 0;
		object->count = 0; 
	+       object->unref_scans = 0;
		object->checksum = ~0;   <-- Adde by the fix [0]

I will wait the "Fix" to land first, before sending v2, avoiding merge
conflicts and being able to rely on sashiko to review it (instead of having merging
issues)

Link: https://lore.kernel.org/all/[email protected]/ [0]