Need help to debug kernel panic

Hi forum,

for the second time I got the following kernel panic (link) while working in virtual box guest (WIndows 11). If I’m not mistaken, the dump seems to point towards a module function “mt76_dma_add_buf” (please correct me if I’m wrong) for which there seems to be an error report here.

Could you please comment the following questions:

  1. do I read the dump correctly or is the fault elsewhere?

  2. if indeed the problem comes from the mentioned mt76 WiFi driver, how can I find out if the patch is or was installed, or how I could install it

  3. since I do not necessarily need WiFi (since I also have Ethernet), how could I remove the mt76 driver?

Thanks for you help

Have you tried it using Ethernet and disabling the WiFi?

Could someone comment my questions?

Thanks

The error report seems to be failing:

As @ricklinux noted, have you tried using the Ethernet and disabling WiFi? If the issue does not persist, one could then assume the issue was the mt76 driver, which answers your question.

Well I don’t know why we’re getting a Bad Gateway now, since it was working the other day and the error report is still visible on Google Search:

Rather than cutting off one of my two legs, I’d rather like to try to understand what’s going on. Especially because this problem has so far only occurred to me on EOS and none of my other ten or so distros.

Thanks.

Most (but not all) the repositories on that site seem to be failing, so it looks like they’re dealing with bigger issues :man_shrugging:

Disabling the WiFi is a troubleshooting step. If while WiFi is enabled, you reliably get a kernel panic, but while WiFi is disabled, you don’t get any kernel panics, then that has isolated a likely cause.

The panic report would seem to point to the MT76 WiFi adaptor. I’d regard that simply as a clue, rather than trying to decipher the full thing, because these errors can have a cascade effect that ends up producing a lot of output that may or may not be relevant. As such, disabling the WiFi adaptor is a simple means of confirming if we’re not barking up the wrong tree.

What driver are you using for your MT76 WiFi adaptor?

inxi -Nxxx --za
yay -Q | grep mt76
1 Like

@thn
I don’t really know what your issue is yet. I was asking you to try disabling WiFi and connect just to Ethernet to see what is the result.

My only other suggestion to try is to turn off mac address randomization. Again this is a suggestion to try.

/etc/NetworkManager/conf.d/wifi_rand_mac.conf

add

[device]
wifi.scan-rand-mac-address=no

Edit: You’ll also need to restart networkmanager or reboot.

sudo systemctl restart NetworkManager

as a workaround the easiest way would be to blacklist the module/driver ofn the wiifi device (most clean way too)… Could be its also something else in enabling teh wifi hardware is causing the problem.. in that case it would be needed to disable in a lower level on the device level.

with something like that in your cmdline module_blacklist=mt7921e i do not know if mt7921e is the correct one you need to check what exactly driver the wifi uses from something like inxi -Naz

With this it would simply not load the wifi driver/modules and with it the wifi will not get used.

@thn
It would also be helpful if you posted the hardware.

inxi -Faz | eos-sendlog

Is there a Bios update for your hardware?