[PATCH 09/17] x86: make is_64bit_mm() widely available

2015-03-27 Thread Dave Hansen
From: Dave Hansen The uprobes code has a nice helper, is_64bit_mm(), that consults both the runtime and compile-time flags for 32-bit support. Instead of reinventing the wheel, pull it in to an x86 header so we can use it for MPX. I prefer passing the mm around to test_thread_flag(TIF_IA32) be

Re: [PATCH 09/17] x86: make is_64bit_mm() widely available

2015-03-27 Thread Borislav Petkov
On Thu, Mar 26, 2015 at 11:33:45AM -0700, Dave Hansen wrote: > > From: Dave Hansen > > The uprobes code has a nice helper, is_64bit_mm(), that consults both > the runtime and compile-time flags for 32-bit support. Instead of > reinventing the wheel, pull it in to an x86 header so we can use it

Re: [PATCH 09/17] x86: make is_64bit_mm() widely available

2015-03-26 Thread Andy Lutomirski
On 03/26/2015 11:33 AM, Dave Hansen wrote: From: Dave Hansen The uprobes code has a nice helper, is_64bit_mm(), that consults both the runtime and compile-time flags for 32-bit support. Instead of reinventing the wheel, pull it in to an x86 header so we can use it for MPX. I prefer passing th

[PATCH 09/17] x86: make is_64bit_mm() widely available

2015-03-26 Thread Dave Hansen
From: Dave Hansen The uprobes code has a nice helper, is_64bit_mm(), that consults both the runtime and compile-time flags for 32-bit support. Instead of reinventing the wheel, pull it in to an x86 header so we can use it for MPX. I prefer passing the mm around to test_thread_flag(TIF_IA32) be