Re: [v3 PATCH] arm64: kasan: instrument user memory access API

2016-06-21 Thread Catalin Marinas
On Wed, Jun 08, 2016 at 02:40:56PM -0700, Yang Shi wrote: > The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef > ("x86/kasan: instrument user memory access API") added KASAN instrument to > x86 user memory access API, so added such instrument to ARM64 too. > > Define __copy_to/from_user

Re: [v3 PATCH] arm64: kasan: instrument user memory access API

2016-06-21 Thread Catalin Marinas
On Wed, Jun 08, 2016 at 02:40:56PM -0700, Yang Shi wrote: > The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef > ("x86/kasan: instrument user memory access API") added KASAN instrument to > x86 user memory access API, so added such instrument to ARM64 too. > > Define __copy_to/from_user

[v3 PATCH] arm64: kasan: instrument user memory access API

2016-06-08 Thread Yang Shi
The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef ("x86/kasan: instrument user memory access API") added KASAN instrument to x86 user memory access API, so added such instrument to ARM64 too. Define __copy_to/from_user in C in order to add kasan_check_read/write call, rename assembly

[v3 PATCH] arm64: kasan: instrument user memory access API

2016-06-08 Thread Yang Shi
The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef ("x86/kasan: instrument user memory access API") added KASAN instrument to x86 user memory access API, so added such instrument to ARM64 too. Define __copy_to/from_user in C in order to add kasan_check_read/write call, rename assembly

Re: [v2 PATCH] arm64: kasan: instrument user memory access API

2016-06-06 Thread Mark Rutland
On Fri, May 27, 2016 at 02:01:03PM -0700, Yang Shi wrote: > The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef > ("x86/kasan: instrument user memory access API") added KASAN instrument to > x86 user memory access API, so added such instrument to ARM64 too. > > Define __copy_to/from_user

Re: [v2 PATCH] arm64: kasan: instrument user memory access API

2016-06-06 Thread Mark Rutland
On Fri, May 27, 2016 at 02:01:03PM -0700, Yang Shi wrote: > The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef > ("x86/kasan: instrument user memory access API") added KASAN instrument to > x86 user memory access API, so added such instrument to ARM64 too. > > Define __copy_to/from_user

Re: [v2 PATCH] arm64: kasan: instrument user memory access API

2016-06-06 Thread Shi, Yang
Hi Will & Catalin, Any comment for this patch? Thanks, Yang On 5/27/2016 2:01 PM, Yang Shi wrote: The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef ("x86/kasan: instrument user memory access API") added KASAN instrument to x86 user memory access API, so added such instrument to

Re: [v2 PATCH] arm64: kasan: instrument user memory access API

2016-06-06 Thread Shi, Yang
Hi Will & Catalin, Any comment for this patch? Thanks, Yang On 5/27/2016 2:01 PM, Yang Shi wrote: The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef ("x86/kasan: instrument user memory access API") added KASAN instrument to x86 user memory access API, so added such instrument to

Re: [v2 PATCH] arm64: kasan: instrument user memory access API

2016-05-30 Thread Andrey Ryabinin
On 05/28/2016 12:01 AM, Yang Shi wrote: > The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef > ("x86/kasan: instrument user memory access API") added KASAN instrument to > x86 user memory access API, so added such instrument to ARM64 too. > > Define __copy_to/from_user in C in order to

Re: [v2 PATCH] arm64: kasan: instrument user memory access API

2016-05-30 Thread Andrey Ryabinin
On 05/28/2016 12:01 AM, Yang Shi wrote: > The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef > ("x86/kasan: instrument user memory access API") added KASAN instrument to > x86 user memory access API, so added such instrument to ARM64 too. > > Define __copy_to/from_user in C in order to

[v2 PATCH] arm64: kasan: instrument user memory access API

2016-05-27 Thread Yang Shi
The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef ("x86/kasan: instrument user memory access API") added KASAN instrument to x86 user memory access API, so added such instrument to ARM64 too. Define __copy_to/from_user in C in order to add kasan_check_read/write call, rename assembly

[v2 PATCH] arm64: kasan: instrument user memory access API

2016-05-27 Thread Yang Shi
The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef ("x86/kasan: instrument user memory access API") added KASAN instrument to x86 user memory access API, so added such instrument to ARM64 too. Define __copy_to/from_user in C in order to add kasan_check_read/write call, rename assembly

Re: [PATCH] arm64: kasan: instrument user memory access API

