[GIT PULL] libnvdimm fixes for 5.13-rc2

2021-05-14 Thread Dan Williams
Hi Linus, please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm tags/libnvdimm-fixes-5.13-rc2 ...to receive a regression fix for a bootup crash condition introduced in -rc1 and some other minor fixups. This has all appeared in -next with no reported issues. --- The

[GIT PULL] dax fixes for v5.13-rc2

2021-05-14 Thread Dan Williams
Hi Linus, please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm tags/dax-fixes-5.13-rc2 ...to receive a fix for a hang condition in the filesystem-dax core when exercised by virtiofs. This bug has been there from the beginning, but the condition has not triggered on

Re: [PATCH v5 5/7] fsdax: Dedup file range to use a compare function

2021-05-14 Thread Darrick J. Wong
On Fri, May 14, 2021 at 08:35:44AM +, ruansy.f...@fujitsu.com wrote: > > > > -Original Message- > > From: Darrick J. Wong > > Subject: Re: [PATCH v5 5/7] fsdax: Dedup file range to use a compare > > function > > > > On Tue, May 11, 2021 at 11:09:31AM +0800, Shiyang Ruan wrote: > >

Re: [RFC 1/4] drivers/nvdimm: Add perf interface to expose nvdimm performance stats

2021-05-14 Thread Peter Zijlstra
On Thu, May 13, 2021 at 05:56:14PM +0530, kajoljain wrote: > But yes the current read/add/del functions are not adding value. We > could add an arch/platform specific function which could handle the > capturing of the counter data and do the rest of the operation here, > is this approach better?

RE: [PATCH v3 0/3] fsdax: Factor helper functions to simplify the code

2021-05-14 Thread ruansy.f...@fujitsu.com
> > Hi, Dan > > Do you have any comments on this? Ping > > > -- > Thanks, > Ruan Shiyang. > > > -Original Message- > > From: Shiyang Ruan > > Sent: Thursday, April 22, 2021 9:45 PM > > Subject: [PATCH v3 0/3] fsdax: Factor helper functions to simplify the > > code > > > > From:

Re: [PATCH v19 8/8] secretmem: test: add basic selftest for memfd_secret(2)

2021-05-14 Thread David Hildenbrand
On 13.05.21 20:47, Mike Rapoport wrote: From: Mike Rapoport The test verifies that file descriptor created with memfd_secret does not allow read/write operations, that secret memory mappings respect RLIMIT_MEMLOCK and that remote accesses with process_vm_read() and ptrace() to the secret

Re: [PATCH v19 7/8] arch, mm: wire up memfd_secret system call where relevant

2021-05-14 Thread David Hildenbrand
On 13.05.21 20:47, Mike Rapoport wrote: From: Mike Rapoport Wire up memfd_secret system call on architectures that define ARCH_HAS_SET_DIRECT_MAP, namely arm64, risc-v and x86. Signed-off-by: Mike Rapoport Acked-by: Palmer Dabbelt Acked-by: Arnd Bergmann Acked-by: Catalin Marinas Cc:

Re: [PATCH v19 6/8] PM: hibernate: disable when there are active secretmem users

2021-05-14 Thread David Hildenbrand
On 13.05.21 20:47, Mike Rapoport wrote: From: Mike Rapoport It is unsafe to allow saving of secretmem areas to the hibernation snapshot as they would be visible after the resume and this essentially will defeat the purpose of secret memory mappings. Prevent hibernation whenever there are

Re: [PATCH v19 5/8] mm: introduce memfd_secret system call to create "secret" memory areas

2021-05-14 Thread David Hildenbrand
#ifdef CONFIG_IA64 # include @@ -64,6 +65,9 @@ static inline int valid_mmap_phys_addr_range(unsigned long pfn, size_t size) #ifdef CONFIG_STRICT_DEVMEM static inline int page_is_allowed(unsigned long pfn) { + if (pfn_valid(pfn) && page_is_secretmem(pfn_to_page(pfn))) +

Re: [PATCH v19 5/8] mm: introduce memfd_secret system call to create "secret" memory areas

2021-05-14 Thread David Hildenbrand
On 13.05.21 20:47, Mike Rapoport wrote: From: Mike Rapoport Introduce "memfd_secret" system call with the ability to create memory areas visible only in the context of the owning process and not mapped not only to other processes but in the kernel page tables as well. The secretmem feature is

Re: [PATCH v19 3/8] set_memory: allow set_direct_map_*_noflush() for multiple pages

2021-05-14 Thread David Hildenbrand
On 13.05.21 20:47, Mike Rapoport wrote: From: Mike Rapoport The underlying implementations of set_direct_map_invalid_noflush() and set_direct_map_default_noflush() allow updating multiple contiguous pages at once. Add numpages parameter to set_direct_map_*_noflush() to expose this ability

RE: [PATCH v5 5/7] fsdax: Dedup file range to use a compare function

2021-05-14 Thread ruansy.f...@fujitsu.com
> -Original Message- > From: Darrick J. Wong > Subject: Re: [PATCH v5 5/7] fsdax: Dedup file range to use a compare function > > On Tue, May 11, 2021 at 11:09:31AM +0800, Shiyang Ruan wrote: > > With dax we cannot deal with readpage() etc. So, we create a dax > > comparison funciton

Re: [PATCH v19 2/8] riscv/Kconfig: make direct map manipulation options depend on MMU

2021-05-14 Thread David Hildenbrand
On 13.05.21 20:47, Mike Rapoport wrote: From: Mike Rapoport ARCH_HAS_SET_DIRECT_MAP and ARCH_HAS_SET_MEMORY configuration options have no meaning when CONFIG_MMU is disabled and there is no point to enable them for the nommu case. Add an explicit dependency on MMU for these options.

Re: [PATCH v19 1/8] mmap: make mlock_future_check() global

2021-05-14 Thread David Hildenbrand
On 13.05.21 20:47, Mike Rapoport wrote: From: Mike Rapoport It will be used by the upcoming secret memory implementation. Signed-off-by: Mike Rapoport Cc: Alexander Viro Cc: Andy Lutomirski Cc: Arnd Bergmann Cc: Borislav Petkov Cc: Catalin Marinas Cc: Christopher Lameter Cc: Dan