This may have already been fixed upstream in December 2023: this commit to xen-project/xen looks extremely relevant, because it purports to fix an UBSAN issue with the exact same error text as this issue ("UBSAN: index 1 is out of range for type 'xen_netif_rx_sring_entry [1]'"):
https://github.com/xen- project/xen/commit/93d913c6e66e01597681d0a456c1523279218524 I am way out of my depth here, but as I understand it, these xen files get vendored into the Linux codebase: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=125c0a646a257fd58de223f2c3e1fe8a99085644 ...and from there, they get copied into the git repos for both Ubuntu's `linux` and `linux-aws` packages. Here's one of the affected files in the Jammy LTS repos, and it definitely hasn't been patched because it was last updated in 2021: - linux: https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy/log/include/xen/interface/io/ring.h - linux-aws: https://git.launchpad.net/~canonical-kernel/ubuntu/+source/linux-aws/+git/jammy/log/include/xen/interface/io/ring.h -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/2058480 Title: [Ubuntu 22.04.4/linux-image-6.5.0-1014-aws] Kernel outputs "UBSAN: array-index-out-of-bounds in /build/linux-aws-6.5-4tw9h1/linux- aws-6.5-6.5.0/drivers/net/xen-netfront.c:349:9 " multiple times, especially during boot Status in linux package in Ubuntu: Confirmed Status in linux-aws package in Ubuntu: New Bug description: A newly launched Ubuntu 22.04.4 EC2 instance outputs "UBSAN: array- index-out-of-bounds in /build/linux-aws-6.5-4tw9h1/linux- aws-6.5-6.5.0/drivers/net/xen-netfront.c:349:9" multiple times, especially during boot. Reproducing step: - Launch an Ubuntu 22.04.4 EC2 instance with the instance type t2.*. Additional Info: - Please use t2 instance to make sure to use xen-netfront as a network device. - This messages similar to https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2058477, which is related to netvsc.c To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2058480/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp