Skip to contentSkip to conversation

Moving Userspace RCU (urcu) from GPL to LGPL license

DISCUSSION Mathieu Desnoyers 3 participants 5 messages Feb 18, 2009

lore
Share & tools
lore
#0 lore raw

Hi Paul,

I think that it would be good to distribute the userspace rcu work we are currently doing (ref. :
http://lttng.org/cgi-bin/gitweb.cgi?p=userspace-rcu.git) as a LGPL library rather than GPL so it can be linked to the userspace part of the LTTng tracer. We want to provide this tracer as a LGPL library so proprietary applications can link to it and therefore be traceable. The only thing is that we cannot put GPL code into a LGPL library.

The other point is that I use a few low-level primitives from the Linux kernel header (e.g. atomic increment for x86, barrier macros). Those are simple one-liners, but, still, I wonder about the licensing implications. I could simply "rewrite" them, but that would be a shame to have a different primitive implementation of those simple primitives in userspace and in kernel-space just for a licensing question. I would really like to keep the Linux kernel coding-style within this library. So the question would be : are those headers, distributed with the Linux kernel, distributed under GPL license ? Is there any special clause that would permit using their content under LGPL ? If not, would the community see such use favorably ?

Ideas/comments are welcome.

Thanks,

Mathieu

Signature · 2 lines
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
#1 lore raw
Quoted 9 lines · Mathieu Desnoyers

Hi Paul,

I think that it would be good to distribute the userspace rcu work we are currently doing (ref. :
http://lttng.org/cgi-bin/gitweb.cgi?p=userspace-rcu.git) as a LGPL library rather than GPL so it can be linked to the userspace part of the LTTng tracer. We want to provide this tracer as a LGPL library so proprietary applications can link to it and therefore be traceable. The only thing is that we cannot put GPL code into a LGPL library.

Ouch! I only have approval for RCU implementations under GPL. :-(

One theoretical exception is that GPL covers only distribution. Of couse, several have been known to express strong feelings about this exception. The system-library exception would seem to only cover proprietary applications that shipped with the platform, so I don't see how it is generally useful in this case.

So, thoughts about the traced proprietary executables not being distributed? Or does the process of tracing them somehow distribute them in some situations? If so, can these situations be feasibly avoided by people tracing proprietary applications.

Quoted 12 lines

The other point is that I use a few low-level primitives from the Linux kernel header (e.g. atomic increment for x86, barrier macros). Those are simple one-liners, but, still, I wonder about the licensing implications. I could simply "rewrite" them, but that would be a shame to have a different primitive implementation of those simple primitives in userspace and in kernel-space just for a licensing question. I would really like to keep the Linux kernel coding-style within this library. So the question would be : are those headers, distributed with the Linux kernel, distributed under GPL license ? Is there any special clause that would permit using their content under LGPL ? If not, would the community see such use favorably ?

Quoted 1 line

Ideas/comments are welcome.

My understanding is that any file in the Linux source tree that does not contain a specific license is licensed GPLv2-only courtesy of the COPYING file at the top of the source tree.

Of course, I am not a lawyer, and even if I was, I doubt that I would be permitted to dispense legal advice...

Thanx, Paul

Quoted 8 lines

Thanks,

Mathieu

Signature · 2 lines
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
#2 lore raw
Quoted 38 lines · * Paul E. McKenney ([email protected]) wrote:
Quoted 9 lines · Mathieu Desnoyers

Hi Paul,

I think that it would be good to distribute the userspace rcu work we are currently doing (ref. :
http://lttng.org/cgi-bin/gitweb.cgi?p=userspace-rcu.git) as a LGPL library rather than GPL so it can be linked to the userspace part of the LTTng tracer. We want to provide this tracer as a LGPL library so proprietary applications can link to it and therefore be traceable. The only thing is that we cannot put GPL code into a LGPL library.

Ouch! I only have approval for RCU implementations under GPL. :-(

One theoretical exception is that GPL covers only distribution. Of couse, several have been known to express strong feelings about this exception. The system-library exception would seem to only cover proprietary applications that shipped with the platform, so I don't see how it is generally useful in this case.

So, thoughts about the traced proprietary executables not being distributed? Or does the process of tracing them somehow distribute them in some situations? If so, can these situations be feasibly avoided by people tracing proprietary applications.

Quoted 12 lines

The other point is that I use a few low-level primitives from the Linux kernel header (e.g. atomic increment for x86, barrier macros). Those are simple one-liners, but, still, I wonder about the licensing implications. I could simply "rewrite" them, but that would be a shame to have a different primitive implementation of those simple primitives in userspace and in kernel-space just for a licensing question. I would really like to keep the Linux kernel coding-style within this library. So the question would be : are those headers, distributed with the Linux kernel, distributed under GPL license ? Is there any special clause that would permit using their content under LGPL ? If not, would the community see such use favorably ?

Quoted 1 line

Ideas/comments are welcome.

Quoted 9 lines

My understanding is that any file in the Linux source tree that does not contain a specific license is licensed GPLv2-only courtesy of the COPYING file at the top of the source tree.

Of course, I am not a lawyer, and even if I was, I doubt that I would be permitted to dispense legal advice...

Thanx, Paul

Yes, I think that it's good to limit use of such RCU primitive to GPL-only applications. It will give them an advantage over proprietary apps. As far as tracing is concerned, we might be OK with leaving LTTng userspace libs GPL, but people would have to either create a (slow) IPC-based wrapper to send the information out of their application or just to do not distribute their instrumented application.

Mathieu

Quoted 9 lines
Quoted 8 lines

Thanks,

Mathieu

Signature · 2 lines
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
Signature · 2 lines
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
#3 lore raw
In reply to Mathieu Desnoyers
Quoted 1 line · On Wed, 18 Feb 2009 13:02:32 -0500 Mathieu Desnoyers…

only thing is that we cannot put GPL code into a LGPL library.

You'll need a patent grant from IBM for non GPL use for that not just an LGPL library

Quoted 4 lines

The other point is that I use a few low-level primitives from the Linux kernel header (e.g. atomic increment for x86, barrier macros). Those are simple one-liners, but, still, I wonder about the licensing implications. I could simply "rewrite" them, but that would be a shame

Ask the author - certainly the original basic atomic ops Linus gave specific permission to the mozilla folks to use under other licences.

Alan

#4 lore raw
Quoted 12 lines · * Alan Cox ([email protected]) wrote:
Quoted 1 line · On Wed, 18 Feb 2009 13:02:32 -0500 Mathieu Desnoyers…

only thing is that we cannot put GPL code into a LGPL library.

You'll need a patent grant from IBM for non GPL use for that not just an LGPL library

Quoted 4 lines

The other point is that I use a few low-level primitives from the Linux kernel header (e.g. atomic increment for x86, barrier macros). Those are simple one-liners, but, still, I wonder about the licensing implications. I could simply "rewrite" them, but that would be a shame

Quoted 5 lines

Ask the author - certainly the original basic atomic ops Linus gave specific permission to the mozilla folks to use under other licences.

Alan

Thanks Alan for this precious information. I'll discuss with IBM about possible alternatives.

Mathieu

Signature · 2 lines
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68