summaryrefslogtreecommitdiff
path: root/kernel/locking
diff options
context:
space:
mode:
authorAlison Schofield <alison.schofield@intel.com>2026-02-23 11:13:40 -0800
committerDave Jiang <dave.jiang@intel.com>2026-02-24 08:33:30 -0700
commite46f25f5a81f6f1a9ab93bcda80d5dfaea9f4897 (patch)
tree530ccae5ec74b27b8afa6bfb8bcded7de744ab46 /kernel/locking
parent0a70b7cd397e545e926c93715ff6366b67c716f6 (diff)
cxl/region: Test CXL_DECODER_F_NORMALIZED_ADDRESSING as a bitmask
The CXL decoder flags are defined as bitmasks, not bit indices. Using test_bit() to check them interprets the mask value as a bit index, which is the wrong test. For CXL_DECODER_F_NORMALIZED_ADDRESSING the test reads beyond the flags word, making the flag sometimes appear set and blocking creation of CXL region debugfs attributes that support poison operations. Replace test_bit() with a bitmask check. Found with cxl-test. Fixes: 208f432406b7 ("cxl: Disable HPA/SPA translation handlers for Normalized Addressing") Signed-off-by: Alison Schofield <alison.schofield@intel.com> Reviewed-by: Gregory Price <gourry@gourry.net> Tested-by: Gregory Price <gourry@gourry.net> Link: https://patch.msgid.link/63fe4a6203e40e404347f1cdc7a1c55cb4959b86.1771873256.git.alison.schofield@intel.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'kernel/locking')
0 files changed, 0 insertions, 0 deletions