backport 5.3 zfs support to bionic for HWE kernel support
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
spl-linux (Ubuntu) |
Fix Released
|
High
|
Colin Ian King | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
zfs-linux (Ubuntu) |
Fix Released
|
High
|
Colin Ian King | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
== SRU Justification Bionic ==
The HWE 5.3 kernel requires ZFS + SPL to support dkms module build functionality for kernels 4.15 through to 5.3. Basically, the ZFS+SPL compat commits between 4.15 and 5.3 are required to allow the modules to build on kernels upto and include the HWE 5.3 kernel.
== The Fix ==
Backport of upstream commits:
SPL:
- 0002-fix-
- 0003-remove-
- 0004-Linux-
- 0005-Linux-
- 0006-Linux-
- 0007-Linux-
- 0008-Linux-
- 0009-Linux-
- 0010-Linux-
- 0011-Linux-
- 0012-Linux-
- 0013-Linux-
- 0014-Linux-
- 0015-Linux-
- 0016-Linux-
- 0017-Linux-
- 0018-deprecate-
ZFS:
- 3300-Linux-
- 3301-Linux-
- 3302-Linux-
- 3303-Linux-
- 3304-Linux-
- 3305-Linux-
- 3306-Linux-
- 3307-Linux-
- 3308-Linux-
- 3309-Linux-
- 3310-Linux-
- 3311-Linux-
- 3312-Linux-
- 3313-Linux-
- 3314-Linux-
- 3315-Linux-
- 3316-Linux-
- 3317-Linux-
- 3318-Linux-
- 3319-Linux-
- 3320-zpios-
- 3321-add-
== Testcase ==
Without these commits users who install kernels and kernel headers from 4.16 through to 5.3 inclusive won't be able to build spl + zfs in Bionic because of the lack of the kernel compat fixes. With the commits, zfs + spl dkms modules can build cleanly and pass the ubuntu ZFS regression tests found in the kernel team autotests git repository.
== Risk ==
This is a sizeable backport that touches a fair amount of spl + zfs kernel interfacing code. There is a risk that the backport may cause a regression in functionality that has not been exercised by the ZFS regression tests. This backport with the zfs regression testing ensures that no regression in core zfs functionality has been found. It must be noted that most of the patches are upstream compat fixes that are known to be working with the latest ZFS that is being used in focal, so we are confident the original compat changes work.
Note that these updates have all been build tested on x86-64, arm64 and s390x systems with kernels from 4.16 to 5.3 and regression tested with the ubuntu zfs regression tests.
Changed in spl-linux (Ubuntu): | |
assignee: | nobody → Colin Ian King (colin-king) |
Changed in zfs-linux (Ubuntu): | |
assignee: | nobody → Colin Ian King (colin-king) |
Changed in spl-linux (Ubuntu): | |
status: | New → Incomplete |
importance: | Undecided → High |
Changed in zfs-linux (Ubuntu): | |
importance: | Undecided → High |
Changed in spl-linux (Ubuntu): | |
status: | Incomplete → In Progress |
Changed in zfs-linux (Ubuntu): | |
status: | New → In Progress |
Changed in zfs-linux (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in spl-linux (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in spl-linux (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in spl-linux (Ubuntu Bionic): | |
status: | In Progress → Fix Committed |
Changed in zfs-linux (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in zfs-linux (Ubuntu Bionic): | |
status: | In Progress → Fix Committed |
description: | updated |
Changed in zfs-linux (Ubuntu): | |
status: | Fix Committed → Fix Released |
Changed in spl-linux (Ubuntu): | |
status: | Fix Committed → Fix Released |
Apologies if this isn't the place to ask this question... This bug seems to be only about backporting compatibilty for the current 0.7 module but my system seems to have ended up with 0.8. This isn't a problem for me but I would prefer that the userspace aligns with the module so that new features (trim, encryption) can be used/configured.
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
# uname -a
Linux triplex 5.3.0-26-generic #28~18.04.1-Ubuntu SMP Wed Dec 18 16:40:14 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
# dpkg -S /lib/modules/ 5.3.0-26- generic/ kernel/ zfs/zfs. ko 5.3.0-26- generic: /lib/modules/ 5.3.0-26- generic/ kernel/ zfs/zfs. ko
linux-modules-
# modinfo zfs | head 5.3.0-26- generic/ kernel/ zfs/zfs. ko 36F4A216 znvpair, zcommon, icp,zunicode, zavl
filename: /lib/modules/
version: 0.8.1-1ubuntu14.2
license: CDDL
author: OpenZFS on Linux
description: ZFS
alias: devname:zfs
alias: char-major-10-249
srcversion: 7E9D1C5487A61F8
depends: zlua,spl,
retpoline: Y
# apt-cache policy zfsutils-linux gb.archive. ubuntu. com/ubuntu bionic-updates/main amd64 Packages dpkg/status 7.5-1ubuntu15 500 gb.archive. ubuntu. com/ubuntu bionic/main amd64 Packages
zfsutils-linux:
Installed: 0.7.5-1ubuntu16.7
Candidate: 0.7.5-1ubuntu16.7
Version table:
*** 0.7.5-1ubuntu16.7 500
500 http://
100 /var/lib/
0.
500 http://
# apt-cache policy zfs-dkms 7.5-1ubuntu16. 7 500 gb.archive. ubuntu. com/ubuntu bionic- updates/ universe amd64 Packages 7.5-1ubuntu15 500 gb.archive. ubuntu. com/ubuntu bionic/universe amd64 Packages
zfs-dkms:
Installed: (none)
Candidate: 0.7.5-1ubuntu16.7
Version table:
0.
500 http://
0.
500 http://