From: Peter Zijlstra <peterz@infradead.org>
To: hpa@zytor.com
Cc: Ian Rogers <irogers@google.com>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
x86@kernel.org, Masami Hiramatsu <mhiramat@kernel.org>,
Josh Poimboeuf <jpoimboe@redhat.com>,
linux-kernel@vger.kernel.org,
Adrian Hunter <adrian.hunter@intel.com>,
Arnaldo Carvalho de Melo <acme@kernel.org>,
Numfor Mbiziwo-Tiapo <nums@google.com>
Subject: Re: [PATCH v2] x86/insn, tools/x86: Fix some potential undefined behavior.
Date: Fri, 16 Oct 2020 11:37:24 +0200 [thread overview]
Message-ID: <20201016093724.GH2611@hirez.programming.kicks-ass.net> (raw)
In-Reply-To: <5E711F64-A9BF-48EC-83A3-3C644D80F848@zytor.com>
On Thu, Oct 15, 2020 at 02:34:57PM -0700, hpa@zytor.com wrote:
> Wait, what?
>
> You are taking about x86-specific code, and on x86 unaligned memory
> accesses are supported, well-defined, and ubiquitous.
Objtool uses this x86 instruction decoder, people are cross-buildling
objtool to cross-build x86 kernels.
So it's entirely possible to run the x86 insn decode on BE RISC, which
very much doesn't like unaligned loads.
next prev parent reply other threads:[~2020-10-16 9:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-15 16:12 Ian Rogers
2020-10-15 21:34 ` hpa
2020-10-15 21:47 ` Ian Rogers
2020-10-16 8:24 ` David Laight
2020-10-16 8:47 ` David Laight
2020-10-16 9:37 ` Peter Zijlstra [this message]
2020-10-16 1:33 ` Masami Hiramatsu
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=20201016093724.GH2611@hirez.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=bp@alien8.de \
--cc=hpa@zytor.com \
--cc=irogers@google.com \
--cc=jpoimboe@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mhiramat@kernel.org \
--cc=mingo@redhat.com \
--cc=nums@google.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.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
Powered by JetHome