Re: [PATCH 13/18] kernel: add kcompat_sys_{f,}statfs64()

2018-05-15 Thread Dominik Brodowski
On Tue, May 15, 2018 at 10:53:51AM +0100, Mark Rutland wrote: > On Mon, May 14, 2018 at 10:34:14PM +0200, Dominik Brodowski wrote: > > On Mon, May 14, 2018 at 06:14:28PM +0100, Mark Rutland wrote: > > > On Mon, May 14, 2018 at 10:46:35AM +0100, Mark Rutland wrote: > > > > +#ifdef CONFIG_COMPAT > >

Re: [PATCH 13/18] kernel: add kcompat_sys_{f,}statfs64()

2018-05-15 Thread Mark Rutland
On Mon, May 14, 2018 at 10:34:14PM +0200, Dominik Brodowski wrote: > On Mon, May 14, 2018 at 06:14:28PM +0100, Mark Rutland wrote: > > On Mon, May 14, 2018 at 10:46:35AM +0100, Mark Rutland wrote: > > > +#ifdef CONFIG_COMPAT > > > +int kcompat_sys_statfs64(const char __user * pathname, compat_size_

Re: [PATCH 13/18] kernel: add kcompat_sys_{f,}statfs64()

2018-05-14 Thread Dominik Brodowski
On Mon, May 14, 2018 at 06:14:28PM +0100, Mark Rutland wrote: > On Mon, May 14, 2018 at 10:46:35AM +0100, Mark Rutland wrote: > > Using this helper allows us to avoid the in-kernel calls to the > > compat_sys_{f,}statfs64() sycalls, as are necessary for parameter > > mangling in arm64's compat hand

Re: [PATCH 13/18] kernel: add kcompat_sys_{f,}statfs64()

2018-05-14 Thread Mark Rutland
On Mon, May 14, 2018 at 10:46:35AM +0100, Mark Rutland wrote: > Using this helper allows us to avoid the in-kernel calls to the > compat_sys_{f,}statfs64() sycalls, as are necessary for parameter > mangling in arm64's compat handling. > > Following the example of ksys_* functions, kcompat_sys_* fu

[PATCH 13/18] kernel: add kcompat_sys_{f,}statfs64()

2018-05-14 Thread Mark Rutland
Using this helper allows us to avoid the in-kernel calls to the compat_sys_{f,}statfs64() sycalls, as are necessary for parameter mangling in arm64's compat handling. Following the example of ksys_* functions, kcompat_sys_* functions are intended to be a drop-in replacement for their compat_sys_*