Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm/memfd: fix spelling and grammatical issues

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."

Link: https://lkml.kernel.org/r/20250206060958.98010-1-liuye@kylinos.cn
Signed-off-by: Liu Ye <liuye@kylinos.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Liu Ye and committed by
Andrew Morton
33c9b01e 4000e3d0

+2 -2
+2 -2
mm/memfd.c
··· 259 259 } 260 260 261 261 /* 262 - * SEAL_EXEC implys SEAL_WRITE, making W^X from the start. 262 + * SEAL_EXEC implies SEAL_WRITE, making W^X from the start. 263 263 */ 264 264 if (seals & F_SEAL_EXEC && inode->i_mode & 0111) 265 265 seals |= F_SEAL_SHRINK|F_SEAL_GROW|F_SEAL_WRITE|F_SEAL_FUTURE_WRITE; ··· 337 337 unsigned long vm_flags = *vm_flags_ptr; 338 338 unsigned long mask = vm_flags & (VM_SHARED | VM_WRITE); 339 339 340 - /* If a private matting then writability is irrelevant. */ 340 + /* If a private mapping then writability is irrelevant. */ 341 341 if (!(mask & VM_SHARED)) 342 342 return 0; 343 343