]> Git Repo - linux.git/commit
hugetlb: implement memfd sealing
authorMarc-André Lureau <[email protected]>
Thu, 1 Feb 2018 00:19:25 +0000 (16:19 -0800)
committerLinus Torvalds <[email protected]>
Thu, 1 Feb 2018 01:18:39 +0000 (17:18 -0800)
commitff62a34210441103108d435ae8a00a777c4dcb99
tree02df0de924782bd15978220e80180b04b669c358
parentda14c1e524a56d62b846f73ae44fd722d63747b6
hugetlb: implement memfd sealing

Implements memfd sealing, similar to shmem:
 - WRITE: deny fallocate(PUNCH_HOLE). mmap() write is denied in
   memfd_add_seals(). write() doesn't exist for hugetlbfs.
 - SHRINK: added similar check as shmem_setattr()
 - GROW: added similar check as shmem_setattr() & shmem_fallocate()

Except write() operation that doesn't exist with hugetlbfs, that should
make sealing as close as it can be to shmem support.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Marc-André Lureau <[email protected]>
Reviewed-by: Mike Kravetz <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: David Herrmann <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/hugetlbfs/inode.c
include/linux/hugetlb.h
This page took 0.079464 seconds and 4 git commands to generate.