]> www.infradead.org Git - users/jedix/linux-maple.git/commit
powerpc/mm: handle VDSO unmapping via close() rather than arch_unmap()
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 12 Aug 2024 08:26:03 +0000 (18:26 +1000)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 17 Aug 2024 00:53:13 +0000 (17:53 -0700)
commit2246e39a697aeeb4544d01345e9078bed14b0051
treeed3f2658cabfcab59222396ca360055e568e9e2a
parentabf1c27be13e0b893da044fb64ecb7c477451667
powerpc/mm: handle VDSO unmapping via close() rather than arch_unmap()

Add a close() callback to the VDSO special mapping to handle unmapping of
the VDSO.  That will make it possible to remove the arch_unmap() hook
entirely in a subsequent patch.

Link: https://lkml.kernel.org/r/20240812082605.743814-2-mpe@ellerman.id.au
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Jeff Xu <jeffxu@google.com>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Pedro Falcato <pedro.falcato@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/powerpc/include/asm/mmu_context.h
arch/powerpc/kernel/vdso.c