Re: [PATCH] x86/sev: Fix kmemleak false positive for the RMP segment descriptors

From: Dave Hansen

Date: Mon Nov 02 2026 - 16:27:40 EST


On 11/2/26 08:49, Breno Leitao wrote:
> Register the table with kmemleak, so it is scanned like any other
> object.
>
> kmemleak_alloc() registers a block of memory with kmemleak, so kmemleak
> scans it and counts pointers into it, do it with rmp_segment_table.

Why don't we just kmalloc() the thing?