]> 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)
commit297ccca8b824ca66349a50cb08580df2619dceae
treeb70f7561306cf46a0a369edf99adf1a2a7630665
parentfb8c08c237eb9464b1bf918a9e2e34c506c67e98
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>
include/linux/syscalls.h