Skip to content

Use guest mem inodes instead of anonymous inodes

Ackerley Tng kvm linux-fsdevel linux-mm linux-security-module lkml selinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2fs: Provide function that allocates a secure anonymous inodefs/anon_inodes.c include/linux/fs.h mm/secretmem.c+18 -1411 replies
2/2KVM: guest_memfd: Use guest mem inodes instead of anonymous inodesinclude/uapi/linux/magic.h virt/kvm/guest_memfd.c virt/kvm/kvm_main.c +1 more+125 -261 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchDavid Hildenbrand
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] Use guest mem inodes instead of anonymous inodes

Hi,

This small patch series makes guest_memfd use guest mem inodes instead of anonymous inodes and also includes some refactoring to expose a new function that allocates an inode and runs security checks.

This patch series will serve as a common base for some in-flight series:

* Add NUMA mempolicy support for KVM guest-memfd [1]
* New KVM ioctl to link a gmem inode to a new gmem file [2]
* Restricted mapping of guest_memfd at the host and arm64 support [3] aka shared/private conversion support for guest_memfd

[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/lkml/[email protected]/
[3] https://lore.kernel.org/all/[email protected]/

Ackerley Tng (2):
fs: Provide function that allocates a secure anonymous inode
KVM: guest_memfd: Use guest mem inodes instead of anonymous inodes

 fs/anon_inodes.c           |  22 ++++--
 include/linux/fs.h         |   1 +
 include/uapi/linux/magic.h |   1 +
 mm/secretmem.c             |   9 +--
 virt/kvm/guest_memfd.c     | 134 +++++++++++++++++++++++++++++++------
 virt/kvm/kvm_main.c        |   7 +-
 virt/kvm/kvm_mm.h          |   9 ++-
 7 files changed, 143 insertions(+), 40 deletions(-)

base-commit: a5806cd506af5a7c19bcd596e4708b5c464bfd21 --
2.49.0.1204.g71687c7c1d-goog