Eric Chan ab1e29acdb arm64: lockdep: enable checks for held locks when returning to userspace
Currently arm64 doesn't use CONFIG_GENERIC_ENTRY and doesn't call
lockdep_sys_exit() when returning to userspace.
This means that lockdep won't check for held locks when
returning to userspace, which would be useful to detect kernel bugs.

Call lockdep_sys_exit() when returning to userspace,
enabling checking for held locks.

At the same time, rename arm64's prepare_exit_to_user_mode() to
exit_to_user_mode_prepare() to more clearly align with the naming
in the generic entry code.

Signed-off-by: Eric Chan <ericchancf@google.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20230531090909.357047-1-ericchancf@google.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2023-06-06 17:35:52 +01:00
..
2023-05-05 12:56:55 -07:00
2023-05-05 12:56:55 -07:00
2023-05-19 11:05:42 -07:00
2023-05-04 12:25:05 -07:00
2023-05-05 12:56:55 -07:00
2023-05-05 12:56:55 -07:00
2023-05-05 12:56:55 -07:00
2023-05-05 12:56:55 -07:00
2023-05-05 12:56:55 -07:00
2023-05-05 12:56:55 -07:00
2023-05-18 09:04:45 -07:00
2023-05-19 11:11:04 -07:00
2023-05-05 12:56:55 -07:00
2023-05-05 12:56:55 -07:00
2023-05-10 00:21:30 +02:00
2023-05-21 13:58:37 -07:00
2023-05-05 12:56:55 -07:00