mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Peter Zijlstra <peterz@infradead.org>
To: Josh Poimboeuf <jpoimboe@kernel.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 17:16:39 +0200	[thread overview]
Message-ID: <20230602151639.GK620383@hirez.programming.kicks-ass.net> (raw)
In-Reply-To: <e9388b1ad4d955b43b44e8a5dcd6cf6da7d260a0.1685717659.git.jpoimboe@kernel.org>

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!!

  reply	other threads:[~2023-06-02 15:16 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 [this message]
2023-06-02 15:32   ` Josh Poimboeuf

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=20230602151639.GK620383@hirez.programming.kicks-ass.net \
    --to=peterz@infradead.org \
    --cc=jpoimboe@kernel.org \
    --cc=linux-graphics-maintainer@vmware.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=mbenes@suse.cz \
    --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®