Skip to contentSkip to conversation

docs/zh_CN: sync page_table_check.rst translation

PATCH RESEND In review Ye Liu 2 participants 2 messages Aug 19 – Sep 7

Subsystems (2)
lore
Share & tools
lore

Ye Liu

author
#0 lore raw

PATCH RESEND v2 1/1 docs/zh_CN: sync page_table_check.rst translation

From: Ye Liu <[email protected]>

Update the translation of page_table_check.rst to reflect changes in the English original, including the clarification on corruption detection and the new paragraph about userfaultfd wr-protect verification.

Update the translation through commit 8430557fc584 ("mm/page_table_check: support userfault wr-protect entries")

---
v2:
- Update the commit message.

 .../translations/zh_CN/mm/page_table_check.rst         | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
Documentation/translations/zh_CN/mm/page_table_check.rst +7 -3
index dc34570dceff..7ba5a39db487 100644
@@ -21,9 +21,13 @@
 当新的页面可以从用户空间访问时,页表检查通过将它们的页表项(PTEs PMD等)添加到页表中来执行额外
 的验证。
 
-在检测到损坏的情况下,内核会被崩溃。页表检查有一个小的性能和内存开销。因此,它在默认情况下是禁用
-的,但是在额外的加固超过性能成本的系统上,可以选择启用。另外,由于页表检查是同步的,它可以帮助调
-试双映射内存损坏问题,在错误的映射发生时崩溃内核,而不是在内存损坏错误发生后内核崩溃。
+在检测到大多数类型的损坏时,内核会崩溃。页表检查有一个小的性能和内存开销。因此,它在默认情况下是
+禁用的,但是在额外的加固超过性能成本的系统上,可以选择启用。另外,由于页表检查是同步的,它可以帮
+助调试双映射内存损坏问题,在错误的映射发生时崩溃内核,而不是在内存损坏错误发生后内核崩溃。
+
+页表检查还可用于对各种标志进行页表项检查,在检测到非法的标志组合时输出警告。目前,userfaultfd 是
+唯一的使用者,用于对 wr-protect 位与任何可写标志进行一致性检查。在这种情况下,非法的标志组合不会
+立即直接导致数据损坏,但会使只读数据变为可写,从而在后续修改页面内容时导致损坏。
 
 双重映射检测逻辑
 ================
Signature · 1 line
2.25.1
#1 lore raw
Quoted 23 lines · Ye Liu

From: Ye Liu<[email protected]>

Update the translation of page_table_check.rst to reflect changes in the English original, including the clarification on corruption detection and the new paragraph about userfaultfd wr-protect verification.

Update the translation through commit 8430557fc584 ("mm/page_table_check: support userfault wr-protect entries")

---
v2:
- Update the commit message.

  .../translations/zh_CN/mm/page_table_check.rst         | 10 +++++++---
  1 file changed, 7 insertions(+), 3 deletions(-)
Documentation/translations/zh_CN/mm/page_table_check.rst +0 -0
index dc34570dceff..7ba5a39db487 100644

Documentation/translations/zh_CN/mm/page_table_check.rst line 26

Quoted 9 lines
Documentation/translations/zh_CN/mm/page_table_check.rst +3 -3
@@ -21,9 +21,13 @@
  当新的页面可以从用户空间访问时,页表检查通过将它们的页表项(PTEs PMD等)添加到页表中来执行额外
  的验证。
 
-在检测到损坏的情况下,内核会被崩溃。页表检查有一个小的性能和内存开销。因此,它在默认情况下是禁用
-的,但是在额外的加固超过性能成本的系统上,可以选择启用。另外,由于页表检查是同步的,它可以帮助调
-试双映射内存损坏问题,在错误的映射发生时崩溃内核,而不是在内存损坏错误发生后内核崩溃。
+在检测到大多数类型的损坏时,内核会崩溃。页表检查有一个小的性能和内存开销。因此,它在默认情况下是
+禁用的,但是在额外的加固超过性能成本的系统上,可以选择启用。另外,由于页表检查是同步的,它可以帮
+助调试双映射内存损坏问题,在错误的映射发生时崩溃内核,而不是在内存损坏错误发生后内核崩溃。

This translation sounds too AI-generated and doesn't flow naturally in Chinese. Please revise it carefully

Quoted 9 lines
Documentation/translations/zh_CN/mm/page_table_check.rst +4 -1
+
+页表检查还可用于对各种标志进行页表项检查,在检测到非法的标志组合时输出警告。目前,userfaultfd 是
+唯一的使用者,用于对 wr-protect 位与任何可写标志进行一致性检查。在这种情况下,非法的标志组合不会
+立即直接导致数据损坏,但会使只读数据变为可写,从而在后续修改页面内容时导致损坏。
 
  双重映射检测逻辑
  ================
-- 2.25.1