[Bug 2033385] [NEW] zfs-dkms UBSAN array-out-of-bounds warning with kernel 6.5 on mantic

Launchpad Bug Tracker 2033385 at bugs.launchpad.net
Tue Aug 29 12:18:47 UTC 2023


You have been subscribed to a public bug by Ubuntu Foundations Team Bug Bot (crichton):

[Impact]

When the zfs module is loaded we can see the following errors in dmesg
with the latest 6.5 kernel in mantic:

[   10.730318] UBSAN: array-index-out-of-bounds in /build/mantic/debian/build/build-generic/_______________________________________________________________________________________________dkms/build/zfs/2.2.0~rc3/build/module/zfs/vdev_raidz_math_impl.h:1475:22
[   10.734075] index 6 is out of range for type 'raidz_col_t [*]'

[Test case]

 $ sudo apt install zfs-dkms

[Fix]

Apply this patch to properly support varlen arrays and prevent the UBSAN
warnings:

https://github.com/ckane/zfs/commit/095a435cd5129b25ebc1b090613b73059719bae5

[Regression potential]

This change is limited to ZFS, so we may experience regressions in those
systems that are using ZFS filesystems or zpool volumes.

** Affects: zfs-linux (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: zfs-linux (Ubuntu Mantic)
     Importance: Undecided
         Status: New


** Tags: patch
-- 
zfs-dkms UBSAN array-out-of-bounds warning with kernel 6.5 on mantic
https://bugs.launchpad.net/bugs/2033385
You received this bug notification because you are a member of Ubuntu Sponsors, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list