[PATCH 7/9] ARM: entry: call __exit_to_user_mode_validate() when returning to user

Xie Yuanbin posted 9 patches 2 weeks ago
[PATCH 7/9] ARM: entry: call __exit_to_user_mode_validate() when returning to user
Posted by Xie Yuanbin 2 weeks ago
Call __exit_to_user_mode_validate() when returning to user, just like
what other architectures do.

Signed-off-by: Xie Yuanbin <qq570070308@gmail.com>
---
 arch/arm/kernel/entry.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/kernel/entry.c b/arch/arm/kernel/entry.c
index 5de345e9146f..85df47b5c359 100644
--- a/arch/arm/kernel/entry.c
+++ b/arch/arm/kernel/entry.c
@@ -18,6 +18,7 @@ void arm_exit_to_user_mode_no_work_pending(void)
 	if (IS_ENABLED(CONFIG_GENERIC_ENTRY))
 		tick_nohz_user_enter_prepare();
 	rseq_irqentry_exit_to_user_mode();
+	__exit_to_user_mode_validate();
 	exit_to_user_mode();
 #ifdef CONFIG_KSTACK_ERASE
 	stackleak_erase_on_task_stack();
-- 
2.51.0