]> www.infradead.org Git - users/jedix/linux-maple.git/commit
memfd_secret: use unsigned int rather than long as syscall flags type
authorMike Rapoport <rppt@linux.ibm.com>
Tue, 13 Apr 2021 22:21:46 +0000 (08:21 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Apr 2021 11:48:54 +0000 (21:48 +1000)
commit46684493b57e3a2042b52adebd13595e9930b08f
tree18939afda661878303f9f5d211c8cf1ae4d252cd
parent3dc5f1019282f157b5fe50ffcee4e8a7b5ac08a9
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>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
tools/testing/selftests/vm/memfd_secret.c