[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-06-06 Thread Timo Aaltonen
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-06-02 Thread Timo Aaltonen
oem-5.17 verification missing

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

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-06-01 Thread Timo Aaltonen
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
   Status: New

** Also affects: linux-oem-5.17 (Ubuntu Focal)
   Importance: Undecided
   Status: New

** Also affects: linux (Ubuntu Jammy)
   Importance: Undecided
   Status: New

** Also affects: linux-oem-5.14 (Ubuntu Jammy)
   Importance: Undecided
   Status: New

** Also affects: linux-oem-5.17 (Ubuntu Jammy)
   Importance: Undecided
   Status: New

** Changed in: linux (Ubuntu Focal)
   Status: New => Invalid

** Changed in: linux-oem-5.14 (Ubuntu Jammy)
   Status: New => Invalid

** Changed in: linux-oem-5.17 (Ubuntu Focal)
   Status: New => Invalid

** Changed in: linux-oem-5.14 (Ubuntu)
   Status: New => Invalid

** Tags removed: verification-needed-focal
** Tags added: verification-done-focal

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

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-05-31 Thread Kay-Michael Voit
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-05-29 Thread bsdz
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 as follows:

sudo apt-get install linux-generic/jammy-proposed linux-headers-
generic/jammy-proposed

However, inspection of dmesg shows the proposed/installed kernel is
5.15.0-35-generic (not the version from the above Ubuntu kernel bot,
i.e. linux-oem-5.17/5.17.0-1006.6 or linux-oem-5.14/5.14.0-1040.44).

Also, the UBSAN issue still persists.

Do I need to do something else?

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

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-05-27 Thread Ubuntu Kernel Bot
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 exists, change the tag 'verification-needed-focal' to
'verification-failed-focal'.

If verification is not done by 5 working days from today, this fix will
be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how
to enable and use -proposed. Thank you!


** Tags added: verification-needed-focal

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

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-05-20 Thread Ubuntu Kernel Bot
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 exists, change the tag 'verification-needed-jammy' to
'verification-failed-jammy'.

If verification is not done by 5 working days from today, this fix will
be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how
to enable and use -proposed. Thank you!


** Tags added: verification-needed-jammy

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

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-05-18 Thread Mario Limonciello
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-05-18 Thread populationless
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-05-15 Thread Kai-Heng Feng
Great! Please consider to send it to upstream mailing list.

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

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-05-13 Thread populationless
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 this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-05-13 Thread Kai-Heng Feng
Yes, that one looks correct.

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

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-05-12 Thread populationless
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 a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-05-12 Thread Kai-Heng Feng
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-05-12 Thread populationless
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 notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-05-12 Thread Kai-Heng Feng
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-05-12 Thread populationless
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"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1958770/+attachment/5589243/+files/aq_nic.c.patch

** Patch removed: "aq_nic.c.diff"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1958770/+attachment/5588496/+files/aq_nic.c.diff

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

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-05-11 Thread bsdz
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;
count = aq_vec_get_sw_stats(aq_vec, tc, data);
}
}
}

Have tested whether it compiles sorry.

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

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-05-11 Thread populationless
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; tc++) {
for (i = 0U, aq_vec = self->aq_vec[0];
aq_vec && self->aq_vecs > i;
++i, aq_vec = self->aq_vec[i]) {
data += count;
count = aq_vec_get_sw_stats(aq_vec, tc, data);
}
}

I have included a diff for the other two functions.

