Re: [PATCH 1/6] arm64, vdso: Define vdso_{start,end} as array

2017-06-06 Thread Kees Cook
On Tue, Jun 6, 2017 at 2:49 AM, Will Deacon wrote: > On Tue, Jun 06, 2017 at 10:43:52AM +0100, Catalin Marinas wrote: >> On Mon, Jun 05, 2017 at 09:52:30PM -0700, Kees Cook wrote: >> > Adjust vdso_{start|end} to be char arrays to avoid compile-time analysis >> > that flags

Re: [PATCH 1/6] arm64, vdso: Define vdso_{start,end} as array

2017-06-06 Thread Kees Cook
On Tue, Jun 6, 2017 at 2:49 AM, Will Deacon wrote: > On Tue, Jun 06, 2017 at 10:43:52AM +0100, Catalin Marinas wrote: >> On Mon, Jun 05, 2017 at 09:52:30PM -0700, Kees Cook wrote: >> > Adjust vdso_{start|end} to be char arrays to avoid compile-time analysis >> > that flags "too large" memcmp()

Re: [PATCH 1/6] arm64, vdso: Define vdso_{start,end} as array

2017-06-06 Thread Will Deacon
On Tue, Jun 06, 2017 at 10:43:52AM +0100, Catalin Marinas wrote: > On Mon, Jun 05, 2017 at 09:52:30PM -0700, Kees Cook wrote: > > Adjust vdso_{start|end} to be char arrays to avoid compile-time analysis > > that flags "too large" memcmp() calls with CONFIG_FORTIFY_SOURCE. > > > > Suggested-by:

Re: [PATCH 1/6] arm64, vdso: Define vdso_{start,end} as array

2017-06-06 Thread Will Deacon
On Tue, Jun 06, 2017 at 10:43:52AM +0100, Catalin Marinas wrote: > On Mon, Jun 05, 2017 at 09:52:30PM -0700, Kees Cook wrote: > > Adjust vdso_{start|end} to be char arrays to avoid compile-time analysis > > that flags "too large" memcmp() calls with CONFIG_FORTIFY_SOURCE. > > > > Suggested-by:

Re: [PATCH 1/6] arm64, vdso: Define vdso_{start,end} as array

2017-06-06 Thread Catalin Marinas
On Mon, Jun 05, 2017 at 09:52:30PM -0700, Kees Cook wrote: > Adjust vdso_{start|end} to be char arrays to avoid compile-time analysis > that flags "too large" memcmp() calls with CONFIG_FORTIFY_SOURCE. > > Suggested-by: Mark Rutland > Signed-off-by: Kees Cook

Re: [PATCH 1/6] arm64, vdso: Define vdso_{start,end} as array

2017-06-06 Thread Catalin Marinas
On Mon, Jun 05, 2017 at 09:52:30PM -0700, Kees Cook wrote: > Adjust vdso_{start|end} to be char arrays to avoid compile-time analysis > that flags "too large" memcmp() calls with CONFIG_FORTIFY_SOURCE. > > Suggested-by: Mark Rutland > Signed-off-by: Kees Cook > Cc: Catalin Marinas > Cc: Will

[PATCH 1/6] arm64, vdso: Define vdso_{start,end} as array

2017-06-05 Thread Kees Cook
Adjust vdso_{start|end} to be char arrays to avoid compile-time analysis that flags "too large" memcmp() calls with CONFIG_FORTIFY_SOURCE. Suggested-by: Mark Rutland Signed-off-by: Kees Cook Cc: Catalin Marinas Cc: Will

[PATCH 1/6] arm64, vdso: Define vdso_{start,end} as array

2017-06-05 Thread Kees Cook
Adjust vdso_{start|end} to be char arrays to avoid compile-time analysis that flags "too large" memcmp() calls with CONFIG_FORTIFY_SOURCE. Suggested-by: Mark Rutland Signed-off-by: Kees Cook Cc: Catalin Marinas Cc: Will Deacon Cc: Jisheng Zhang --- arch/arm64/kernel/vdso.c | 10 +-