Re: [GIT PULL] objtool/urgent for v6.5-rc2

From: Linus Torvalds
Date: Sun Jul 16 2023 - 16:40:21 EST


On Sun, 16 Jul 2023 at 11:42, Borislav Petkov <bp@xxxxxxxxx> wrote:
>
> - Mark copy_iovec_from_user() __noclone in order to prevent gcc from
> doing an inter-procedural optimization and confuse objtool

This is painful.

Isn't there some way to mark the user_access_begin() itself so that
the compiler doesn't move it?

I've pulled this thing, but it does seem like we're chasing the
symptoms, not the deeper cause..

Linus