** Patch added: "aq_nic.c.diff"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1958770/+attachment/5588496/+files/aq_nic.c.diff

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

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-05-11 Thread populationless
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-05-10 Thread Kai-Heng Feng
Nice catch, mind to send a patch to fix it?

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

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-05-10 Thread bsdz
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
(https://github.com/torvalds/linux/blob/8d3a6c37d50d5a0504c126c932cc749e6dd9c78f/drivers/net/ethernet/aquantia/atlantic/aq_nic.c#L1267-L1269).

Which looks like this:


for (i = 0U, aq_vec = self->aq_vec[0];
self->aq_vecs > i; ++i, aq_vec = self->aq_vec[i])
aq_vec_stop(aq_vec);

And, to avoid UBSAN, should be rewritten as:


for (i = 0U; self->aq_vecs > i; ++i) {
aq_vec = self->aq_vec[i];
aq_vec_stop(aq_vec);
}

And, in fact, looks like there are another two places in that file that
require the same treatment.

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

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-05-09 Thread populationless
** 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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-05-09 Thread populationless
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 decided to just build
5.18-rc6 out of desperation. I figured the changes should be included by
now, though I'm not sure and don't know how to check...

This is what I did:

sudo apt install alien autoconf bison build-essential ccache fakeroot flex gawk 
git libattr1-dev libblkid-dev libdevmapper-dev libelf-dev libncurses5-dev 
libselinux-dev libssl-dev libtool libudev-dev linux-headers-$(uname -r) 
uuid-dev zlib1g-dev
mkdir build
cd build
git clone 
git://git.launchpad.net/~ubuntu-kernel-test/ubuntu/+source/linux/+git/mainline-crack
 ubuntu_kernel
cd ubuntu_kernel
git checkout tags/v5.18-rc6
cp /boot/config-"$(uname -r)" .config
yes '' | make oldconfig
make prepare scripts
cd ..
git clone https://github.com/zfsonlinux/zfs.git
cd zfs
git checkout zfs-2.1.5-staging
sh autogen.sh
./configure --prefix=/ --libdir=/lib --includedir=/usr/include 
--datarootdir=/usr/share --enable-linux-builtin=yes 
--with-linux=$HOME/build/ubuntu_kernel 
--with-linux-obj=$HOME/build/ubuntu_kernel
./copy-builtin $HOME/build/ubuntu_kernel
cd ../ubuntu_kernel
make menuconfig # include zfs
scripts/config --set-str SYSTEM_TRUSTED_KEYS ""
scripts/config --set-str CONFIG_SYSTEM_REVOCATION_KEYS ""
make clean
make -j 16 bindeb-pkg LOCALVERSION=-aq107-test
cd ..
sudo apt install 
./linux-headers-5.18.0-rc6-aq107-test_5.18.0-rc6-aq107-test-1_amd64.deb 
./linux-image-5.18.0-rc6-aq107-test_5.18.0-rc6-aq107-test-1_amd64.deb

After a reboot I seem to get exactly the same error, stack trace is near the 
bottom of the log.
What should I do now?

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

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-04-26 Thread bsdz
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 printf. You need to use printk

printk(KERN_INFO "HERE!\n");

I expect printk just will work although you might need to "#include
"

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

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-04-26 Thread populationless
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 -r
git checkout Ubuntu-5.15.0-25.25
cd drivers/net/ethernet/aquantia/atlantic
nano Makefile # added PWD to ccflags line
nano aq_vec.c.patch
nano aq_nic.c.patch
patch < aq_vec.c.patch 
patch < aq_nic.c.patch 
nano aq_vec.c
make -C /lib/modules/`uname -r`/build M=$PWD
sudo modprobe -v -r atlantic
sudo rmmod atlantic
sudo rmmod macsec
sudo cp atlantic.ko 
/lib/modules/5.15.0-25-generic/kernel/drivers/net/ethernet/aquantia/atlantic/
sudo modprobe -v atlantic
sudo dmesg

I have tried including stdio.h and adding a printf to verify the new
module was indeed loaded, but that kept failing with "no such file"
errors when trying to compile, even though I have build-essentials
installed.

I have tried compiling the module with the files from
https://github.com/torvalds/linux/tree/master/drivers/net/ethernet/aquantia/atlantic,
however that errors out with "implicit declaration of function
‘platform_get_ethdev_address’ [-Werror=implicit-function-declaration]".
A quick google search revealed that this is supposedly a 'new' function
which isn't present in 5.15.0 yet, though I might be wrong.

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

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-04-25 Thread bsdz
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 sure you've successfully loaded the module after
patching and compiling?  (like in my comment #16 but also including step
to patch the files). One thing I did was add a printf statement as well
as patch code to be sure (you might need to include stdio.h).

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

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-04-25 Thread populationless
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: 5.15.0-25-generic
MB: ASRock Fatal1ty X399 Professional Gaming
NIC: Aquantia AQC107

** Attachment added: "dmesg.log"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1958770/+attachment/5583560/+files/dmesg.log

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

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-04-08 Thread Mario Limonciello
** 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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-03-04 Thread bsdz
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-03-04 Thread bsdz
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 notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-03-04 Thread Kai-Heng Feng
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-03-04 Thread bsdz
Oh I forgot to add that i also applied the patch before compiling.

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

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-03-04 Thread bsdz
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 
git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy 
linux-jammy
$ cd linux-jammy
$ git checkout Ubuntu-5.15.0-18.18
$ cd drivers/net/ethernet/aquantia/atlantic
# edit Makefile and add fq path to Include:
# ccflags-y += -I$(srctree)/$(src) 
-I/blahblah/linux-jammy/drivers/net/ethernet/aquantia/atlantic
$ make -C /lib/modules/`uname -r`/build M=$PWD
...
$ sudo modprobe -v -r atlantic
rmmod atlantic
rmmod macsec
$ sudo cp atlantic.ko 
/lib/modules/5.15.0-18-generic/kernel/drivers/net/ethernet/aquantia/atlantic/
$ sudo modprobe -v  atlantic
insmod /lib/modules/5.15.0-18-generic/kernel/drivers/net/macsec.ko 
insmod 
/lib/modules/5.15.0-18-generic/kernel/drivers/net/ethernet/aquantia/atlantic/atlantic.ko
 
$ sudo dmesg
14218.647296] 

