Commit abde6b94 authored by Wei Li's avatar Wei Li Committed by Zheng Zengkai
Browse files

stop_machine: mask pseudo nmi before running the callback

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4JBQ8



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

Kprobes use 'stop_machine' to modify code which could be ran in the
pseudo nmi context at the same time. This patch mask pseudo nmi before
running the stop_machine callback to avoid this race condition.

Signed-off-by: default avatarWei Li <liwei391@huawei.com>
Reviewed-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarCheng Jian <cj.chengjian@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent da6731e7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment