Re: [PATCH v2] x86/insn, tools/x86: Fix some potential undefined behavior.
From: Peter Zijlstra
Date: Fri Oct 16 2020 - 05:37:38 EST
On Thu, Oct 15, 2020 at 02:34:57PM -0700, hpa@xxxxxxxxx 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.