[14218.647297] UBSAN: array-index-out-of-bounds in 
/blahblah/linux-jammy/drivers/net/ethernet/aquantia/atlantic/aq_nic.c:515:49
[14218.647299] index 8 is out of range for type 'aq_vec_s *[8]'
[14218.647300] CPU: 4 PID: 2680 Comm: NetworkManager Tainted: P   OE
 5.15.0-18-generic #18-Ubuntu
[14218.647301] Hardware name: Gigabyte Technology Co., Ltd. X399 AORUS 
XTREME/X399 AORUS XTREME-CF, BIOS F5 12/11/2019
[14218.647302] Call Trace:
[14218.647302]  
[14218.647303]  show_stack+0x52/0x58
[14218.647304]  dump_stack_lvl+0x4a/0x5f
[14218.647306]  dump_stack+0x10/0x12
[14218.647307]  ubsan_epilogue+0x9/0x45
[14218.647308]  __ubsan_handle_out_of_bounds.cold+0x44/0x49
[14218.647309]  ? aq_vec_ring_free+0x80/0x80 [atlantic]
[14218.647316]  aq_nic_start+0x3c3/0x3d0 [atlantic]
[14218.647322]  aq_ndev_open+0x49/0x70 [atlantic]
[14218.647329]  __dev_open+0xf3/0x1c0
[14218.647331]  __dev_change_flags+0x1a3/0x220
[14218.647332]  ? __nla_validate_parse+0x14b/0x1a0
[14218.647334]  dev_change_flags+0x26/0x60
[14218.647335]  do_setlink+0x28a/0xc50
[14218.647337]  ? inet6_set_link_af+0x4e/0xb0
[14218.647338]  ? cpumask_next+0x23/0x30
[14218.647340]  ? __nla_validate_parse+0x4c/0x1a0
[14218.647341]  ? __snmp6_fill_stats64.constprop.0+0x121/0x150
[14218.647342]  __rtnl_newlink+0x608/0xa10
[14218.647344]  ? __nla_reserve+0x41/0x50
[14218.647345]  ? skb_free_head+0x68/0x80
[14218.647347]  ? cpumask_next_and+0x24/0x30
[14218.647348]  ? update_sg_lb_stats+0x7c/0x4f0
[14218.647349]  ? cpufreq_driver_resolve_freq+0x10/0x20
[14218.647351]  ? get_next_freq+0x65/0x90
[14218.647352]  ? sugov_get_util+0x77/0xa0
[14218.647353]  ? sugov_update_single_freq+0xf1/0x220
[14218.647354]  ? sugov_exit+0xb0/0xb0
[14218.647357]  ? kmem_cache_alloc_trace+0x19e/0x2e0
[14218.647359]  rtnl_newlink+0x49/0x70
[14218.647360]  rtnetlink_rcv_msg+0x15d/0x400
[14218.647362]  ? rtnl_calcit.isra.0+0x130/0x130
[14218.647363]  netlink_rcv_skb+0x55/0x100
[14218.647365]  rtnetlink_rcv+0x15/0x20
[14218.647366]  netlink_unicast+0x21d/0x330
[14218.647367]  netlink_sendmsg+0x24c/0x4c0
[14218.647369]  sock_sendmsg+0x65/0x70
[14218.647370]  sys_sendmsg+0x24e/0x290
[14218.647372]  ? import_iovec+0x31/0x40
[14218.647374]  ? sendmsg_copy_msghdr+0x7b/0xa0
[14218.647375]  ? rtnl_unlock+0xe/0x10
[14218.647376]  ___sys_sendmsg+0x81/0xc0
[14218.647378]  ? kvfree+0x2a/0x30
[14218.647380]  ? proc_sys_call_handler+0x1c9/0x290
[14218.647381]  ? __fget_files+0xa3/0xd0
[14218.647383]  ? __fget_light+0x32/0x80
[14218.647384]  __sys_sendmsg+0x62/0xb0
[14218.647386]  __x64_sys_sendmsg+0x1d/0x20
[14218.647388]  do_syscall_64+0x5c/0xc0
[14218.647389]  ? exit_to_user_mode_prepare+0x37/0xb0
[14218.647391]  ? syscall_exit_to_user_mode+0x27/0x50
[14218.647392]  ? __do_sys_gettid+0x1b/0x20
[14218.647394]  ? do_syscall_64+0x69/0xc0
[14218.647395]  ? exit_to_user_mode_loop+0x10d/0x160
[14218.647396]  ? exit_to_user_mode_prepare+0x37/0xb0
[14218.647398]  ? syscall_exit_to_user_mode+0x27/0x50
[14218.647399]  ? __do_sys_gettid+0x1b/0x20
[14218.647400]  ? do_syscall_64+0x69/0xc0
[14218.647401]  ? exit_to_user_mode_prepare+0x37/0xb0
[14218.647403]  ? syscall_exit_to_user_mode+0x27/0x50
[14218.647404]  ? __x64_sys_close+0x11/0x40
[14218.647406]  ? do_syscall_64+0x69/0xc0
[14218.647407]  ? __do_sys_gettid+0x1b/0x20
[14218.647408]  ? do_syscall_64+0x69/0xc0
[14218.647409]  ? sysvec_apic_timer_interrupt+0x4e/0x90
[14218.647410]  ? asm_sysvec_apic_timer_interrupt+0xa/0x20
[14218.647412]  entry_SYSCALL_64_after_hwframe+0x44/0xae
[14218.647413] RIP: 0033:0x7efccf117ccd
[14218.647414] Code: 28 89 54 24 1c 48 89 74 24 10 89 7c 24 08 e8 ba 8d f6 ff 
8b 54 24 1c 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 2e 00 00 00 0f 05 <48> 3d 00 
f0 ff ff 77 33 44 89 c7 48 89 44 24 08 e8 fe 8d f6 ff 48
[14218.647415] RSP: 002b:7ffe6ee42d70 EFLAGS: 0293 ORIG_RAX: 
002e
[14218.647417] RAX: ffda RBX: 00f5 RC

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-03-03 Thread Mario Limonciello
@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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-03-03 Thread Ubuntu Foundations Team Bug Bot
** Tags added: patch

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

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-03-02 Thread Kai-Heng Feng
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-03-01 Thread Mario Limonciello
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-03-01 Thread Kai-Heng Feng
Does latest mainline kernel have this issue?

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

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-02-24 Thread bsdz
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-01-30 Thread Mario Limonciello
Out of bounds still happens to me in 5.15.0-18.18.

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

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-01-29 Thread bsdz
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 because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-01-28 Thread Sigmund Ørjavik
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-01-27 Thread Sigmund Ørjavik
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-01-27 Thread Sigmund Ørjavik
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-01-27 Thread Sigmund Ørjavik
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-01-27 Thread Sigmund Ørjavik
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-01-27 Thread Launchpad Bug Tracker
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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1958770

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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

