aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strcpy.c
diff options
context:
space:
mode:
authorEric Chan <[email protected]>2023-05-31 09:09:09 +0000
committerCatalin Marinas <[email protected]>2023-06-06 17:35:52 +0100
commitab1e29acdb33c971e1af8ed8ec427bd1deff5f32 (patch)
tree381ccec6cf78fd5b92b7cf27dfd637566c59cdff /lib/test_fortify/write_overflow-strcpy.c
parent56b77ba112d48becc3e41c9fe2b1533ba220b7c3 (diff)
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 <[email protected]> Acked-by: Mark Rutland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strcpy.c')
0 files changed, 0 insertions, 0 deletions