linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Re: GPL question: using large contiguous memory in proprietary driver.
       [not found]   ` <3f43f78b0810141639w4ec50a08tdc847b16ebcea5be@mail.gmail.com>
@ 2008-10-15 11:26     ` Nick Piggin
  0 siblings, 0 replies; only message in thread
From: Nick Piggin @ 2008-10-15 11:26 UTC (permalink / raw)
  To: Kaz Kylheku, Alan Cox, linux-mm; +Cc: Chris Friesen, linux-kernel

On Wednesday 15 October 2008 10:39, Kaz Kylheku wrote:
> On Tue, Oct 14, 2008 at 3:12 PM, Chris Friesen <cfriesen@nortel.com> wrote:
> > Kaz Kylheku wrote:
> >> I have the following question. Suppose that some proprietary driver
> >> (otherwise completely clean, based only on non-GPL symbols)
> >
> > The fact that it's not using GPL symbols does not actually mean that the
> > driver is not a derivative work of the kernel (and thus subject to the
> > GPL).
>
> One more thing. Here is another question.

I don't know if there are any lawyers on this list, and definitely you
shouldn't take this kind of advice from answers here.


> Suppose that this proprietary driver can be moved entirely into user
> space. It still needs the contiguous buffer, but it can
> map it using mmap, given the address.

The kernel carries a license that states:

'NOTE! This copyright does *not* cover user programs that use kernel
 services by normal system calls - this is merely considered normal use
 of the kernel, and does *not* fall under the heading of "derived work".'

Which could be relevant.


> Can this proprietary user-space application read the address
> of this buffer from a custom /proc entry?
>
> Or does this dependency make it a derived work of the kernel?

I would be careful if you were to explicitly modify the kernel you
distribute with the driver in order to allow your driver to live
in userspace. No idea whether that is safe.

However, we do have this pagemap proc API existing in the kernel
which is a kernel service that can be used with a normal system
call. It returns the page frame number that a given virtual address
is mapped to. (God knows WTF that is supposed to be a remotely good
idea for the kernel to export, but there you have it.)

Whether that helps you or allows you to comply with your obligations,
I don't know.

Or, as an alternative, why not instead run the gauntlet with your
other licensor and tell them their license isn't acceptable because
your product contains code with incompatible restrictions?!

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-15 11:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <3f43f78b0810141456r159d71e7h9763e50e7dbc0c51@mail.gmail.com>
     [not found] ` <48F5193B.1010601@nortel.com>
     [not found]   ` <3f43f78b0810141639w4ec50a08tdc847b16ebcea5be@mail.gmail.com>
2008-10-15 11:26     ` GPL question: using large contiguous memory in proprietary driver Nick Piggin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox