Re: [GIT PULL] perf fixes

From: Linus Torvalds
Date: Fri Nov 01 2019 - 14:49:11 EST


On Fri, Nov 1, 2019 at 10:48 AM Ingo Molnar <mingo@xxxxxxxxxx> wrote:
>
> Alexander Shishkin (1):
> perf/core: Start rejecting the syscall with attr.__reserved_2 set

This seems to quite possibly break existing apps. Is there any reason
to believe that existing users have actually cleared that field?

It's suspect for another reason too: the commit that added that field
just added it to the end of the structure, with the argument that
"aux_watermark will only matter for new AUX-aware code, so the old
code should still be fine".

So by *definition* those old kinds of users would never have cleared
that field, because that field didn't exist.

Honestly, this all shows a worrying complete disregard for backwards
compatibility. Calling this a "fix" is questionable, when it is much
more likely to break some old user.

I've pulled it, but I need people to be aware that this is utter
garbage, and that if anybody ever reports it, this needs to be
immediately reverted.

And the people involved should stop claiming this "fixes" anything,
and should look hard at their random ABI expansions and "fixes".

The original code that said "old users would not be impacted" is
correct. But this "fix" is very very very questionable indeed, and I
get the feeling that somebody doesn't understand what ABI is, when
they claim that this "fixes" anything.

Linus