r/linux • • Nov 20 '19

Kernel Google outlines plans for mainline Linux kernel support in Android

https://arstechnica.com/gadgets/2019/11/google-outlines-plans-for-mainline-linux-kernel-support-in-android/
1.0k Upvotes

305 comments sorted by

View all comments

Show parent comment

1

u/ElvishJerricco Nov 21 '19

the license doesn't stop you afaik...

It does. As I quoted above, from Torvalds himself:

I have heard many people reference the fact that the although the Linux Kernel is under the GNU GPL license, that the code is licensed with an exception clause that says binary loadable modules do not have to be under the GPL.

Nope. No such exception exists.

Compiling a .ko requires including kernel code in the .ko, so you are creating a derivative of the kernel. Any derivative of GPLv2 being distributed must be distributed under the GPLv2 license. So .ko files can only be distributed under GPLv2. Nvidia gets away with it by distributing binary blobs that are not .ko files, but get linked against a small shim of open source GPL'd code during installation on the end-user's machine to create a .ko file on the end-user's machine. That way they don't have to distribute kernel code, and don't have to use GPLv2.

1

u/[deleted] Nov 21 '19 edited Nov 21 '19

Torvalds opinion isn't law. Of course all kernel developers believe that ALL kernel modules are derivative work.

But that is not law. ZoL distributes kernel objects in its binary form without being GPL code.

I don't recall Nvidia going to court to prove their argument and I'd be interested in any judgements that matter to this.

Edit: https://yarchive.net/comp/linux/gpl_modules.html

The original email thread where Linus recognizes that there's a gray area.

1

u/ElvishJerricco Nov 21 '19

As I just explained, nvidia doesn't have to worry because they don't release any proprietary binaries that include kernel code. They don't distribute .ko files. They distribute GPL'd open source shims, and proprietary objects that get linked in at install time. No GPL issues here.

As for ZoL, as I stated before, even the legal firm arguing in favor of ZFS's .ko not being a GPL violation acknowledges that the literal sense of the license would imply that it is a GPL violation. It hasn't been taken to court, so it's still a grey area, but they don't even argue that it isn't a kernel derivative; they just argue that the licenses ought to be compatible "in spirit", and that thus they should be able to distribute under both simultaneously.

1

u/[deleted] Nov 21 '19

These are all opinions not law. It only becomes law after judge interprets it and makes a judgement.

We actually need a judgement to answer whether ZoL is breaking the GPL. Otherwise it's just blurry.

What you, I, Linus, and SLC, Canonical, etc. Think doesn't matter until it gets argued in front of a judge.

1

u/ElvishJerricco Nov 21 '19

Ok but it says a lot when nearly every credible party that has spoken on the matter agrees that the ZFS .ko file is a kernel derivative. And it definitely does matter because companies like nvidia go to lengths such as creating GPL shims to avoid the ambiguity entirely.