5.15.0-91-generic
Nov 16 21:15:29 mon-host kernel: [ 101.739280]
Nov 16 21:15:29 mon-host kernel: [ 101.785597] UBSAN:
array-index-out-of-bounds in
included upstream in 5.18 and up
** Changed in: linux (Ubuntu)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-5.14 in Ubuntu.
https://bugs.launchpad.net/bugs/1958770
Title:
Aquantia
Appears to be fixed in 5.15.0-53-lowlatency; no longer appearing in my
error logs.
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-5.14 in Ubuntu.
https://bugs.launchpad.net/bugs/1958770
Title:
Aquantia GbE LAN driver causes
Still present in 5.15.0-52-lowlatency
10/19/22 7:59 AMkernel
10/19/22 7:59 AMkernel UBSAN: array-index-out-of-bounds in
Present in 5.15.0-50-lowlatency . Continues the trend where tainted in
the Generic version of the kernel, but not the lowlatency version.
9/22/22 1:41 PM kernel
9/22/22 1:41 PM kernel UBSAN:
Still present in 5.15.0-50-generic
9/21/22 7:54 AM kernel
9/21/22 7:54 AM kernel UBSAN: array-index-out-of-bounds in
/build/linux-lU2d47/linux-5.15.0/drivers/net/ethernet/aquantia/atlantic/aq_nic.c:1262:48
Still present in 5.15.0-48-lowlatency as well. Interestingly, the logs
say the kernel is tainted in generic, but not in lowlatency, despite no
other configuration changes when this is handled.
9/1/22 8:01 AM kernel
Still present in 5.15.0-48-generic
8/31/22 8:01 AM kernel
8/31/22 8:01 AM kernel UBSAN: array-index-out-of-bounds in
/build/linux-kQ6jNR/linux-5.15.0/drivers/net/ethernet/aquantia/atlantic/aq_nic.c:1262:48
Still present on 5.15.0-46-generic (Ubuntu 20.04.3)
[ 30.346347] UBSAN: array-index-out-of-bounds in
/build/linux-hwe-5.15-69LdM0/linux-hwe-5.15-5.15.0/drivers/net/ethernet/aquantia/atlantic/aq_nic.c:1262:48
[ 30.346349] index 8 is out of range for type 'aq_vec_s *[8]'
--
You received this
Still present in 5.15.0-47.53-lowlatency
8/20/22 7:42 AM kernel
8/20/22 7:42 AM kernel UBSAN: array-index-out-of-bounds in
Still present in 5.15.0-46.49-lowlatency
8/10/22 7:56 AM kernel
8/10/22 7:56 AM kernel UBSAN: array-index-out-of-bounds in
Still present on 5.15.0-45-lowlatency after update to it.
8/6/22 10:11 AM kernel
8/6/22 10:11 AM kernel UBSAN: array-index-out-of-bounds in
I have the same problem. Curiously, the patch previously submitted
should fix those code lines reported in the UBSAN report
https://launchpadlibrarian.net/601133815/aq_nic.c.patch
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to
I am still getting this on 5.15.0-43-lowlatency as well. Filed bug
report that turned out to be a duplicate at Bug #1982878
7/26/22 7:33 AM kernel
7/26/22 7:33 AM kernel UBSAN: array-index-out-of-bounds in
I had updated to 5.15.0-41.44, but I still get the error.
syslog:
Jul 13 15:05:58 *** kernel: [0.00] Linux version 5.15.0-41-generic
(buildd@lcy02-amd64-065) (gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0, GNU ld (GNU
Binutils for Ubuntu) 2.38) #44-Ubuntu SMP Wed Jun 22 14:20:53 UTC 2022 (Ubuntu
This bug was fixed in the package linux - 5.15.0-41.44
---
linux (5.15.0-41.44) jammy; urgency=medium
* jammy/linux: 5.15.0-41.44 -proposed tracker (LP: #1979448)
* Fix can't boot up after change to vmd (LP: #1976587)
- PCI: vmd: Assign VMD IRQ domain before enumeration
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: linux (Ubuntu Jammy)
Status: New => Confirmed
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-5.14 in Ubuntu.
This bug was fixed in the package linux-oem-5.14 - 5.14.0-1042.47
---
linux-oem-5.14 (5.14.0-1042.47) focal; urgency=medium
* CVE-2022-1972
- netfilter: nf_tables: sanitize nft_set_desc_concat_parse()
* CVE-2022-1966
- netfilter: nf_tables: disallow non-stateful
This bug was fixed in the package linux-oem-5.17 - 5.17.0-1011.12
---
linux-oem-5.17 (5.17.0-1011.12) jammy; urgency=medium
* CVE-2022-1972
- netfilter: nf_tables: sanitize nft_set_desc_concat_parse()
* CVE-2022-1966
- netfilter: nf_tables: disallow non-stateful
oh well, the fix came via stable backports, so marking verified
** Changed in: linux-oem-5.17 (Ubuntu)
Status: Confirmed => Invalid
** Tags removed: verification-needed-jammy
** Tags added: verification-done-jammy
--
You received this bug notification because you are a member of Kernel
oem-5.17 verification missing
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-5.14 in Ubuntu.
https://bugs.launchpad.net/bugs/1958770
Title:
Aquantia GbE LAN driver causes UBSAN error during kernel boot
Status in linux
the fix for oem-5.14 comes via stable updates
** Also affects: linux-oem-5.14 (Ubuntu)
Importance: Undecided
Status: New
** Also affects: linux (Ubuntu Focal)
Importance: Undecided
Status: New
** Also affects: linux-oem-5.14 (Ubuntu Focal)
Importance: Undecided
I experience this with Ubuntu kernel 5.15.0-33, but not with 5.15.0-25.
I installed the system with the latter, and then updated to the former, with
which it stopped working. Selecting 5.15.0-25 in grub still works.
--
You received this bug notification because you are a member of Kernel
I followed instructions under the wiki
(https://wiki.ubuntu.com/Testing/EnableProposed) using the "Developer
Options" to enable pre-released updates (jammy-proposed); I then also
followed section "Selective upgrading from -proposed" to set a pin-
priority of 400. I then installed proposed kernel
This bug is awaiting verification that the linux-oem-5.14/5.14.0-1040.44
kernel in -proposed solves the problem. Please test the kernel and
update this bug with the results. If the problem is solved, change the
tag 'verification-needed-focal' to 'verification-done-focal'. If the
problem still
This bug is awaiting verification that the linux-oem-5.17/5.17.0-1006.6
kernel in -proposed solves the problem. Please test the kernel and
update this bug with the results. If the problem is solved, change the
tag 'verification-needed-jammy' to 'verification-done-jammy'. If the
problem still
https://www.kernel.org/doc/html/latest/process/submitting-patches.html
You can use tags like "Suggested-by:" for the email of KH and bsdz.
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-5.17 in Ubuntu.
How would I go about doing so, while giving credit to bsdz and you?
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-5.17 in Ubuntu.
https://bugs.launchpad.net/bugs/1958770
Title:
Aquantia GbE LAN driver causes UBSAN error
Great! Please consider to send it to upstream mailing list.
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-5.17 in Ubuntu.
https://bugs.launchpad.net/bugs/1958770
Title:
Aquantia GbE LAN driver causes UBSAN error during
OK, so far everything seems to be working great. Performance is good, no
UBSAN messages, no other abnormalities. I think we are good now.
** Patch added: "aq_nic.c.patch"
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1958770/+attachment/5589555/+files/aq_nic.c.patch
--
You received
Yes, that one looks correct.
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-5.17 in Ubuntu.
https://bugs.launchpad.net/bugs/1958770
Title:
Aquantia GbE LAN driver causes UBSAN error during kernel boot
Status in linux
Sorry. Like this?
for (tc = 0U; tc < self->aq_nic_cfg.tcs; tc++) {
for (i = 0U; self->aq_vecs > i; ++i) {
aq_vec = self->aq_vec[i];
if (!aq_vec)
break;
data += count;
count = aq_vec_get_sw_stats(aq_vec, tc, data);
}
}
--
You received this bug notification because you are
The following two lines shouldn't be omitted:
data += count;
count = aq_vec_get_sw_stats(aq_vec, tc, data);
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-5.17 in Ubuntu.
https://bugs.launchpad.net/bugs/1958770
Title:
I have implemented your suggestion, so far no issues. I'm going to kick
off my backup now and do some more testing later.
** Patch added: "aq_nic.c.patch"
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1958770/+attachment/5589366/+files/aq_nic.c.patch
--
You received this bug
I think that's a bit different to the original version, which breaks out
the loop as soon as "aq_vec" evaluates to false.
So, instead of
if (aq_vec) {
...
}
Should be
if (!aq_vec)
break;
--
You received this bug notification because you are a member of Kernel
Packages, which is
Thank you @bsdz, compiles and works flawlessly since yesterday. UBSAN is
happy, performance is as expected.
@kaihengfeng, is this patch suitable for inclusion upstream?
** Patch added: "aq_nic.c.patch"
I think the last/3rd one might be rewritten like:
for (tc = 0U; tc < self->aq_nic_cfg.tcs; tc++) {
for (i = 0U; self->aq_vecs > i; ++i) {
aq_vec = self->aq_vec[i];
if (aq_vec) {
data += count;
I have successfully modified two of the mentioned three functions and
tested the module, so far UBSAN does not complain anymore :)
Unfdortunately I can't rewrite the third function, since it does not
match the pattern (and I have no idea what I'm doing)
for (tc = 0U; tc < self->aq_nic_cfg.tcs;
I tried changing the function, now the module doesn't compile.
EDIT: Sorry, forgot to close the curly bracket...
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-5.17 in Ubuntu.
https://bugs.launchpad.net/bugs/1958770
Title:
Nice catch, mind to send a patch to fix it?
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-5.17 in Ubuntu.
https://bugs.launchpad.net/bugs/1958770
Title:
Aquantia GbE LAN driver causes UBSAN error during kernel boot
Status
Actually I took a look at the aq_nic.c and it looks like there are still
places in the code that need patching to avoid UB. For example, from
your dmesg I see it pointing to this section of code
** Attachment added: "dmesg.log"
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1958770/+attachment/5588060/+files/dmesg.log
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-5.17 in Ubuntu.
Sorry for the delay, life happened...
After mucking about with this for the past few days and not being able
to get the module to compile on 5.15 for the life of me (always same
error "implicit declaration of function ‘platform_get_ethdev_address’
[-Werror=implicit-function-declaration]"), I have
Just a couple of other suggestions.
You can generate a patch file from the upstream kernel repo. eg
cd linux-jammy
curl
https://github.com/torvalds/linux/commit/8d3a6c37d50d5a0504c126c932cc749e6dd9c78f.patch
-o ./atlantic.patch
git diff
git apply ./atlantic.patch
git diff
I was wrong about
I'm not 100% sure if I loaded the new module correctly, but I believe
that I did. Here are the steps I took to compile the module and load it,
which resulted in the output of #21:
git clone
git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy
linux-jammy
cd linux-jammy/
uname
This might be fixed in a future kernel release. I see the above patches
in github (18 days old).
https://github.com/torvalds/linux/commit/8d3a6c37d50d5a0504c126c932cc749e6dd9c78f
I can see aq_vec_stop in your stack trace and I can see the above patch
addresses that frame.
That said, are you
I'm gonna chime in too. I have applied both patches from #18 and #20 and
recompiled the module, however I still get the UBSAN: array-index-out-
of-bounds messsage. NIC seems to work though. I am not a programmer, so
unfortunately I can't come up with a solution, but I am willing to test.
Kernel:
** Also affects: linux-oem-5.17 (Ubuntu)
Importance: Undecided
Status: New
** Changed in: linux-oem-5.17 (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-5.17 in Ubuntu.
This new patch doesn't appear to resolve issue either. However, I did
get it to work if I extended your technique to aq_nic.c. See following
comment with patch.
Then I see the following in my dmesg:
[ 2991.604548] atlantic :07:00.0 enp7s0: renamed from eth0
--
You received this bug
Patch as file.
** Patch added: "aq_nic.patch"
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1958770/+attachment/5565904/+files/aq_nic.patch
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
Please try this one:
https://lore.kernel.org/netdev/20220304050812.7472-1-kai.heng.f...@canonical.com/
which converts all the usage pattern to a safer form.
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
Oh I forgot to add that i also applied the patch before compiling.
--
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/1958770
Title:
Aquantia GbE LAN driver causes UBSAN error during kernel
This doesn't seem to resolve it for me. It's been a long time since I
recompiled kernel modules, these are the steps I took:
# module compile instructions from
https://wiki.ubuntu.com/Kernel/SourceCode
$ uname -r
5.15.0-18-generic
$ git clone
@KH:
Yeah that fixes it for me. I applied on top of a 5.15 kernel and would have
seen UBSAN error at bootup.
Feel free to added a "Tested-by: Mario Limonciello
" tag for it when you submit up if you don't
change it.
--
You received this bug notification because you are a member of Kernel
** Tags added: patch
--
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/1958770
Title:
Aquantia GbE LAN driver causes UBSAN error during kernel boot
Status in linux package in Ubuntu:
Please give this patch a try, thanks!
** Patch added: "0001-net-atlantic-Fix-LP-1958770.patch"
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1958770/+attachment/5565201/+files/0001-net-atlantic-Fix-LP-1958770.patch
--
You received this bug notification because you are a member of
I checked on 5.17-rc3 most recently and reproduced it. AFAICT this code
hasn't changed since 5.16-rc4.
--
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/1958770
Title:
Aquantia GbE LAN
Does latest mainline kernel have this issue?
--
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/1958770
Title:
Aquantia GbE LAN driver causes UBSAN error during kernel boot
Status in linux
This bug returned on my machine. Not sure why it disappeared &
reappeared. Also now on 5.15.0-18-generic.
--
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/1958770
Title:
Aquantia GbE LAN
Out of bounds still happens to me in 5.15.0-18.18.
--
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/1958770
Title:
Aquantia GbE LAN driver causes UBSAN error during kernel boot
Status in
My system seems to be working now. My dmesg shows the driver as loading:
[1.439880] atlantic :07:00.0 enp7s0: renamed from eth0
I had some problems with my distribution upgrade and had to re-run it,
ie "apt dist-upgrade" along with other commands.
--
You received this bug notification
reverted to 5.13.0-28-generic from impish and aqc107 is still broken. is
this caused by some updated firmware blob in jammy?
--
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/1958770
Title:
Updated to 5.15.0-18-generic and now the network adapter doesn't work
at all.
--
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/1958770
Title:
Aquantia GbE LAN driver causes UBSAN error
uname logfile
** Attachment added: "uname logfile"
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1958770/+attachment/5557858/+files/uname-a.log
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
lspci logfile
** Attachment added: "lspci logfile"
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1958770/+attachment/5557857/+files/lspci-vvnn.log
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
dmesg logfile
** Attachment added: "dmesg.log"
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1958770/+attachment/5557856/+files/dmesg.log
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
Same in my system:
[ 294.432996] UBSAN: array-index-out-of-bounds in
/build/linux-Qow4fL/linux-5.15.0/drivers/net/ethernet/aquantia/atlantic/aq_nic.c:484:48
[ 294.433695] index 8 is out of range for type 'aq_vec_s *[8]'
[ 294.434372] CPU: 5 PID: 1341 Comm: systemd-network Tainted: P
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: linux (Ubuntu)
Status: New => Confirmed
--
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/1958770
68 matches
Mail list logo