You need to sign in or sign up before continuing.
未验证 提交 ffbead4e 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!333 Fix PASID use-after-free issue

Merge Pull Request from: @x56Jason 
 
This PR is to backport upstream fix for a PASID use-after-free issue that are missed in previous backporting.

## Intel-Kernel issue
#I67QJ2


## Test
Kernel build and boot

## Known Issue
N/A

## Default Config Change
N/A 
 
Link:https://gitee.com/openeuler/kernel/pulls/333 
Reviewed-by: Zheng Zengkai <zhengzengkai@huawei.com> 
Signed-off-by: Zheng Zengkai <zhengzengkai@huawei.com> 
......@@ -688,6 +688,7 @@ void __mmdrop(struct mm_struct *mm)
mmu_notifier_subscriptions_destroy(mm);
check_mm(mm);
put_user_ns(mm->user_ns);
mm_pasid_drop(mm);
free_mm(mm);
}
EXPORT_SYMBOL_GPL(__mmdrop);
......@@ -1137,7 +1138,6 @@ static inline void __mmput(struct mm_struct *mm)
}
if (mm->binfmt)
module_put(mm->binfmt->module);
mm_pasid_drop(mm);
mmdrop(mm);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册