Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1342988

Re: [PATCH v2 0/5] all: s390: make compat wrappers the generic solution

From Heiko Carstens <heiko.carstens@de.ibm.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 0/5] all: s390: make compat wrappers the generic solution
Date 2016-02-25 10:00 +0100
Message-ID <r5ZWa-1ea-11@gated-at.bofh.it> (permalink)
References <r5MvU-4Y-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Feb 24, 2016 at 09:34:09PM +0300, Yury Norov wrote:
> The problem that makes us use wrappers is that some compat
> architectures allows user code to access top halves of registers.
> This is not a problem for syscalls that are already handled by compat
> code, or for that who has types of the same size in kernel and
> userspace. In case of s390 and lp64/ilp32 the problem is in pointer
> types, long, unsigned long.
> 
> S390 folks already have the solution for it. In this patchset,
> it is turned to be general, as arm64/ilp32 needs it too.
> 
> This patchset is created as the part of the work of enabling arm64
> with ILP32 user mode. See details here:
> http://thread.gmane.org/gmane.linux.kernel/2126946
> 
> This is the implementation of one of two possible approaches. First
> one defines new syscall handler declaration macro, that creates both compat and
> non-compat handlers, see [1]. This one declares all wrappers in separated file
> kernel/compat_wrapper.c
> 
> Build-tested on s390.
> 
> [1] http://www.spinics.net/lists/linux-s390/msg11593.html
> 
> Yury Norov (5):
>   all: syscall wrappers: add documentation
>   all: introduce COMPAT_WRAPPER option and enable it for s390
>   all: s390: move wrapper infrastructure to generic headers
>   all: s390: move compat_wrappers.c from arch/s390/kernel to kernel/
>   all: wrap needed syscalls in generic unistd

Looks good to me. You may consider the possible changes I sent as reply to
some of your patches.
However from an s390 point of view:

Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/5] all: s390: make compat wrappers the generic solution Yury Norov <ynorov@caviumnetworks.com> - 2016-02-24 19:40 +0100
  [PATCH 3/5] all: s390: move wrapper infrastructure to generic headers Yury Norov <ynorov@caviumnetworks.com> - 2016-02-24 19:40 +0100
    Re: [PATCH 3/5] all: s390: move wrapper infrastructure to generic  headers Heiko Carstens <heiko.carstens@de.ibm.com> - 2016-02-25 10:00 +0100
      Re: [PATCH 3/5] all: s390: move wrapper infrastructure to generic  headers Yury Norov <ynorov@caviumnetworks.com> - 2016-02-25 21:30 +0100
        Re: [PATCH 3/5] all: s390: move wrapper infrastructure to generic  headers Heiko Carstens <heiko.carstens@de.ibm.com> - 2016-02-25 23:30 +0100
  [PATCH 2/5] all: introduce COMPAT_WRAPPER option and enable it for s390 Yury Norov <ynorov@caviumnetworks.com> - 2016-02-24 19:40 +0100
    Re: [PATCH 2/5] all: introduce COMPAT_WRAPPER option and enable it  for s390 Heiko Carstens <heiko.carstens@de.ibm.com> - 2016-02-25 10:00 +0100
      Re: [PATCH 2/5] all: introduce COMPAT_WRAPPER option and enable it  for s390 Yury Norov <ynorov@caviumnetworks.com> - 2016-02-25 21:30 +0100
        Re: [PATCH 2/5] all: introduce COMPAT_WRAPPER option and enable it  for s390 Heiko Carstens <heiko.carstens@de.ibm.com> - 2016-02-25 23:20 +0100
  [PATCH 1/5] all: syscall wrappers: add documentation Yury Norov <ynorov@caviumnetworks.com> - 2016-02-24 19:40 +0100
  [PATCH 5/5] all: wrap needed syscalls in generic unistd Yury Norov <ynorov@caviumnetworks.com> - 2016-02-24 19:40 +0100
  [PATCH 4/5] all: s390: move compat_wrappers.c from arch/s390/kernel to kernel/ Yury Norov <ynorov@caviumnetworks.com> - 2016-02-24 19:40 +0100
    Re: [PATCH 4/5] all: s390: move compat_wrappers.c from  arch/s390/kernel to kernel/ Heiko Carstens <heiko.carstens@de.ibm.com> - 2016-02-25 10:00 +0100
    Re: [PATCH 4/5] all: s390: move compat_wrappers.c from  arch/s390/kernel to kernel/ Yury Norov <ynorov@caviumnetworks.com> - 2016-02-25 21:30 +0100
  Re: [PATCH v2 0/5] all: s390: make compat wrappers the generic  solution Heiko Carstens <heiko.carstens@de.ibm.com> - 2016-02-25 10:00 +0100

csiph-web