Re: [PATCH 1/2] x86, mpx: explicitly disable 32-bit MPX support on 64-bit kernels

Dave Hansen
2014-12-22T20:21:39Z

On 12/22/2014 12:17 PM, Andy Lutomirski wrote:
>> > /*
>> > + * 32-bit binaries on 64-bit kernels are currently
>> > + * unsupported.
>> > + */
>> > + if (IS_ENABLED(CONFIG_X86_64) && test_thread_flag(TIF_IA32))
>> > + return MPX_INVALID_BOUNDS_DIR;
> Should this check mm->ia32_compat instead?

set_personality_64bit/ia32() seem to make that and TIF_IA32 awfully
equivalent. Is there a specific reason for wanting it done this way?