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