linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hugetlbfs: add MTE support
@ 2024-06-25 23:37 Yang Shi
  2024-06-26 20:40 ` Andrew Morton
  2024-07-02 12:34 ` Catalin Marinas
  0 siblings, 2 replies; 16+ messages in thread
From: Yang Shi @ 2024-06-25 23:37 UTC (permalink / raw)
  To: muchun.song, catalin.marinas, will, akpm
  Cc: yang, linux-mm, linux-arm-kernel, linux-kernel

MTE can be supported on ram based filesystem. It is supported on tmpfs.
There is use case to use MTE on hugetlbfs as well, adding MTE support.

Signed-off-by: Yang Shi <yang@os.amperecomputing.com>
---
 fs/hugetlbfs/inode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c
index ecad73a4f713..c34faef62daf 100644
--- a/fs/hugetlbfs/inode.c
+++ b/fs/hugetlbfs/inode.c
@@ -110,7 +110,7 @@ static int hugetlbfs_file_mmap(struct file *file, struct vm_area_struct *vma)
 	 * way when do_mmap unwinds (may be important on powerpc
 	 * and ia64).
 	 */
-	vm_flags_set(vma, VM_HUGETLB | VM_DONTEXPAND);
+	vm_flags_set(vma, VM_HUGETLB | VM_DONTEXPAND | VM_MTE_ALLOWED);
 	vma->vm_ops = &hugetlb_vm_ops;
 
 	ret = seal_check_write(info->seals, vma);
-- 
2.41.0



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2024-08-15 19:16 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-25 23:37 [PATCH] hugetlbfs: add MTE support Yang Shi
2024-06-26 20:40 ` Andrew Morton
2024-06-26 20:45   ` Yang Shi
2024-06-26 23:43     ` Yang Shi
2024-07-02 12:34 ` Catalin Marinas
2024-07-02 13:09   ` David Hildenbrand
2024-07-03  0:20     ` Yang Shi
2024-07-03 10:24       ` David Hildenbrand
2024-07-03 13:57         ` Catalin Marinas
2024-07-03  0:04   ` Yang Shi
2024-07-03  0:15     ` Yang Shi
2024-07-04 13:44       ` Catalin Marinas
2024-07-09 17:42         ` Yang Shi
2024-08-13 17:08           ` Yang Shi
2024-08-15 10:31           ` Catalin Marinas
2024-08-15 19:15             ` Yang Shi

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