linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm/memfd: Fix spelling and grammatical issues
@ 2025-02-06  6:09 Liu Ye
  0 siblings, 0 replies; only message in thread
From: Liu Ye @ 2025-02-06  6:09 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, linux-kernel, Liu Ye

The comment "If a private mapping then writability is irrelevant" contains
a typo. It should be "If a private mapping then writability is irrelevant".
The comment "SEAL_EXEC implys SEAL_WRITE, making W^X from the start."
contains a typo. It should be "SEAL_EXEC implies SEAL_WRITE, making W^X
from the start."

Signed-off-by: Liu Ye <liuye@kylinos.cn>
---
 mm/memfd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/memfd.c b/mm/memfd.c
index 37f7be57c2f5..c64df1343059 100644
--- a/mm/memfd.c
+++ b/mm/memfd.c
@@ -259,7 +259,7 @@ static int memfd_add_seals(struct file *file, unsigned int seals)
 	}
 
 	/*
-	 * SEAL_EXEC implys SEAL_WRITE, making W^X from the start.
+	 * SEAL_EXEC implies SEAL_WRITE, making W^X from the start.
 	 */
 	if (seals & F_SEAL_EXEC && inode->i_mode & 0111)
 		seals |= F_SEAL_SHRINK|F_SEAL_GROW|F_SEAL_WRITE|F_SEAL_FUTURE_WRITE;
@@ -337,7 +337,7 @@ static int check_write_seal(unsigned long *vm_flags_ptr)
 	unsigned long vm_flags = *vm_flags_ptr;
 	unsigned long mask = vm_flags & (VM_SHARED | VM_WRITE);
 
-	/* If a private matting then writability is irrelevant. */
+	/* If a private mapping then writability is irrelevant. */
 	if (!(mask & VM_SHARED))
 		return 0;
 
-- 
2.25.1



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-02-06  6:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-06  6:09 [PATCH] mm/memfd: Fix spelling and grammatical issues Liu Ye

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox