Skip to content

Conversation

@serhiy-katsyuba-intel
Copy link
Contributor

The hb_mcp[] array is initialized with 3 members (these are memory caps for rballoc()). However, the array size KPB_NO_OF_MEM_POOLS is incorrectly declared as 5. This discrepancy could potentially lead to iterating over uninitialized hb_mcp[] members.

The hb_mcp[] array is initialized with 3 members (these are memory caps
for rballoc()). However, the array size KPB_NO_OF_MEM_POOLS is incorrectly
declared as 5. This discrepancy could potentially lead to iterating over
uninitialized hb_mcp[] members.

Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>
@serhiy-katsyuba-intel
Copy link
Contributor Author

Surprisingly, the PR fails KPB tests. That uninitialized 4th array member is used as 0 memory capabilities flags.

@tmleman
Copy link
Contributor

tmleman commented Jun 17, 2025

That uninitialized 4th array member is used as 0 memory capabilities flags.

Maybe it should be explicitly declared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants