public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: tigran@aivazian.fsnet.co.uk (Tigran Aivazian)
Cc: alan@lxorguk.ukuu.org.uk (Alan Cox),
	andrea@suse.de (Andrea Arcangeli),
	arjanv@redhat.com (Arjan van de Ven),
	hugh@veritas.com (Hugh Dickins), mingo@redhat.com (Ingo Molnar),
	stelian.pop@fr.alcove.com (Stelian Pop),
	linux-kernel@vger.kernel.org,
	torvalds@transmeta.com (Linus Torvalds)
Subject: Re: [PATCH 2.5.5] do export vmalloc_to_page to modules...
Date: Wed, 3 Apr 2002 20:35:09 +0100 (BST)	[thread overview]
Message-ID: <E16sqXF-0004Li-00@the-village.bc.nu> (raw)
In-Reply-To: <Pine.LNX.4.33.0204031947210.1163-100000@einstein.homenet> from "Tigran Aivazian" at Apr 03, 2002 08:03:52 PM

> > > -EXPORT_SYMBOL_GPL(vmalloc_to_page);
> > > +EXPORT_SYMBOL(vmalloc_to_page);
> >
> Namely, you are saying that Andrea changed some code from being GPL to
> non-GPL. That is so obviously not true that I am even surprized that I
> need to point this out explicitly (especially to you; as Jesus said to
> Nicodemus, are you a teacher in Israel and knowest not these things?)

He removed the marker to make it clear that is not meant to be used by
non GPL modules and is an internal helper function. Its really to my
mind no different to changing the text of the license - someone elses license -
to delete the linking rules. Even if the change is not valid is misleads
and confuses and is extremely impolite.

> EXPORT_SYMBOL(vmalloc_to_page);
> is just as much under GPL license as the line of code:
> EXPORT_SYMBOL_GPL(vmalloc_to_page);
> 
> So, Andrea's patch is not changing any license of any line of Linux kernel
> code. He is just correcting a _technical_ mistake. Authors are allowed to

He's misleading people and contributing to future infringements. The _GPL
marker is correct, and it is there to assist people like Veritas by telling
them "excuse me this one is not for you". Note that there are higher level
interfaces using it which genuinely do seem to be needed by seperate works
and are not EXPORT_SYMBOL_GPL, as well as others like the Video4Linux buffer
helper logic which is very much a support library.

> make mistakes and others are allowed to fix them. I don't see any problem
> with that (even the wicked US legal system won't jail anyone for it :)

Actually it does. EXPORT_SYMBOL_GPL is a digital rights management system
subverting it is a US offence. Now if anyone was to go cart Andrea off to
jail for that I'd be pretty pissed off. Its stupidity factor is stunningly
high but it doesn't change the reality. Nor for that matter should anyone
forget that stupid laws can be used for good as well as evil some times 8)

> I understood the intention of EXPORT_SYMBOL_GPL was (from your email
> mentioning the internal helpers etc) is that it is for internal helper
> functions used by some parts of the kernel which happen to be
> modularizable, but not for general consumption of 3rd party modules.  So,
> really, the name EXPORT_SYMBOL_GPL is a _misnomer_.

It makes it clear what it is usable by. I don't as such consider it a 
misnomer. Now EXPORT_SYMBOL_INTERNAL would be a godsend for a lot of other
stuff. It would help binary folks and a lot of GPL driver folks know that
they were sticking their nose in the wrong spot and might get burned. At
that point they can make an intelligent assessment. Maybe they do need to
stick their noses in, maybe they should look at the right approach.

However _GPL and _INTERNAL are two different things. Linus has said he won't
allow people to go around removing existing symbols people rely on. Its not
quite my own viewpoint but Linus argues quite reasonably that he has at least
a moral reason to not go around screwing people and its his toy.

	modprobe -w mynewdriver.o
	Warning: This driver appears to use kernel internal interfaces
	that are very likely to change over time.
	[... list of symbols ...]

sound good. Its sort of a lint for driver authors. I support the addition
of _INTERNAL as _well_ as _GPL completely. Although maybe at that point its
time to think about EXPORT_SYMBOL(name, attributes) before Keith Owens goes
missing in a combinatorial explosion.

Alan

  parent reply	other threads:[~2002-04-03 19:20 UTC|newest]

