Re: [GIT pull] x86/urgent for v5.15-rc3

From: Linus Torvalds
Date: Tue Sep 28 2021 - 16:14:12 EST


On Tue, Sep 28, 2021 at 10:56 AM Borislav Petkov <bp@xxxxxxxxx> wrote:
>
> Ok, how does that look?

Well, cleaner.

You lost the leXX_to_cpu() part, so now it does the wrong thing if you
were to cross-build the tooling side on a BE architecture.

The actual kernel side is fine, of course, since it runs on x86 by definition.

So it's purely the tool side - I assume this instruction decoding is
used for objtool or something.

I'm not sure that matters. BE is dead, nobody would ever cross-build
tooling that way. But maybe a compile-time error, at least, so that
the problem is obvious.

Linus