The vdso_pagelist allocation is stored inside the vDSO mappings, which
are static, so the memory is never leaked. However, kmemleak thinks that
vdso_pagelist is leaked because the vDSO mappings are read-only after
init.
Fix kmemleak's false positive by marking the allocation as not a leak.
Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
if (vdso_pagelist == NULL)
return -ENOMEM;
+ kmemleak_not_leak(vdso_pagelist);
+
/* Grab the vDSO data page. */
vdso_pagelist[0] = phys_to_page(__pa_symbol(vdso_data));