by InvaderFizz · 3y ago · 0 comments
> ERROR: modpost: GPL-incompatible module zfs.ko uses GPL-only symbol 'bio_end_io_acct_remapped'
I don't understand why there isn't a flag to ignore these and accept a tainted kernel so that this type of issue doesn't break things. Then again, pacman should have aborted the process as well.
That isn’t possible as I understand it.
Loading any non-GPL module will mark the Kernel as tainted, but that’s not the issue here.
The problem is that the ZFS module uses Kernel symbols that are marked as GPL-only, meaning that the Kernel will refuse to load the ZFS module as it isn’t marked as a GPL module. There isn’t any way to bypass this short of recompiling the Kernel to remove this restriction.
The legal status of this is uncertain, since a number of questions naturally arise:
1. Is it acceptable to mark a Kernel module as a GPL module (this is done via a macro in the source) but release it under a license that is not GPL-compatible?
2. Is it acceptable to recompile the Kernel to remove this restriction?
As far as I know neither of these have ever been tested, and there are differing opinions.
Producing and distributing a module that uses these symbols under a non-GPL compatible license is already an infringement, because you have produced a derivative work and distributed it outside the license conditions.
If you recompile your Kernel to remove the restriction then you may be aiding the module developer in committing a copyright violation.
I’m not sure how much I buy this argument personally, but I have seen it advanced (I think on the LKML).
UPDATE: I found it: https://lwn.net/Articles/154603/
Quoting Linus:
> I think both them [the lawyers Linus claims he spoke to] said that anybody who were to change a xyz_GPL to the non-GPL one in order to use it with a non-GPL module would almost immediately fall under the "willful infringement" thing, and that it would make it MUCH easier to get triple damages and/or injunctions, since they clearly knew about it.
Again, not endorsing this argument, just pointing out that some people (e.g. Linus) claim this isn’t permitted.
I’m not entirely sure why people think this comment is worth downvoting: I have been very clear that I don’t really buy this argument, but I thought it was interesting and relevant to point out Linus’s take on the matter.
Which in the case of ZFS is obviously nonsense. ZFS was developed on Solaris and ported to many other OSes. Its certainly not a derivative work of the linux kernel. This is a case of the linux kernel devs being bullies, and trying to make life harder for 3rd party modules.
If they can claim copyright violation for using a GPL-only symbol which didn't used to be GPL-only, then I think ZFS devs can claim an antitrust violation for locking them out of the kernel. Both legal concepts are absurd..
Producing the module is not, on it's own, an infringement. It's only if you distribute or publish the result that you get into trouble with the GPL since you're not in a position to distribute re-licensed ZFS source code[1].
Thus it should be perfectly fine to have a package which downloaded the ZFS code and compiled a kernel module for that machine, as long as the user did not distribute the compiled kernel module to others in any way.
[1]: https://opensource.org/license/gpl-2-0/ (section 2)
Are you a lawyer? Asking in good faith, because if you are then this is the first qualified opinion I’ve seen on the matter.
Everything else has been people claiming to have received legal opinions, see for example the email from Linus in my sibling comment.