Thread overview: 94+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-20 13:13 [PATCH 2.5.5] do export vmalloc_to_page to modules Stelian Pop
2002-02-20 16:00 ` Hugh Dickins
2002-02-20 16:01   ` Arjan van de Ven
2002-04-03 16:21     ` Andrea Arcangeli
2002-04-03 17:43       ` Alan Cox
2002-04-03 18:13         ` Andrea Arcangeli
2002-04-03 19:11           ` Alan Cox
2002-04-03 19:23             ` Andrea Arcangeli
2002-04-03 20:05             ` Tigran Aivazian
2002-04-03 20:27               ` Tigran Aivazian
2002-04-03 21:22               ` Alan Cox
2002-04-03 21:26                 ` Tigran Aivazian
2002-04-03 21:48                   ` Alan Cox
2002-04-03 19:03         ` Tigran Aivazian
2002-04-03 19:10           ` Linus Torvalds
2002-04-03 19:19             ` Tigran Aivazian
2002-04-03 19:24               ` Linus Torvalds
2002-04-03 21:05                 ` Tigran Aivazian
2002-04-03 21:25                   ` Alan Cox
2002-04-04  6:43                     ` Keith Owens
2002-04-04 10:22                       ` Tigran Aivazian
2002-04-04 10:35                         ` Arjan van de Ven
2002-04-04 11:54                         ` Alan Cox
2002-04-04 12:01                           ` Tigran Aivazian
2002-04-04 12:31                             ` Adrian Bunk
2002-04-04 12:48                               ` Russell King
2002-04-04 12:40                             ` Russell King
2002-04-04 12:46                               ` Tigran Aivazian
2002-04-05  7:29                               ` David Schwartz
2002-04-05  8:24                                 ` Adrian Bunk
2002-04-05  8:28                                   ` David Schwartz
2002-04-04 13:26                             ` Ingo Molnar
2002-04-04 15:21                               ` Rik van Riel
2002-04-05  9:25                                 ` Paul Gortmaker
2002-04-04 15:35                               ` Tigran Aivazian
2002-04-04 16:55                                 ` Andrea Arcangeli
2002-04-04 17:16                                   ` Christoph Hellwig
2002-04-04 17:46                                   ` Ingo Molnar
2002-04-04 17:59                                 ` Arjan van de Ven
2002-04-04 18:15                                   ` Rik van Riel
2002-04-05  0:47                                   ` Linux kernel and binary drivers (was: [PATCH 2.5.5] do export vmalloc_to_page to modules...) Steffen Persvold
2002-04-04 15:55                               ` [PATCH 2.5.5] do export vmalloc_to_page to modules Richard B. Johnson
2002-04-04 16:14                                 ` Alan Cox
2002-04-04 16:15                                 ` Peter Horton
2002-04-04 16:23                                 ` Ingo Molnar
2002-04-04 16:38                                 ` Michael Clark
2002-04-04 20:57                                 ` Adrian Bunk
2002-04-04 16:44                               ` Andrea Arcangeli
2002-04-04 17:16                                 ` Ingo Molnar
2002-04-04 18:00                                 ` Alan Cox
2002-04-04 16:42                             ` Alexander Viro
2002-04-03 19:29             ` Andrea Arcangeli
2002-04-03 19:38             ` Alan Cox
2002-04-03 19:25               ` Linus Torvalds
2002-04-03 19:44                 ` Alan Cox
2002-04-03 19:39                   ` Linus Torvalds
2002-04-03 20:35               ` Gerd Knorr
2002-04-03 22:17                 ` Richard B. Johnson
2002-04-03 22:24                   ` Rik van Riel
2002-04-03 22:33                     ` Tigran Aivazian
2002-04-03 22:35                       ` David S. Miller
2002-04-06  9:08                         ` David Woodhouse
2002-04-03 22:39                       ` Rik van Riel
2002-04-04  5:59                         ` Chris Wedgwood
2002-04-04 12:06                           ` Alan Cox
2002-04-04  9:33             ` Ingo Molnar
2002-04-03 19:26           ` Andrea Arcangeli
2002-04-03 19:35           ` Alan Cox [this message]
2002-04-05  6:06             ` David Schwartz
2002-04-05 12:48               ` Alan Cox
2002-04-05 18:46                 ` David Schwartz
2002-04-05 19:27                   ` Alan Cox
2002-04-05 20:05                     ` David Schwartz
2002-04-06 17:55                   ` Alan Cox
2002-04-03 19:19         ` Alexander Viro
2002-04-03 21:07         ` David Schwartz
2002-04-03 21:33           ` Alan Cox
2002-04-03 21:28             ` Daniel Jacobowitz
2002-04-03 22:09             ` David Schwartz
2002-04-04  6:26         ` Kai Henningsen
2002-04-04  8:44           ` Adrian Bunk
2002-04-04 12:01           ` Alan Cox
2002-02-20 16:27   ` Ingo Molnar
  -- strict thread matches above, loose matches on Subject: below --
2002-04-03 23:47 Petr Vandrovec
2002-04-04  0:19 ` Rik van Riel
2002-04-04 11:54 Petr Vandrovec
     [not found] <Pine.LNX.4.44L.0204041217290.18660-100000@imladris.surriel .com>
2002-04-04 16:11 ` Anton Altaparmakov
2002-04-04 16:29   ` Ingo Molnar
     [not found] <Pine.LNX.4.44.0204041123410.6422-100000@devserv.devel.redh at.com>
2002-04-04 17:06 ` Anton Altaparmakov
2002-04-04 17:55   ` Alan Cox
2002-04-04 17:52     ` Anton Altaparmakov
2002-04-04 17:27 Nicholas Berry
2002-04-05 13:22 Gareth Hughes
2002-04-09  6:55 Rick A. Hohensee

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=E16sqXF-0004Li-00@the-village.bc.nu \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=andrea@suse.de \
    --cc=arjanv@redhat.com \
    --cc=hugh@veritas.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=stelian.pop@fr.alcove.com \
    --cc=tigran@aivazian.fsnet.co.uk \
    --cc=torvalds@transmeta.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