Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754389AbcDOJTJ (ORCPT ); Fri, 15 Apr 2016 05:19:09 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:34952 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753917AbcDOJTE (ORCPT ); Fri, 15 Apr 2016 05:19:04 -0400 Date: Fri, 15 Apr 2016 11:18:59 +0200 From: Ingo Molnar To: Andy Lutomirski Cc: Dmitry Safonov , "linux-kernel@vger.kernel.org" , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , X86 ML , Andrew Morton , "linux-mm@kvack.org" , Dmitry Safonov <0x7f454c46@gmail.com> Subject: Re: [PATCHv2] x86/vdso: add mremap hook to vm_special_mapping Message-ID: <20160415091859.GA10167@gmail.com> References: <1460388169-13340-1-git-send-email-dsafonov@virtuozzo.com> <1460651571-10545-1-git-send-email-dsafonov@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 437 Lines: 17 * Andy Lutomirski 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