Loading
crypto: iaa - Account for cpu-less numa nodes
mainline inclusion from mainline-v6.8-rc1 commit b8910630c967ffee582289451ddb5f9f19c26872 category: bugfix bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I9TA1S CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b8910630c967ffee582289451ddb5f9f19c26872 -------------------------------- 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. Intel-SIG: commit b8910630c967 crypto: iaa - Account for cpu-less numa nodes. Backporting patches for Intel IAA crypto driver on Intel Xeon platform. 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> Signed-off-by:
Xiaochen Shen <xiaochen.shen@intel.com>