Author Topic: Clean GPL examples?  (Read 11740 times)

0 Members and 1 Guest are viewing this topic.

Online magic

  • Super Contributor
  • ***
  • Posts: 8072
  • Country: pl
Re: Clean GPL examples?
« Reply #25 on: March 08, 2019, 02:44:23 pm »
Okay, I was thinking about developing and distributing proprietary modules alone.
When they ship a proprietary module preinstalled on a system, and many vendors do, perhaps NVIDIA too with their devboards nowadays, then it's again this question of whether it constitutes combining the two programs into one or merely putting them side by side in one memory device.
And from FSF's own FAQ that I quoted before (emphasis added):
Quote
If the modules are included in the same executable file, they are definitely combined in one program. If modules are designed to run linked together in a shared address space, that almost surely means combining them into one program.
So I don't think it's a clear-cut as you say, particularly when the secret part of the module is really a multi-OS hardware driver which runs the same way on any OS you use it with and doesn't interact with the kernel apart from malloc/free, PCI access and maintaining a userspace API.
I mean, if it were a clean-cut violation of copyright law as you suggest, there would be lawsuits already from FSF zealots who happen to have commited a single line of code to Linux twenty years ago and Torvalds could do jack shit about it.
 

Offline Marco

  • Super Contributor
  • ***
  • Posts: 7761
  • Country: nl
Re: Clean GPL examples?
« Reply #26 on: March 08, 2019, 03:04:15 pm »
I'm not saying it's a clear cut violation, I'm saying the GPL only tag shenanigans are mostly meaningless because Linus&co are trying to claim copyrights for other people's code. The only thing Linus can do if he doesn't like the GPL any more and wants to truly carve out part of the kernel interface for binary only modules is to rewrite everyone else's code and relicense it under a different license, otherwise it's all bluster.

From the TLDP module howto :
Quote
What about GPL-ONLY symbols? Kernel developers have selected some symbols that one uses in interfacing an LKM to the base kernel as GPL-only. These symbols have "GPL_ONLY" in their names, making this intent obvious. Furthermore, in order for the Linux module loader to let your LKM use them, you must include some code in your LKM that supposedly certifies you license your module under GPL.

These probably have no legal significance. If the LKM is not a derivative work of Linux, then the kernel developers simply have no legal way to block you from putting the GPL annotation in your code and distributing it binary-only anyhow. If the LKM is a derivative work of Linux, then the absence of the GPL-only classification of the symbol is probably not enough to give permission to use it in a binary-only LKM. The license document does not mention them. At best, you can use GPL-only symbols as a gentleman's promise not to sue you for use of all the other symbols in a binary-only LKM.

Lawsuits are an expensive and often unprofitable game even if you win, but it only takes one dogged individual (like with the VMWare case) and a single judge to make this house of cards collapse. So caveat emptor (even if Linux is "free").
« Last Edit: March 08, 2019, 03:35:52 pm by Marco »
 

Offline janoc

  • Super Contributor
  • ***
  • Posts: 3958
  • Country: de
Re: Clean GPL examples?
« Reply #27 on: March 08, 2019, 03:32:21 pm »
Mea Culpa, so someone is suing. It's just Linus and other major contributors who have almost certainly intentionally not spoken out about it for over a decade.

I guess you have to be living in a cave or something, then.

These debates about the licensing and GPL violations are a regular staple on the kernel mailing list. Again - that you do not hear about lawsuits does not mean anything! Most of these things are settled outside of courts before any lawsuits are filled, with confidentiality agreements on both sides.

The long standing policy of both Linux devs and FSF is to give people the benefit of doubt and chance to correct their mistakes. Only if they don't the lawyers get involved. Not to use a copyright as means to shake companies down for money by filing lawsuits all the time. That's pretty much the last resort.

By this time pretty much everyone knows that Linux is not free for taking and that there are consequences, so companies mostly obey the rules.



The GPL only tags don't mean much, every contributor has as much right to make a copyright claim as another. The people who add the tag don't have the right to overrule the GPL for other contributors.

