Re: [PATCH] x86/kbuild: enable modversions for symbols exported from asm

From: Linus Torvalds
Date: Tue Nov 29 2016 - 15:36:07 EST


On Tue, Nov 29, 2016 at 11:57 AM, Ben Hutchings <ben@xxxxxxxxxxxxxxx> wrote:
>
> If the modversion is missing then the fallback should be to a full
> vermagic match, i.e. including the release string. Something like
> this (untested):

This really seems way too complicated for this situation.

And it's wrong too. The whole point of modversions was that you didn't
want to do the full version check.

We already know there were *some* crc's (we checked that at the top of
check_version(), but we've also checked it in "same_magic()" - it's
what makes us ignore the exact version number), but this particular
symbol doesn't have a crc. Just let it through, because we have bugs
in binutils.

So your extra complexity logic seems actively wrong. It makes
MODVERSIONS not work at all, rather than limp along. You're better off
just not having MODVERSIONS.

Linus