From: Petr Vandrovec <petr@vandrovec.name>
To: Alexey Dobriyan <adobriyan@gmail.com>
Cc: mingo@redhat.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Add note that lockdep is not allowed with non-GPL modules
Date: Tue, 04 Jul 2006 23:20:53 +0200 [thread overview]
Message-ID: <44AADBB5.9080307@vandrovec.name> (raw)
In-Reply-To: <20060704205328.GA7598@martell.zuzino.mipt.ru>
Alexey Dobriyan wrote:
> On Tue, Jul 04, 2006 at 10:29:04PM +0200, Petr Vandrovec wrote:
>
>>Hi Ingo,
>> can you add this small notice to the lockdep option ?
>>
>>Lock dependency infrastructure forces all legacy code which uses lock to now
>>depend on lockdep_init_map symbol, which is GPL-only. It means that almost
>>no modules can work on kernel with CONFIG_LOCKDEP set. Let's warn user about
>>that.
>
>
> IANIngo, but the warning is already there:
> * Proprietary module user probably already knows that major deviations from .config
> and kernel its module is released is no-no.
Uh? How it comes? VMware modules work in any kernel configuration and
architecture. With exception of vmmon, which contains inline assembly
for i386 & x86-64 only. But all configs are supported.
> * Would you add similar notice to inotify help text? It also exports
> GPL-only symbols doncha know. Would you add such notices to everything
> exporting GPL-only symbols?
This is just nonsense. I am not talking about using new API, I'm saying
that API which was not GPL-only without lockdep has GPL-only portion
with lockdep, and this GPL-only portion is needed by implementation of
code which existed before lockdep. To me this looks like unexpected
change of kernel API, and as such should be documented and warned about.
>>vmmon: module license 'unspecified' taints kernel.
>>vmmon: Unknown symbol lockdep_init_map
>
>
>>+ Do not enable this option if you are using non-GPL modules, or
>>+ they will fail to load due to missing symbol lockdep_init_map.
>
>
> Lock validor found a bug in NVidia driver, film at 11.
I have no idea how NVidia managed to work around that problem, but
VMware modules suddenly depend on this GPL-only symbol, although nothing
in the module sources refers to lockdep (same sources which worked
yesterday are being used).
Thanks,
Petr Vandrovec
next prev parent reply other threads:[~2006-07-04 21:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-04 20:29 [PATCH] Add note that lockdep is not allowed with non-GPL modules Petr Vandrovec
2006-07-04 20:53 ` Alexey Dobriyan
2006-07-04 21:20 ` Petr Vandrovec [this message]
2006-07-05 2:47 ` Valdis.Kletnieks
2006-07-05 2:54 ` Petr Vandrovec
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=44AADBB5.9080307@vandrovec.name \
--to=petr@vandrovec.name \
--cc=adobriyan@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
/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