That's not the point. The point of that tag is that if your module uses APIs that have this tag, then you can't claim ignorance anymore.

Either distribution with a binary only module is okay, or it isn't ... the tags can't be relevant, except for the standing of the specific person who added them to sue. I think Linus&Co would like them to be relevant, but they can't go back in time to change the license to really make them so ... so instead they just stay intentionally quiet and try to maintain a status quo where nearly everyone pretends they overrule the license.

The tags are a tool to clearly delineate the boundaries of the space, that's all. The rest will be always for the individual copyright owners and their lawyers to deal with.

Graphics drivers aren't user mode ... how many mobile GPU drivers are open source?

And how many graphic drivers are derivative works of Linux kernel? Usually the same blob is used whether the board runs Linux or e.g. VXWorks, just the API shim is different. If you want to argue that this is a GPL violation, then you need to present some more evidence than this sort of hand-waving.

BTW, there are open source graphic drivers for mobile GPUs too:
http://linux-sunxi.org/Mali

and a good summary here:
https://nullr0ute.com/2017/09/the-state-of-open-source-accelerated-graphics-on-arm-devices/

E.g. Tegra is open source, Vivante is, Qualcomm's Adreno has an official driver, there is even some work going on the Videocore from Broadcom.

You really should do some research before posting this stuff - three posts and all three were trivial to debunk with 5 minutes of googling.
 

Offline Marco

  • Super Contributor
  • ***
  • Posts: 7761
  • Country: nl
Re: Clean GPL examples?
« Reply #28 on: March 08, 2019, 03:38:19 pm »
The Chinese SOC manufacturers don't give a hoot about VxWorks ... they support Android, and sometimes half heartedly plain Linux on the side. Often with a whole bunch of kernel version specific blobs, no shims in sight. The open source versions of the drivers are not the ones bundled in most devices.

Not that it matters if they are derivative, the project as a whole is derivative and the linking is intimate ... the GPL is designed not to allow anything intimately linked as a bundle without an offer for source code, no matter how many shims you put in between. You still need that GPL license to distribute Linux in the first place, derivation is irrelevant. NVIDIA's original workaround was acceptable because (at the time) they didn't bundle the distribution.

Maybe the courts will at some point invalidate that intent, but that will make all binary modules okay. The GPL only tags as irrelevant as they are now.
« Last Edit: March 08, 2019, 03:44:43 pm by Marco »
 

Online magic

  • Super Contributor
  • ***
  • Posts: 8072
  • Country: pl
Re: Clean GPL examples?
« Reply #29 on: March 08, 2019, 04:44:17 pm »
The Chinese SOC manufacturers don't give a hoot
The Chinese are the Chinese, the same laws don't apply to them. Don't imagine you will be allowed to get away with any of that.

Not that it matters if they are derivative, the project as a whole is derivative and the linking is intimate ... the GPL is designed not to allow anything intimately linked as a bundle without an offer for source code, no matter how many shims you put in between.
Intimacy is not a concept in copyright law nor in the GPL and neither are virality or shims for that matter. What matters is not just the delivery format of the two pieces of code in question but also how they interact, how much have in common, what's their historic origin and so on.
Such is the position even of FSF themselves and probably was since the dawn of time.

Maybe the courts will at some point invalidate that intent, but that will make all binary modules okay.
No such thing will happen. You can't violate copyright simply because you use the same executable file format as some other project which doesn't violate copyright. Nor can you get away with copyright violation in the West for the reason that somebody else is getting away with it in China.
 

Offline Marco

  • Super Contributor
  • ***
  • Posts: 7761
  • Country: nl
Re: Clean GPL examples?
« Reply #30 on: March 08, 2019, 05:10:16 pm »
Intimacy is not a concept in copyright law nor in the GPL and neither are virality or shims for that matter. What matters is not just the delivery format of the two pieces of code in question but also how they interact, how much have in common, what's their historic origin and so on.
Such is the position even of FSF themselves and probably was since the dawn of time.

