1 Star 0 Fork 34

WizardHowl/scipy

forked from src-openEuler/scipy 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-kexec_lock-Fix-comment-for-kexec_lock.patch 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
WizardHowl 提交于 2023-07-24 11:15 +08:00 . test
From 8e0cca7eacae347e6c164e9ab55d6fb5b3238890 Mon Sep 17 00:00:00 2001
From: Wenyu Liu <liuwenyu7@huawei.com>
Date: Fri, 21 Jul 2023 17:25:28 +0800
Subject: [PATCH] kexec_lock:Fix comment for kexec_lock
kexec_mutex is replaced by an atomic variable in
56314b90fd43bd2444 (panic, kexec: make __crash_kexec() NMI safe).
Fix some comment that still using kexec_mutex.
Signed-off-by: Wenyu Liu <liuwenyu7@huawei.com>
---
kernel/kexec_file.c | 2 +-
security/integrity/ima/ima_kexec.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/kexec_file.c b/kernel/kexec_file.c
index 881ba0d1714c..b5bbb2fe0668 100644
--- a/kernel/kexec_file.c
+++ b/kernel/kexec_file.c
@@ -624,7 +624,7 @@ int kexec_locate_mem_hole(struct kexec_buf *kbuf)
* kexec_add_buffer - place a buffer in a kexec segment
* @kbuf: Buffer contents and memory parameters.
*
- * This function assumes that kexec_mutex is held.
+ * This function assumes that kexec_lock is held.
* On successful return, @kbuf->mem will have the physical address of
* the buffer in memory.
*
diff --git a/security/integrity/ima/ima_kexec.c b/security/integrity/ima/ima_kexec.c
index 419dc405c831..ad133fe120db 100644
--- a/security/integrity/ima/ima_kexec.c
+++ b/security/integrity/ima/ima_kexec.c
@@ -77,7 +77,7 @@ static int ima_dump_measurement_list(unsigned long *buffer_size, void **buffer,
* Called during kexec_file_load so that IMA can add a segment to the kexec
* image for the measurement list for the next kernel.
*
- * This function assumes that kexec_mutex is held.
+ * This function assumes that kexec_lock is held.
*/
void ima_add_kexec_buffer(struct kimage *image)
{
--
2.33.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/WizardHowl/scipy.git
git@gitee.com:WizardHowl/scipy.git
WizardHowl
scipy
scipy
master

搜索帮助