** Description changed: + [Impact] + Compiling this module against the new linux-hwe-5.8 in focal returns the - following build error: + following build error (redefinition of crypto flag names in kernel 5.8): /var/lib/dkms/gost-crypto/0.3.2/build/gost28147_basic.c: In function ‘crypto_gost28147_set_key’: /var/lib/dkms/gost-crypto/0.3.2/build/gost28147_basic.c:103:29: error: ‘CRYPTO_TFM_RES_BAD_KEY_LEN’ undeclared (first use in this function); did you mean ‘CRYPTO_TFM_NEED_KEY’? - 103 | crypto_tfm_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~ - | CRYPTO_TFM_NEED_KEY + 103 | crypto_tfm_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ + | CRYPTO_TFM_NEED_KEY + + [Test case] + + $ sudo apt install gost-crypto-dkms + + Build error is reported in make.log. + + [Fix] + + Fix by adding some #ifdef's to use the right crypto define names with + kernel 5.8. + + [Regression potential] + + The source code for the 5.4 kernel remains the same, so there is no + regression potential. The new changes are all conditionals and they are + all applied to the 5.8 kernel.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1899735 Title: gost-crypto-dkms: build failure with new linux-hwe-5.8 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gost-crypto/+bug/1899735/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs