From: Greg KH <gregkh@linuxfoundation.org>
To: Maximilian Heyne <mheyne@amazon.de>
Cc: stable@vger.kernel.org, "Thomas Gleixner" <tglx@linutronix.de>,
"Ingo Molnar" <mingo@redhat.com>,
"Borislav Petkov" <bp@alien8.de>,
"H. Peter Anvin" <hpa@zytor.com>,
x86@kernel.org, "Boris Ostrovsky" <boris.ostrovsky@oracle.com>,
"Juergen Gross" <jgross@suse.com>,
"Stefano Stabellini" <sstabellini@kernel.org>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Radim Krčmář" <rkrcmar@redhat.com>,
"Sean Christopherson" <sean.j.christopherson@intel.com>,
"Vitaly Kuznetsov" <vkuznets@redhat.com>,
"Wanpeng Li" <wanpengli@tencent.com>,
"Jim Mattson" <jmattson@google.com>,
"Joerg Roedel" <joro@8bytes.org>,
"Josh Poimboeuf" <jpoimboe@redhat.com>,
"Peter Zijlstra" <peterz@infradead.org>,
"Arnaldo Carvalho de Melo" <acme@kernel.org>,
"Mark Rutland" <mark.rutland@arm.com>,
"Alexander Shishkin" <alexander.shishkin@linux.intel.com>,
"Jiri Olsa" <jolsa@redhat.com>,
"Namhyung Kim" <namhyung@kernel.org>,
"Masami Hiramatsu" <mhiramat@kernel.org>,
"Sasha Levin" <sashal@kernel.org>,
linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org,
kvm@vger.kernel.org
Subject: Re: [PATCH 0/4] x86: decode Xen/KVM emulate prefixes
Date: Thu, 12 May 2022 18:21:26 +0200 [thread overview]
Message-ID: <Yn00BsSx060gS94o@kroah.com> (raw)
In-Reply-To: <20220512135654.119791-1-mheyne@amazon.de>
On Thu, May 12, 2022 at 01:56:47PM +0000, Maximilian Heyne wrote:
> This is a backport of a patch series for 5.4.x.
>
> The patch series allows the x86 decoder to decode the Xen and KVM emulate
> prefixes.
>
> In particular this solves the following issue that appeared when commit
> db6c6a0df840 ("objtool: Fix noreturn detection for ignored functions") was
> backported to 5.4.69:
>
> arch/x86/xen/enlighten_pv.o: warning: objtool: xen_cpuid()+0x25: can't find jump dest instruction at .text+0x9c
>
> Also now that this decoding is possible, also backport the commit which prevents
> kprobes on probing such prefixed instructions. This was also part of the
> original series.
>
> The series applied mostly cleanly on 5.4.192 except for a contextual problem in
> the 3rd patch ("x86: xen: insn: Decode Xen and KVM emulate-prefix signature").
>
> Masami Hiramatsu (4):
> x86/asm: Allow to pass macros to __ASM_FORM()
> x86: xen: kvm: Gather the definition of emulate prefixes
> x86: xen: insn: Decode Xen and KVM emulate-prefix signature
> x86: kprobes: Prohibit probing on instruction which has emulate prefix
>
> arch/x86/include/asm/asm.h | 8 +++--
> arch/x86/include/asm/emulate_prefix.h | 14 +++++++++
> arch/x86/include/asm/insn.h | 6 ++++
> arch/x86/include/asm/xen/interface.h | 11 +++----
> arch/x86/kernel/kprobes/core.c | 4 +++
> arch/x86/kvm/x86.c | 4 ++-
> arch/x86/lib/insn.c | 34 +++++++++++++++++++++
> tools/arch/x86/include/asm/emulate_prefix.h | 14 +++++++++
> tools/arch/x86/include/asm/insn.h | 6 ++++
> tools/arch/x86/lib/insn.c | 34 +++++++++++++++++++++
> tools/objtool/sync-check.sh | 3 +-
> tools/perf/check-headers.sh | 3 +-
> 12 files changed, 128 insertions(+), 13 deletions(-)
> create mode 100644 arch/x86/include/asm/emulate_prefix.h
> create mode 100644 tools/arch/x86/include/asm/emulate_prefix.h
>
>
> base-commit: 1d72b776f6dc973211f5d153453cf8955fb3d70a
> --
> 2.32.0
>
>
>
>
> Amazon Development Center Germany GmbH
> Krausenstr. 38
> 10117 Berlin
> Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss
> Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B
> Sitz: Berlin
> Ust-ID: DE 289 237 879
>
>
>
All now queued up, thanks.
greg k-h
next prev parent reply other threads:[~2022-05-12 16:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-12 13:56 [PATCH 0/4] x86: decode Xen/KVM emulate prefixes Maximilian Heyne
2022-05-12 13:56 ` [PATCH 1/4] x86/asm: Allow to pass macros to __ASM_FORM() Maximilian Heyne
2022-05-12 13:56 ` [PATCH 2/4] x86: xen: kvm: Gather the definition of emulate prefixes Maximilian Heyne
2022-05-12 13:56 ` [PATCH 3/4] x86: xen: insn: Decode Xen and KVM emulate-prefix signature Maximilian Heyne
2022-05-12 13:56 ` [PATCH 4/4] x86: kprobes: Prohibit probing on instruction which has emulate prefix Maximilian Heyne
2022-05-12 16:21 ` Greg KH [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-05-10 13:30 [PATCH 0/4] x86: decode Xen/KVM emulate prefixes Maximilian Heyne
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=Yn00BsSx060gS94o@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=acme@kernel.org \
--cc=alexander.shishkin@linux.intel.com \
--cc=boris.ostrovsky@oracle.com \
--cc=bp@alien8.de \
--cc=hpa@zytor.com \
--cc=jgross@suse.com \
--cc=jmattson@google.com \
--cc=jolsa@redhat.com \
--cc=joro@8bytes.org \
--cc=jpoimboe@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mheyne@amazon.de \
--cc=mhiramat@kernel.org \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=pbonzini@redhat.com \
--cc=peterz@infradead.org \
--cc=rkrcmar@redhat.com \
--cc=sashal@kernel.org \
--cc=sean.j.christopherson@intel.com \
--cc=sstabellini@kernel.org \
--cc=stable@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=vkuznets@redhat.com \
--cc=wanpengli@tencent.com \
--cc=x86@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/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