]> 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:45 +0000 (08:21 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Apr 2021 11:48:53 +0000 (21:48 +1000)
commit7346cf88f51e9247069eb29cdad6c75b62409a61
tree9af4bb23375121cdd239928419414bde57f564a3
parenteeab3185713ea2d7999ece46eda086bab0ae4c76
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>
mm/secretmem.c