[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lustre-devel
Subject:    [lustre-devel] zfs module taints osd_zfs and causes modprobe to fail
From:       Christian Kuntz <c.kuntz () opendrives ! com>
Date:       2021-07-29 23:31:44
Message-ID: CANdLGj6GDFX08SqsseGDej7xHDLWvA=95gnUhNuh0jjkJxGnkw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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>

[Attachment #5 (text/html)]

<div dir="ltr">Hi all,<br><br>Resident crazy guy Christian here, I&#39;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  <a href="https://github.com/torvalds/linux/commit/262e6ae7081df304fc625cf368d5c2cbba2bb991">this \
kernel commit</a>.<br><br>In short, `modprobe lustre` succeeds but `modprobe osd_zfs` \
fails and generates this output in dmesg:<br><br>[82645.937126] osd_zfs: \
module_layout: kernel tainted.<br>[82645.937526] osd_zfs: module uses symbols from \
proprietary module zfs, inheriting taint.<br>[82645.938356] osd_zfs: Unknown symbol \
ktime_get_real_seconds (err -2)<br>[82645.938568] osd_zfs: Unknown symbol \
ktime_get_seconds (err -2)<br><br>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. \
<br><br>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?<br><br>Cheers,<br>Christian</div>

<br>
<a href="https://opendrives.ac-page.com/nabshow2021?utm_source=emailsig&amp;utm_medium=email&amp;utm_campaign=NAB2021" \
target="_blank"><img \
src="https://signature.opendrives.com/NAB2021%20Email%20Sig%20500px%20C.png" \
alt="https://opendrives.ac-page.com/nabshow2021?utm_source=emailsig&amp;utm_medium=email&amp;utm_campaign=NAB2021"></a><br>




_______________________________________________
lustre-devel mailing list
lustre-devel@lists.lustre.org
http://lists.lustre.org/listinfo.cgi/lustre-devel-lustre.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic