[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

[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;

[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

[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

[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

[Bug 1962359] Re: Hibernation fails due to resource busy during swap file check

2022-04-05 Thread bsdz
For me, when I ran journalctl (see above) the following message was present: "kernel: PM: Image not found (code -16)". The minus sign is prefixed to the error code and 16 is a standard linux kernel error code, i.e. $ grep 16 /usr/include/asm-generic/errno-base.h #define EBUSY 16 /*

[Bug 1964814] Re: linux-firmware fails to upgrade to 20220314.gitcd01f857-0ubuntu1

2022-03-14 Thread bsdz
A potential (temporary) workaround is to remove the offending symlinks from package file as follows: mkdir linux-firmware cd linux-firmware cp /var/cache/apt/archives/linux-firmware_20220314.gitcd01f857-0ubuntu1_all.deb ./ ar xf linux-firmware_20220314.gitcd01f857-0ubuntu1_all.deb zstd -d

[Bug 1964794] Re: Faulty linux-firmware upgrade

2022-03-14 Thread bsdz
I have the same issue (although error messages in English): $ sudo apt install --reinstall linux-firmware Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required:

[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.

[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

[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

[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

[Bug 1962359] Re: Hibernation fails due to resource busy during swap file check

2022-03-02 Thread bsdz
> Is the swap space big enough? A good point. This worked on previous versions on Ubuntu with swap (18GB) only 50% of RAM (32GB). I recreated my /swapfile with 38GB and the same issue persists. ie. $ free -m total ... Mem: 31964 Swap: 38911 > Furthermore, the

[Bug 1962359] [NEW] Hibernation fails due to resource busy during swap file check

2022-02-26 Thread bsdz
Public bug reported: Hopefully, the automatically collected information is useful. The issue manifests when I try to hibernate the device. I see the following in the logs: ~$ journalctl --no-hostname -b -1 | tail -6 Feb 25 08:23:54 systemd[1]: nvidia-hibernate.service: Deactivated successfully.

[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

[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

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

2022-01-23 Thread bsdz
Public bug reported: The undefined behaviour sanitiser picks up an array-index-out-of-bounds in the aquantia atlantic driver. The NIC is (I think) built into my gigabyte motherboard (https://www.gigabyte.com/uk/Motherboard/X399-AORUS-XTREME- rev-10/sp#sp). This wasn't an issue before I upgrading