From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755381AbbIINal (ORCPT ); Wed, 9 Sep 2015 09:30:41 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:51847 "EHLO SMTP02.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753517AbbIINad (ORCPT ); Wed, 9 Sep 2015 09:30:33 -0400 X-IronPort-AV: E=Sophos;i="5.17,496,1437436800"; d="scan'208";a="302373423" Message-ID: <55F03473.50708@citrix.com> Date: Wed, 9 Sep 2015 14:30:27 +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 07/21] x86/xen: Add stack frame dependency to hypercall inline asm calls References: In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-DLP: MIA1 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: > If a hypercall is inlined at the beginning of a function, gcc can insert > the call instruction before setting up a stack frame, which breaks frame > pointer convention if CONFIG_FRAME_POINTER is enabled and can result in > a bad stack trace. > > Force a stack frame to be created if CONFIG_FRAME_POINTER is enabled by > listing the stack pointer as an output operand for the hypercall inline > asm statements. Reviewed-by: David Vrabel David