From: Linus Torvalds <torvalds@linux-foundation.org>
To: Pavel Machek <pavel@ucw.cz>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Alexey Dobriyan <adobriyan@gmail.com>,
kernel list <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: LOCALVERSION_AUTO considered harmful
Date: Mon, 12 Apr 2010 10:03:03 -0700 (PDT) [thread overview]
Message-ID: <alpine.LFD.2.00.1004121000400.26679@i5.linux-foundation.org> (raw)
In-Reply-To: <20100412131405.GB22773@ucw.cz>
On Mon, 12 Apr 2010, Pavel Machek wrote:
> Hi!
>
> > > > > That's conditional BS.
> > > > > Turn off CONFIG_MODVERSIONS already.
> > > >
> > > > Yeah, I disabled it ages ago. Even then (before git, probably even
> > > > before bitkeeper)
> > > > I had hard times inserting modules...
> > >
> > > I _had_ it off
> > >
> > > # CONFIG_MODVERSIONS is not set
> > >
> > > It seems some checking survives CONFIG_MODVERSIONS unset and that
> > > checking is strict enough to refuse module load after one "make
> > > modules" with LOCALVERSION_AUTO on...
> >
> > So instead of fixing the CONFIG_MODVERSIONS=n case you go the easy way
> > of killing LOCALVERSION_AUTO ? Brilliant.
>
> In previous discussion, I was told that there's no bug to fix, that
> everything works as intended.
The problem is that you guys are looking at CONFIG_MODVERSIONS the wrong
way around.
It's the _off_ case that is broken. Always was, always will be.
If CONFIG_MODVERSIONS is off, we remove the symbol versioning, and replace
it with the _insane_ kernel version check. That is never valid. The fact
that the kernel version is the same doesn't mean that the module will
work, since we often do lots of changes within the same version.
So the solution is to say CONFIG_MODVERSIONS=y, and everybody is happy.
Your modules will actually test things that _matter_, and will stop
loading if the data types or function prototypes have changed.
Linus
prev parent reply other threads:[~2010-04-12 17:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-11 16:47 Pavel Machek
2010-04-12 18:51 ` Alexey Dobriyan
2010-04-11 18:58 ` Geert Uytterhoeven
2010-04-11 20:14 ` Pavel Machek
2010-04-11 22:24 ` Thomas Gleixner
2010-04-12 1:20 ` rdunlap
2010-04-12 2:56 ` rdunlap
2010-04-12 3:49 ` Randy Dunlap
2010-04-12 12:48 ` Theodore Tso
2010-04-12 13:14 ` Pavel Machek
2010-04-12 17:03 ` Linus Torvalds [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LFD.2.00.1004121000400.26679@i5.linux-foundation.org \
--to=torvalds@linux-foundation.org \
--cc=adobriyan@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=geert@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome