Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751621AbcCFSB6 (ORCPT ); Sun, 6 Mar 2016 13:01:58 -0500 Received: from mail.skyhub.de ([78.46.96.112]:42355 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751138AbcCFSBz (ORCPT ); Sun, 6 Mar 2016 13:01:55 -0500 Date: Sun, 6 Mar 2016 19:01:43 +0100 From: Borislav Petkov To: Andy Lutomirski Cc: Brian Gerst , Andy Lutomirski , the arch/x86 maintainers , Linux Kernel Mailing List , Oleg Nesterov , Andrew Cooper Subject: Re: [PATCH v2 07/10] x86/entry: Vastly simplify SYSENTER TF handling Message-ID: <20160306180143.GB6902@pd.tnic> References: <20160306165546.GA6902@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 528 Lines: 18 On Sun, Mar 06, 2016 at 09:36:42AM -0800, Andy Lutomirski wrote: > > ALTERNATIVE "movl TSS_sysenter_sp0(%esp), %esp", "addl $5*4, %esp", > > X86_FEATURE_XENPV > > That might work. Yap, and as we said on IRC, KALLSYMS can be off - even if it is "if EXPERT" so we need to think of a better way to compute start address and size of entry_SYSENTER_32 and the _compat one. We probably could reuse some of the ELF parsing machinery of relocs.c or so... -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply.