linux-stable/drivers/crypto/intel/iaa
Tom Zanussi b8910630c9 crypto: iaa - Account for cpu-less numa nodes
In some configurations e.g. systems with CXL, a numa node can have 0
cpus and cpumask_nth() will return a cpu value that doesn't exist,
which will result in an attempt to add an entry to the wq table at a
bad index.

To fix this, when iterating the cpus for a node, skip any node that
doesn't have cpus.

Also, as a precaution, add a warning and bail if cpumask_nth() returns
a nonexistent cpu.

Reported-by: Zhang, Rex <rex.zhang@intel.com>
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2023-12-29 11:25:56 +08:00
..
iaa_crypto.h crypto: iaa - Add IAA Compression Accelerator stats 2023-12-15 17:52:53 +08:00
iaa_crypto_comp_fixed.c crypto: iaa - Add compression mode management along with fixed mode 2023-12-15 17:52:53 +08:00
iaa_crypto_main.c crypto: iaa - Account for cpu-less numa nodes 2023-12-29 11:25:56 +08:00
iaa_crypto_stats.c crypto: iaa - Remove unneeded newline in update_max_adecomp_delay_ns() 2023-12-29 11:25:55 +08:00
iaa_crypto_stats.h crypto: iaa - Add IAA Compression Accelerator stats 2023-12-15 17:52:53 +08:00
Kconfig crypto: iaa - Add IAA Compression Accelerator stats 2023-12-15 17:52:53 +08:00
Makefile crypto: iaa - Add IAA Compression Accelerator stats 2023-12-15 17:52:53 +08:00