]> www.infradead.org Git - users/dwmw2/linux.git/commit
crypto: iaa - Remove potential infinite loop in check_completion()
authorZanussi, Tom <tom.zanussi@linux.intel.com>
Fri, 27 Sep 2024 18:46:49 +0000 (13:46 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 5 Oct 2024 05:22:05 +0000 (13:22 +0800)
commit8c5459f1663ee689f94e69b25adb415cb95acb88
tree82ab043a70dd4979711d8d564c45fe1b81cd71f9
parent8b6c1e466eecab70c2ed686f636d56eda19f4cd6
crypto: iaa - Remove potential infinite loop in check_completion()

For iaa_crypto operations, it's assumed that if an operation doesn't
make progress, the IAA watchdog timer will kick in and set the
completion status bit to failure and the reason to completion timeout.

Some systems may have broken hardware that doesn't even do that, which
can result in an infinite status-checking loop. Add a check for that
in the loop, and disable the driver if it occurs.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/intel/iaa/iaa_crypto_main.c