[lustre-devel] zfs module taints osd_zfs and causes modprobe to fail

Christian Kuntz c.kuntz at opendrives.com
Thu Jul 29 16:31:44 PDT 2021


Hi all,

Resident crazy guy Christian here, I'm compiling lustre 2.14 on kernel
4.19.194 with ZFS 2.0.3 and running into a bit of a challenge thanks to this
kernel commit
<https://github.com/torvalds/linux/commit/262e6ae7081df304fc625cf368d5c2cbba2bb991>
.

In short, `modprobe lustre` succeeds but `modprobe osd_zfs` fails and
generates this output in dmesg:

[82645.937126] osd_zfs: module_layout: kernel tainted.
[82645.937526] osd_zfs: module uses symbols from proprietary module zfs,
inheriting taint.
[82645.938356] osd_zfs: Unknown symbol ktime_get_real_seconds (err -2)
[82645.938568] osd_zfs: Unknown symbol ktime_get_seconds (err -2)

>From what I can gather, the license taint from zfs floats up to osd_zfs,
and since osd_zfs becomes tainted as a non-GPL module it can no longer
utilize the GPL-only symbols from ktime, causing the module insertion to
fail.

As far as I can tell, my options are to either patch the taint inheritance
out of the kernel, add new functions to osd_zfs that replace the
functionality of ktim_get_real_seconds and ktime_get_seconds (honestly,
that feels a bit intimidating), or remove the gpl only requirement from
osd_zfs. Has anyone else run into this and found working solutions yet?

Cheers,
Christian

-- 
 
<https://opendrives.ac-page.com/nabshow2021?utm_source=emailsig&utm_medium=email&utm_campaign=NAB2021>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20210729/325eb728/attachment.html>


More information about the lustre-devel mailing list