OSDN Git Service

s390: add kmemleak annotation in stack_alloc()
authorSven Schnelle <svens@linux.ibm.com>
Fri, 27 Aug 2021 06:36:06 +0000 (08:36 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 31 Aug 2021 12:54:14 +0000 (14:54 +0200)
commit436fc4feeabbf103d78d50a8e091b3aac28cc37f
tree9a4001ce8eff24e8a69f19fdb68f472724d36d23
parent2297791c92d04a154ad29ba5a073f9f627982110
s390: add kmemleak annotation in stack_alloc()

kmemleak with enabled auto scanning reports that our stack allocation is
lost. This is because we're saving the pointer + STACK_INIT_OFFSET to
lowcore. When kmemleak now scans the objects, it thinks that this one is
lost because it can't find a corresponding pointer.

Reported-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Tested-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/setup.c