[Bug 1958770] Re: Aquantia GbE LAN driver causes UBSAN error during kernel boot

2022-01-27 Thread Sigmund Ørjavik
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   O
  5.15.0-17-generic #17-Ubuntu
[  294.434374] Hardware name: System manufacturer System Product Name/Z170-PRO, 
BIOS 3801 03/14/2018
[  294.434374] Call Trace:
[  294.434376]  
[  294.434377]  show_stack+0x52/0x58
[  294.434380]  dump_stack_lvl+0x4a/0x5f
[  294.434383]  dump_stack+0x10/0x12
[  294.434384]  ubsan_epilogue+0x9/0x45
[  294.434385]  __ubsan_handle_out_of_bounds.cold+0x44/0x49
[  294.434386]  ? aq_nic_get_link_ksettings+0x58/0x380 [atlantic]
[  294.434393]  ? aq_vec_start+0x94/0xb0 [atlantic]
[  294.434398]  aq_nic_start+0x3af/0x3d0 [atlantic]
[  294.434402]  aq_ndev_open+0x49/0x70 [atlantic]
[  294.434405]  __dev_open+0xf3/0x1c0
[  294.434408]  __dev_change_flags+0x1a3/0x220
[  294.434410]  dev_change_flags+0x26/0x60
[  294.434411]  do_setlink+0x28a/0xc50
[  294.434414]  ? __nla_validate_parse+0x4c/0x1a0
[  294.434416]  rtnl_setlink+0xf6/0x170
[  294.434419]  rtnetlink_rcv_msg+0x15d/0x400
[  294.434421]  ? rtnl_calcit.isra.0+0x130/0x130
[  294.434422]  netlink_rcv_skb+0x55/0x100
[  294.434424]  rtnetlink_rcv+0x15/0x20
[  294.434426]  netlink_unicast+0x21d/0x330
[  294.434427]  netlink_sendmsg+0x24c/0x4c0
[  294.434428]  sock_sendmsg+0x65/0x70
[  294.434430]  __sys_sendto+0x113/0x190
[  294.434433]  __x64_sys_sendto+0x24/0x30
[  294.434435]  do_syscall_64+0x5c/0xc0
[  294.434437]  ? syscall_exit_to_user_mode+0x27/0x50
[  294.434439]  ? do_syscall_64+0x69/0xc0
[  294.434440]  ? __secure_computing+0x42/0xe0
[  294.434442]  ? syscall_trace_enter.constprop.0+0xa3/0x1c0
[  294.43]  ? exit_to_user_mode_prepare+0x37/0xb0
[  294.434446]  ? syscall_exit_to_user_mode+0x27/0x50
[  294.434447]  ? __do_sys_gettid+0x1b/0x20
[  294.434449]  ? do_syscall_64+0x69/0xc0
[  294.434450]  ? do_syscall_64+0x69/0xc0
[  294.434451]  entry_SYSCALL_64_after_hwframe+0x44/0xae
[  294.434453] RIP: 0033:0x7feeaf99146a
[  294.434455] Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb b8 0f 1f 00 f3 0f 1e 
fa 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 15 b8 2c 00 00 00 0f 05 <48> 3d 00 
f0 ff ff 77 7e c3 0f 1f 44 00 00 41 54 48 83 ec 30 44 89
[  294.434456] RSP: 002b:7ffc9cf72cf8 EFLAGS: 0246 ORIG_RAX: 
002c
[  294.434458] RAX: ffda RBX: 55afe2a315e8 RCX: 7feeaf99146a
[  294.434458] RDX: 0020 RSI: 55afe2a30290 RDI: 0003
[  294.434459] RBP: 55afe2a11900 R08: 7ffc9cf72d00 R09: 0080
[  294.434460] R10:  R11: 0246 R12: 55afe2a32bf0
[  294.434461] R13: 053d R14: 55afe2a315a0 R15: 55afe13b0e40
[  294.434462]  

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

Title:
  Aquantia GbE LAN driver causes UBSAN error during kernel boot

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


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