2016-05-27 Thread Shi, Yang
On 5/27/2016 10:46 AM, Mark Rutland wrote: On Fri, May 27, 2016 at 09:34:03AM -0700, Shi, Yang wrote: On 5/27/2016 4:02 AM, Andrey Ryabinin wrote: On 05/26/2016 09:43 PM, Yang Shi wrote: The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef ("x86/kasan: instrument user memory access

Re: [PATCH] arm64: kasan: instrument user memory access API

2016-05-27 Thread Shi, Yang
On 5/27/2016 10:46 AM, Mark Rutland wrote: On Fri, May 27, 2016 at 09:34:03AM -0700, Shi, Yang wrote: On 5/27/2016 4:02 AM, Andrey Ryabinin wrote: On 05/26/2016 09:43 PM, Yang Shi wrote: The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef ("x86/kasan: instrument user memory access

Re: [PATCH] arm64: kasan: instrument user memory access API

2016-05-27 Thread Mark Rutland
On Fri, May 27, 2016 at 09:34:03AM -0700, Shi, Yang wrote: > On 5/27/2016 4:02 AM, Andrey Ryabinin wrote: > > > > > >On 05/26/2016 09:43 PM, Yang Shi wrote: > >>The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef > >>("x86/kasan: instrument user memory access API") added KASAN instrument

Re: [PATCH] arm64: kasan: instrument user memory access API

2016-05-27 Thread Mark Rutland
On Fri, May 27, 2016 at 09:34:03AM -0700, Shi, Yang wrote: > On 5/27/2016 4:02 AM, Andrey Ryabinin wrote: > > > > > >On 05/26/2016 09:43 PM, Yang Shi wrote: > >>The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef > >>("x86/kasan: instrument user memory access API") added KASAN instrument

Re: [PATCH] arm64: kasan: instrument user memory access API

2016-05-27 Thread Shi, Yang
On 5/27/2016 4:02 AM, Andrey Ryabinin wrote: On 05/26/2016 09:43 PM, Yang Shi wrote: The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef ("x86/kasan: instrument user memory access API") added KASAN instrument to x86 user memory access API, so added such instrument to ARM64 too.

Re: [PATCH] arm64: kasan: instrument user memory access API

2016-05-27 Thread Shi, Yang
On 5/27/2016 4:02 AM, Andrey Ryabinin wrote: On 05/26/2016 09:43 PM, Yang Shi wrote: The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef ("x86/kasan: instrument user memory access API") added KASAN instrument to x86 user memory access API, so added such instrument to ARM64 too.

Re: [PATCH] arm64: kasan: instrument user memory access API

2016-05-27 Thread Mark Rutland
Hi, On Thu, May 26, 2016 at 11:43:51AM -0700, Yang Shi wrote: > The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef > ("x86/kasan: instrument user memory access API") added KASAN instrument to > x86 user memory access API, so added such instrument to ARM64 too. > > Tested by test_kasan

Re: [PATCH] arm64: kasan: instrument user memory access API

2016-05-27 Thread Mark Rutland
Hi, On Thu, May 26, 2016 at 11:43:51AM -0700, Yang Shi wrote: > The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef > ("x86/kasan: instrument user memory access API") added KASAN instrument to > x86 user memory access API, so added such instrument to ARM64 too. > > Tested by test_kasan

Re: [PATCH] arm64: kasan: instrument user memory access API

2016-05-27 Thread Andrey Ryabinin
On 05/26/2016 09:43 PM, Yang Shi wrote: > The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef > ("x86/kasan: instrument user memory access API") added KASAN instrument to > x86 user memory access API, so added such instrument to ARM64 too. > > Tested by test_kasan module. > >

Re: [PATCH] arm64: kasan: instrument user memory access API

2016-05-27 Thread Andrey Ryabinin
On 05/26/2016 09:43 PM, Yang Shi wrote: > The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef > ("x86/kasan: instrument user memory access API") added KASAN instrument to > x86 user memory access API, so added such instrument to ARM64 too. > > Tested by test_kasan module. > >

[PATCH] arm64: kasan: instrument user memory access API

2016-05-26 Thread Yang Shi
The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef ("x86/kasan: instrument user memory access API") added KASAN instrument to x86 user memory access API, so added such instrument to ARM64 too. Tested by test_kasan module. Signed-off-by: Yang Shi ---

[PATCH] arm64: kasan: instrument user memory access API

2016-05-26 Thread Yang Shi
The upstream commit 1771c6e1a567ea0ba20a4ffe68a1419fd8ef ("x86/kasan: instrument user memory access API") added KASAN instrument to x86 user memory access API, so added such instrument to ARM64 too. Tested by test_kasan module. Signed-off-by: Yang Shi --- arch/arm64/include/asm/uaccess.h |