Their position is that any kind of linking (with bundled distribution) will mean the GPL covers the whole. Shims, static, dynamic ... it makes bugger all difference as far as FSF is concerned.
« Last Edit: March 08, 2019, 05:12:59 pm by Marco »
 

Offline blacksheeplogic

  • Frequent Contributor
  • **
  • Posts: 532
  • Country: nz
Re: Clean GPL examples?
« Reply #31 on: March 08, 2019, 09:48:57 pm »
It's not clear in my mind if the source has to be provided for a loadable kernel module/driver. I've chosen to keep the driver as stripped down as possible with a view that I will either publish the driver source or not release a final Linux based solution. I'm leaning towards the latter.
 

Offline OwO

  • Super Contributor
  • ***
  • Posts: 1248
  • Country: cn
  • RF Engineer.
Re: Clean GPL examples?
« Reply #32 on: March 10, 2019, 03:42:14 am »
I don't get all this faff. The solution is pretty simple: if you develop and release software that is heavily based on a GPL component, such that it can be considered to be "developed for" or a "derivative work" of the component, then you must allow those who receive the binary to obtain your source code under a compatible license. Your license can be LGPL or MIT or BSD or whatever, it doesn't have to be GPL.

If you want to release proprietary software then you better code everything yourself (or hire people to do it) rather than take advantage of volunteer effort and profiting off it.
« Last Edit: March 10, 2019, 03:44:28 am by OwO »
 

Offline SomeoneTopic starter

  • Super Contributor
  • ***
  • Posts: 6126
  • Country: au
    • send complaints here
Re: Clean GPL examples?
« Reply #33 on: March 10, 2019, 04:36:38 am »
I don't get all this faff. The solution is pretty simple:
The original question (answered very well in amongst all the noise) is how to meet GPL compliance when distributing a system that includes some GPL components. Its still not made easy and there are many examples of projects which are just ignoring the requirements, the solution is not simple.
 

Offline blacksheeplogic

  • Frequent Contributor
  • **
  • Posts: 532
  • Country: nz
Re: Clean GPL examples?
« Reply #34 on: March 10, 2019, 05:03:54 am »
If you want to release proprietary software then you better code everything yourself (or hire people to do it) rather than take advantage of volunteer effort and profiting off it.

It's not that clear cut.

If everything developed runs in user space there is no requirement to provide source code. However, if it is a kernel loadable module their possibly is. We not talking in either of these cases using other libraries, it just running on the platform.

Development can more easily not support Linux, there's no really compelling reason in most case, it's much easier to develop for one platform - typically Windows with it's market share, and if a second platform is wanted OSX, together these cover the vast majority of the user base. Why should developers go to the effort of also providing Linux drivers & support? It's a small market, and it is far easier not too. The Linux community wants more mainstream support it's not development asking.

If development want to support Linux which is not a main target market, they have a lot more considerations over where code is placed and how it structured in order to make the driver is a thin as possible which is not always ideal and it' compromises ALL platforms if code reuse is required.

Personally, I feel it's too risky to distribute binary only kernel drivers, there was a movement some years ago to disallow loading of non-GPL kernel drivers, and although it failed it could always come back so the safe approach in my view is to keep the driver thin or don't support the platform. The second being the easier option.

I'm not getting into the debate on open verse close, just pointing out one over looked aspect. It's not as one sided as you seem to apply with development riding the wave of free work, Linux is not as attractive as you make it out to be. There are few benefits to supporting the platform. Given the market distribution little reason for development to grow their Linux offerings especially if it involves a lot more work.






 

Online magic

  • Super Contributor
  • ***
  • Posts: 8072
  • Country: pl
Re: Clean GPL examples?
« Reply #35 on: March 10, 2019, 09:24:25 am »
I wonder what's the situation with Windows.
Are Windows drivers derived works of Windows?
Do they need license from Microsoft to be produced?
Do they need license from Microsoft to be distributed?
Do they need license from Microsoft to be distributed as part of an embedded Windows installation?
Does Microsoft grant such license somewhere in that TL;DR EULA?

Anyone knows? :popcorn:
 

Offline nick_d

  • Regular Contributor
  • *
  • Posts: 120
