Files
linux/arch/powerpc/kernel
Michael Ellerman edb4a8bffd powerpc/vdso: refactor error handling
Linus noticed that the error handling in __arch_setup_additional_pages()
fails to clear the mm VDSO pointer if _install_special_mapping() fails. 
In practice there should be no actual bug, because if there's an error the
VDSO pointer is cleared later in arch_setup_additional_pages().

However it's no longer necessary to set the pointer before installing the
mapping.  Commit c1bab64360 ("powerpc/vdso: Move to
_install_special_mapping() and remove arch_vma_name()") reworked the code
so that the VMA name comes from the vm_special_mapping.name, rather than
relying on arch_vma_name().

So rework the code to only set the VDSO pointer once the mappings have
been installed correctly, and remove the stale comment.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Michael Ellerman <[email protected]>
Reviewed-by: Liam R. Howlett <[email protected]>
Cc: Christophe Leroy <[email protected]>
Cc: Jeff Xu <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Nicholas Piggin <[email protected]>
Cc: Pedro Falcato <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
2024-09-01 20:26:13 -07:00
..
2024-05-08 00:21:30 +10:00
2021-12-09 22:41:21 +11:00
2023-10-01 23:09:02 +11:00
2022-05-05 22:12:44 +10:00
2022-05-08 22:15:40 +10:00
2023-10-10 13:35:55 -06:00
2024-06-28 22:28:47 +10:00
2022-09-26 23:00:14 +10:00
…
2024-06-28 22:28:48 +10:00
2024-06-28 22:28:48 +10:00
2022-09-26 23:00:14 +10:00
2024-06-28 22:28:47 +10:00
2021-12-09 22:41:21 +11:00
2024-06-28 22:28:47 +10:00
2024-05-08 00:21:30 +10:00
…
…
2022-05-08 22:15:40 +10:00
2023-10-10 13:35:55 -06:00
2022-05-08 22:15:40 +10:00
2022-05-08 22:15:40 +10:00
2024-03-03 22:20:29 +11:00
2024-05-08 00:21:30 +10:00
…
2022-09-26 22:47:37 +10:00
…
2024-05-08 00:21:30 +10:00
2024-06-28 22:28:48 +10:00
2024-06-28 22:28:47 +10:00
2024-06-28 22:28:47 +10:00
2024-09-01 20:26:13 -07:00
2021-12-09 22:41:21 +11:00