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

Steve Langasek 2033385 at bugs.launchpad.net
Tue Aug 29 15:18:01 UTC 2023


looks good, thank you

** Changed in: zfs-linux (Ubuntu Mantic)
       Status: New => Fix Committed

** Changed in: zfs-linux (Ubuntu Mantic)
     Assignee: (unassigned) => Steve Langasek (vorlon)

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2033385

Title:
  zfs-dkms UBSAN array-out-of-bounds warning with kernel 6.5 on mantic

Status in zfs-linux package in Ubuntu:
  Fix Committed
Status in zfs-linux source package in Mantic:
  Fix Committed

Bug description:
  [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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/2033385/+subscriptions




More information about the Ubuntu-sponsors mailing list