All of lore.kernel.org
 help / color / mirror / Atom feed
* + secretmem-test-add-basic-selftest-for-memfd_secret2-fix.patch added to -mm tree
@ 2020-12-14 23:30 akpm
  2020-12-15  8:09 ` Stephen Rothwell
  0 siblings, 1 reply; 3+ messages in thread
From: akpm @ 2020-12-14 23:30 UTC (permalink / raw)
  To: jhubbard, mm-commits, rppt, sfr


The patch titled
     Subject: secretmem-test-add-basic-selftest-for-memfd_secret2-fix
has been added to the -mm tree.  Its filename is
     secretmem-test-add-basic-selftest-for-memfd_secret2-fix.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/secretmem-test-add-basic-selftest-for-memfd_secret2-fix.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/secretmem-test-add-basic-selftest-for-memfd_secret2-fix.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: John Hubbard <jhubbard@nvidia.com>
Subject: secretmem-test-add-basic-selftest-for-memfd_secret2-fix

fix build

Link: https://lkml.kernel.org/r/248f928b-1383-48ea-8584-ec10146e60c9@nvidia.com
Cc: Mike Rapoport <rppt@linux.ibm.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 tools/testing/selftests/vm/memfd_secret.c |    2 --
 1 file changed, 2 deletions(-)

--- a/tools/testing/selftests/vm/memfd_secret.c~secretmem-test-add-basic-selftest-for-memfd_secret2-fix
+++ a/tools/testing/selftests/vm/memfd_secret.c
@@ -29,8 +29,6 @@
 
 #ifdef __NR_memfd_secret
 
-#include <linux/secretmem.h>
-
 #define PATTERN	0x55
 
 static const int prot = PROT_READ | PROT_WRITE;
_

Patches currently in -mm which might be from jhubbard@nvidia.com are

mm-gup_benchmark-rename-to-mm-gup_test.patch
selftests-vm-use-a-common-gup_testh.patch
selftests-vm-rename-run_vmtests-run_vmtestssh.patch
selftests-vm-minor-cleanup-makefile-and-gup_testc.patch
selftests-vm-only-some-gup_test-items-are-really-benchmarks.patch
selftests-vm-gup_test-introduce-the-dump_pages-sub-test.patch
selftests-vm-run_vmtestssh-update-and-clean-up-gup_test-invocation.patch
selftests-vm-hmm-tests-remove-the-libhugetlbfs-dependency.patch
selftests-vm-2x-speedup-for-run_vmtestssh.patch
mm-cleanup-remove-unused-tsk-arg-from-__access_remote_vm.patch
secretmem-test-add-basic-selftest-for-memfd_secret2-fix.patch


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

* Re: + secretmem-test-add-basic-selftest-for-memfd_secret2-fix.patch added to -mm tree
  2020-12-14 23:30 + secretmem-test-add-basic-selftest-for-memfd_secret2-fix.patch added to -mm tree akpm
@ 2020-12-15  8:09 ` Stephen Rothwell
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Rothwell @ 2020-12-15  8:09 UTC (permalink / raw)
  To: akpm; +Cc: jhubbard, mm-commits, rppt

[-- Attachment #1: Type: text/plain, Size: 362 bytes --]

Hi all,

On Mon, 14 Dec 2020 15:30:54 -0800 akpm@linux-foundation.org wrote:
>
> The patch titled
>      Subject: secretmem-test-add-basic-selftest-for-memfd_secret2-fix
> has been added to the -mm tree.  Its filename is
>      secretmem-test-add-basic-selftest-for-memfd_secret2-fix.patch

Added to linux-next today.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* + secretmem-test-add-basic-selftest-for-memfd_secret2-fix.patch added to -mm tree
@ 2021-04-01  0:34 akpm
  0 siblings, 0 replies; 3+ messages in thread
From: akpm @ 2021-04-01  0:34 UTC (permalink / raw)
  To: david, mm-commits, rppt, yury.norov


The patch titled
     Subject: memfd_secret: use unsigned int rather than long as syscall flags type
has been added to the -mm tree.  Its filename is
     secretmem-test-add-basic-selftest-for-memfd_secret2-fix.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/secretmem-test-add-basic-selftest-for-memfd_secret2-fix.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/secretmem-test-add-basic-selftest-for-memfd_secret2-fix.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Mike Rapoport <rppt@linux.ibm.com>
Subject: memfd_secret: use unsigned int rather than long as syscall flags type

Yuri Norov says:

  If parameter size is the same for native and compat ABIs, we may
  wire a syscall made by compat client to native handler. This is
  true for unsigned int, but not true for unsigned long or pointer.

  That's why I suggest using unsigned int and so avoid creating compat
  entry point.

Use unsigned int as the type of the flags parameter in memfd_secret()
system call.

Link: https://lkml.kernel.org/r/20210331142345.27532-1-rppt@kernel.org
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Acked-by: David Hildenbrand <david@redhat.com>
Acked-by: Yury Norov <yury.norov@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 tools/testing/selftests/vm/memfd_secret.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/tools/testing/selftests/vm/memfd_secret.c~secretmem-test-add-basic-selftest-for-memfd_secret2-fix
+++ a/tools/testing/selftests/vm/memfd_secret.c
@@ -38,7 +38,7 @@ static unsigned long page_size;
 static unsigned long mlock_limit_cur;
 static unsigned long mlock_limit_max;
 
-static int memfd_secret(unsigned long flags)
+static int memfd_secret(unsigned int flags)
 {
 	return syscall(__NR_memfd_secret, flags);
 }
_

Patches currently in -mm which might be from rppt@linux.ibm.com are

nds32-flush_dcache_page-use-page_mapping_file-to-avoid-races-with-swapoff.patch
mm-cma-rename-pf_memalloc_nocma-to-pf_memalloc_pin-fix.patch
mmap-make-mlock_future_check-global.patch
riscv-kconfig-make-direct-map-manipulation-options-depend-on-mmu.patch
set_memory-allow-set_direct_map__noflush-for-multiple-pages.patch
set_memory-allow-querying-whether-set_direct_map_-is-actually-enabled.patch
mm-introduce-memfd_secret-system-call-to-create-secret-memory-areas.patch
mm-introduce-memfd_secret-system-call-to-create-secret-memory-areas-fix.patch
pm-hibernate-disable-when-there-are-active-secretmem-users.patch
arch-mm-wire-up-memfd_secret-system-call-where-relevant.patch
arch-mm-wire-up-memfd_secret-system-call-where-relevant-fix.patch
secretmem-test-add-basic-selftest-for-memfd_secret2.patch
secretmem-test-add-basic-selftest-for-memfd_secret2-fix.patch


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

end of thread, other threads:[~2021-04-01  0:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-14 23:30 + secretmem-test-add-basic-selftest-for-memfd_secret2-fix.patch added to -mm tree akpm
2020-12-15  8:09 ` Stephen Rothwell
2021-04-01  0:34 akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.