From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755529AbbIINcl (ORCPT ); Wed, 9 Sep 2015 09:32:41 -0400 Received: from smtp.citrix.com ([66.165.176.89]:41449 "EHLO SMTP.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753293AbbIINc0 (ORCPT ); Wed, 9 Sep 2015 09:32:26 -0400 X-IronPort-AV: E=Sophos;i="5.17,496,1437436800"; d="scan'208";a="298855301" Message-ID: <55F03495.4040905@citrix.com> Date: Wed, 9 Sep 2015 14:31:01 +0100 From: David Vrabel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 MIME-Version: 1.0 To: Josh Poimboeuf , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , CC: , , "Michal Marek" , Peter Zijlstra , "Andy Lutomirski" , Borislav Petkov , Linus Torvalds , Andi Kleen , "Pedro Alves" , Namhyung Kim , "Bernd Petrovitsch" , Chris J Arges , Andrew Morton , Konrad Rzeszutek Wilk , Boris Ostrovsky Subject: Re: [PATCH v12 12/21] x86/xen: Add xen_cpuid() and xen_setup_gdt() to stacktool whitelists References: <89e3e4ceb81088e26fbc850fcb6650a0fe3553ab.1441749989.git.jpoimboe@redhat.com> In-Reply-To: <89e3e4ceb81088e26fbc850fcb6650a0fe3553ab.1441749989.git.jpoimboe@redhat.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-DLP: MIA2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/09/15 14:21, Josh Poimboeuf wrote: > stacktool reports the following false positive warnings: > > stacktool: arch/x86/xen/enlighten.o: xen_cpuid()+0x41: can't find jump dest instruction at .text+0x108 > stacktool: arch/x86/xen/enlighten.o: xen_setup_gdt.constprop.23()+0x2e: kernel entry/exit from callable instruction > > The first warning is due to xen_cpuid()'s use of XEN_EMULATE_PREFIX to > insert some fake instructions which stacktool doesn't know how to > decode. > > The second warning is due to xen_setup_gdt()'s use of an lret > instruction, which stacktool normally doesn't allow in callable > functions. But this seems to be a valid use of the instruction. > > Add both functions to the stacktool whitelist. Reviewed-by: David Vrabel David