--- zzzz-none-000/linux-4.4.271/crypto/ablkcipher.c 2021-06-03 06:22:09.000000000 +0000 +++ hawkeye-5590-750/linux-4.4.271/crypto/ablkcipher.c 2023-04-19 10:22:28.000000000 +0000 @@ -595,6 +595,11 @@ if (IS_ERR(inst)) goto put_tmpl; + /* + * copy flags from registered algorithm + */ + inst->alg.cra_flags |= (alg->cra_flags & CRYPTO_ALG_NOSUPP_SG); + err = crypto_register_instance(tmpl, inst); if (err) { tmpl->free(inst);