OSDN Git Service

arm64: vdso: Mark vdso_pagelist allocation as not a leak
authorSultan Alsawaf <sultan@kerneltoast.com>
Sun, 30 Jun 2019 04:56:06 +0000 (21:56 -0700)
committer0ranko0P <ranko0p@outlook.com>
Sat, 7 Dec 2019 10:22:17 +0000 (18:22 +0800)
commit351f6934a44a7c296cb7ea2a5190b565c7acc3bb
tree3377c1ef61743bde33f7c6e7fce7f23ff36bc851
parentf3e97d071b312f700668a3d9f5d57be77e583c21
arm64: vdso: Mark vdso_pagelist allocation as not a leak

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>
arch/arm64/kernel/vdso.c