Re: [PATCHv2] x86/vdso: add mremap hook to vm_special_mapping

From: Ingo Molnar
Date: Fri Apr 15 2016 - 05:19:14 EST



* Andy Lutomirski <luto@xxxxxxxxxxxxxx> wrote:

> > + if (regs->ip == (unsigned long)current->mm->context.vdso +
> > + vdso_image_32.sym_int80_landing_pad
> > +#ifdef CONFIG_IA32_EMULATION
> > + && current_thread_info()->status & TS_COMPAT
> > +#endif
>
> Instead of ifdef, use the (grossly misnamed) is_ia32_task() helper for
> this, please.

Please also let's do the rename.

Thanks,

Ingo