This problem was already being investigated by another Engineer. I'll
paste here the summary that he shared with me:

Regarding the failure to boot from iSCSI in IPv6-only instances on
Jammy, we identified two issues:

1. UBSAN Shift-Out-of-Bounds Warning

This warning message is not the root cause of the iSCSI boot failure.

The issue arises because iscsistart reads the
/sys/firmware/ibft/ethernetX/subnet-mask entry even when the system uses
IPv6 for booting.

Since the IPv6 prefix length is 64, the shift exponent becomes negative,
triggering the UBSAN warning.

We have submitted an upstream patch [1] to address this issue.


2. IPv6 Boot Support in open-iscsi

The main cause of the boot failure is that open-iscsi does not support
iBFT iSCSI boot with IPv6, as it uses IPv4-specific APIs for NIC setup.

We have submitted a PR [2] to implement the required functionalities.


With these two fixes, the system can now successfully boot from iSCSI in
IPv6-only instances.

I'll also share this LP bug so he can chime in directly.


[1] https://lkml.org/lkml/2024/12/2/249
[2] https://github.com/open-iscsi/open-iscsi/pull/493

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

Title:
  UBSAN: shift-out-of-bounds in /build/linux-oracle-e23yiU/linux-
  oracle-6.11.0/drivers/firmware/iscsi_ibft.c:313:9

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to