linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] mm: adds MAP_NOSIGBUS extension for shmem read
@ 2021-06-01 23:22 Ming Lin
  2021-06-01 23:22 ` [PATCH 1/2] mm: make "vm_flags" be an u64 Ming Lin
  2021-06-01 23:22 ` [PATCH 2/2] mm: adds NOSIGBUS extension for out-of-band shmem read Ming Lin
  0 siblings, 2 replies; 20+ messages in thread
From: Ming Lin @ 2021-06-01 23:22 UTC (permalink / raw)
  To: Linus Torvalds, Hugh Dickins, Simon Ser; +Cc: linux-mm, linux-kernel, Ming Lin

These 2 patches are based on the discussion of "Sealed memfd & no-fault mmap"
at https://bit.ly/3pdwOGR

patch 1: make "vm_flags" be an u64, so we can have enough bits on 32-bit
architectures. Then we can add VM_NOSIGBUS which is bit 38.

patch 2: support no-fault mmap for shmem read

Ming Lin (2):
  mm: make "vm_flags" be an u64
  mm: adds NOSIGBUS extension for out-of-band shmem read

 arch/arm64/Kconfig                     |   1 -
 arch/powerpc/Kconfig                   |   1 -
 arch/x86/Kconfig                       |   1 -
 include/linux/mm.h                     | 102 ++++++++++++++++-----------------
 include/linux/mm_types.h               |   4 +-
 include/linux/mman.h                   |   5 +-
 include/uapi/asm-generic/mman-common.h |   1 +
 mm/Kconfig                             |   2 -
 mm/memory.c                            |   2 +-
 mm/mmap.c                              |   5 +-
 mm/shmem.c                             |  17 +++++-
 11 files changed, 76 insertions(+), 65 deletions(-)

-- 
1.8.3.1



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

end of thread, other threads:[~2021-06-03 19:57 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-01 23:22 [PATCH 0/2] mm: adds MAP_NOSIGBUS extension for shmem read Ming Lin
2021-06-01 23:22 ` [PATCH 1/2] mm: make "vm_flags" be an u64 Ming Lin
2021-06-02  1:58   ` kernel test robot
2021-06-02  2:06   ` kernel test robot
2021-06-01 23:22 ` [PATCH 2/2] mm: adds NOSIGBUS extension for out-of-band shmem read Ming Lin
2021-06-02  0:16   ` Linus Torvalds
2021-06-02  1:06     ` Ming Lin
2021-06-02  2:13     ` Hugh Dickins
2021-06-02  2:02   ` kernel test robot
2021-06-02  3:49   ` Hugh Dickins
2021-06-03  0:05     ` Ming Lin
2021-06-03  0:46       ` Hugh Dickins
2021-06-03 18:25         ` Linus Torvalds
2021-06-03 19:07           ` Hugh Dickins
2021-06-03 19:12             ` Linus Torvalds
2021-06-03 19:15               ` Linus Torvalds
2021-06-03 19:24               ` Andy Lutomirski
2021-06-03 19:35                 ` Simon Ser
2021-06-03 19:57         ` Ming Lin
2021-06-02  9:30   ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).