Commit 6c7ab876 authored by Frederic Weisbecker's avatar Frederic Weisbecker Committed by Zheng Zengkai
Browse files

entry: Explicitly flush pending rcuog wakeup before last rescheduling point

mainline inclusion
from mainline-v5.12-rc1
commit 47b8ff19
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4U05V


CVE: NA

-------------------------------------------------------------------------

Following the idle loop model, cleanly check for pending rcuog wakeup
before the last rescheduling point on resuming to user mode. This
way we can avoid to do it from rcu_user_enter() with the last resort
self-IPI hack that enforces rescheduling.

Signed-off-by: default avatarFrederic Weisbecker <frederic@kernel.org>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20210131230548.32970-5-frederic@kernel.org


Conflicts:
	kernel/entry/common.c

Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
Reviewed-by: default avatarCheng Jian <cj.chengjian@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent a19ce198
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment