mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Josh Poimboeuf <jpoimboe@kernel.org>
To: Peter Zijlstra <peterz@infradead.org>
Cc: Zack Rusin <zackr@vmware.com>,
	linux-kernel@vger.kernel.org, Miroslav Benes <mbenes@suse.cz>,
	x86@kernel.org,
	VMware Graphics Reviewers  <linux-graphics-maintainer@vmware.com>,
	kernel test robot <lkp@intel.com>
Subject: Re: [PATCH] drm/vmwgfx: Silence RBP clobber warnings
Date: Fri, 2 Jun 2023 08:32:39 -0700	[thread overview]
Message-ID: <20230602153239.fsug6rgvoxgnrea6@treble> (raw)
In-Reply-To: <20230602151639.GK620383@hirez.programming.kicks-ass.net>

On Fri, Jun 02, 2023 at 05:16:39PM +0200, Peter Zijlstra wrote:
> On Fri, Jun 02, 2023 at 07:56:34AM -0700, Josh Poimboeuf wrote:
> > VMware hypercalls take the RBP register as input.  This breaks basic
> > frame pointer convention, as RBP should never be clobbered.
> > 
> > So frame pointer unwinding is broken for the instructions surrounding
> > the hypercall with the clobbered RBP.  There's nothing that can be done
> > about that.  Just tell objtool to ignore it.
> > 
> 
> That's a pretty horrific ABI, one that violates the oldest x86 calling
> convention in existence.
> 
> VMware folks, shame!!

Agreed :-(

BTW, please ignore the patch, I'll be sending a v2.

I realized (with Peter's prodding on IRC) that reliable ORC unwinding
would be broken if the function has a frame pointer.  Which can
happen if the function needs an aligned stack.

-- 
Josh

      reply	other threads:[~2023-06-02 15:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-02 14:56 Josh Poimboeuf
2023-06-02 15:16 ` Peter Zijlstra
2023-06-02 15:32   ` Josh Poimboeuf [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230602153239.fsug6rgvoxgnrea6@treble \
    --to=jpoimboe@kernel.org \
    --cc=linux-graphics-maintainer@vmware.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=mbenes@suse.cz \
    --cc=peterz@infradead.org \
    --cc=x86@kernel.org \
    --cc=zackr@vmware.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®