aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorTom Zanussi <[email protected]>2023-12-27 20:28:32 +0000
committerHerbert Xu <[email protected]>2023-12-29 03:25:56 +0000
commitb8910630c967ffee582289451ddb5f9f19c26872 (patch)
tree098b15d872eb86d3b250481cc54b95544dff822f /security/selinux/hooks.c
parentcrypto: scomp - fix req->dst buffer overflow (diff)
downloadkernel-b8910630c967ffee582289451ddb5f9f19c26872.tar.gz
kernel-b8910630c967ffee582289451ddb5f9f19c26872.zip
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 <[email protected]> Signed-off-by: Tom Zanussi <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions