zfs-dkms UBSAN array-out-of-bounds warning with kernel 6.5 on mantic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zfs-linux (Ubuntu) |
Fix Released
|
Undecided
|
Steve Langasek | ||
Mantic |
Fix Released
|
Undecided
|
Steve Langasek |
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-
[ 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:/
[Regression potential]
This change is limited to ZFS, so we may experience regressions in those systems that are using ZFS filesystems or zpool volumes.
debdiff in attach fixes the UBSAN warnings with linux 6.5 on mantic.