Re: Clean GPL examples?
« Reply #36 on: March 11, 2019, 08:22:59 am »
Good points about whether the rules are different for proprietary kernel device driver support vs GPL kernel device driver support, and about whether it is easier/wiser for companies to not support Linux given these issues.

Let me say though, that I completely disagree about there being few compelling reasons for companies to support Linux in addition to the usual suspects being Windows and Mac OS.

I can certainly see where this is coming from, and I would have completely agreed -- 20 years ago. However, this is not 1999, this is 2019 and the landscape has shifted significantly since then.

I assume you are talking about drivers for consumer devices (printers, cameras and such) to be connected to a desktop or notebook PC. Because if you're not, the argument is easily refuted given that routers, phones etc all use Linux today.

Even then, the argument is pretty thin. Why do NVidia and AMD both produce high quality GPU drivers for Linux? And why do essentially all printers and office multifunction units supply a driver? Granted its basic printing functionality and not all featured. However, they do this because the market demands it and because not to do so is a competitive disadvantage. Others will soon follow.

Linux has a much higher profile than 20 years ago. Many organizations now use it on the desktop, including the one I work for. Check your employment pages if you don't believe me. As many demand Linux as MS skills today. It is not yet ubiquitous in the home or in education, but this will follow slowly.

MS has not done themselves any favours with their current horrible offerings. Up to Windows 8 was essentially useable if a bit annoying. That's no longer the case. Even the Windows 10 laptop I bought brand new for my wife had non working wifi and touchpad out of the box due to driver issues. I couldn't believe how bad it is. Mac OS also is not keeping up at all.

And let us not forget web, the great equaliser and disrupter. Since the Internet largely runs on Linux it makes the local OS increasingly irrelevant, except if you are a web developer and therefore must run a Linux desktop.

cheers, Nick
 

Offline Marco

  • Super Contributor
  • ***
  • Posts: 7761
  • Country: nl
Re: Clean GPL examples?
« Reply #37 on: March 11, 2019, 02:50:42 pm »
Why do NVidia and AMD both produce high quality GPU drivers for Linux? And why do essentially all printers and office multifunction units supply a driver?

Of those, only NVIDIA bundles closed source drivers with Linux. When they first used the shim trick the general consensus was their driver was only acceptable because they didn't bundle. That consensus slowly eroded as Linus&Co stood by while binary modules were bundled left and right, but the original reasons behind the consensus never did. Status quo can convince even judges, but still ... caveat emptor.

Linus&Co are a bit of bloody assholes in this respect by the way, if this ever goes to court and jurisprudence comes down on the side of bundled binary modules not being covered by GPL partly thanks to the status quo they build, the GPL will forever be weakened.
 

Offline newbrain

  • Super Contributor
  • ***
  • Posts: 1919
  • Country: se
Re: Clean GPL examples?
« Reply #38 on: March 12, 2019, 01:42:22 pm »
I wonder what's the situation with Windows.
Are Windows drivers derived works of Windows?
Do they need license from Microsoft to be produced?
Do they need license from Microsoft to be distributed?
Do they need license from Microsoft to be distributed as part of an embedded Windows installation?
Does Microsoft grant such license somewhere in that TL;DR EULA?

Anyone knows? :popcorn:
Of course, IANAL & TINLA  :horse:.
Here's my reading of the WDK (device drive SDK) license:

They are derivative works of the WDK.
Yes, if you use the WDK.
Yes, as above.
I would say it does not make a difference.
Yes, under the conditions in the WDK license.

But the above applies to the distribution of code included in the SDK, in object/lib/source forms (each with specific rules).

For your own driver code, we can look at the many examples of windows drivers on this Microsoft github repo.
The license is MS-PL, which is considered Open Source by OSI.
It grants the right to liberally distribute the code and derivative works, and gives some patent protection, but it's not a copyleft license.

TL,DR: You are able to distribute your code liberally, but the parts of WDK are subject to a specific Microsoft license.
Nandemo wa shiranai wa yo, shitteru koto dake.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->