Skip to content

Conversation

jk-ozlabs
Copy link
Member

Commit 1b6c367 ("mctp-netlink: add MCTP_NL_CHANGE_NAME event") did not update the COUNT definition, so causing a potential array index overrun on change dump.

Instead of hard-coding, use the enum itself for the count value, and add a dump string for the new CHANGE_NAME event type.

Fixes: 1b6c367 ("mctp-netlink: add MCTP_NL_CHANGE_NAME event")
Fixes: #120
Reported-by: Nidhin MS [email protected]

Commit 1b6c367 ("mctp-netlink: add MCTP_NL_CHANGE_NAME event") did not
update the COUNT definition, so causing a potential array index overrun
on change dump.

Instead of hard-coding, use the enum itself for the count value, and add
a dump string for the new CHANGE_NAME event type.

Fixes: 1b6c367 ("mctp-netlink: add MCTP_NL_CHANGE_NAME event")
Fixes: CodeConstruct#120
Reported-by: Nidhin MS <[email protected]>
Signed-off-by: Jeremy Kerr <[email protected]>
@jk-ozlabs jk-ozlabs merged commit 3506e7d into CodeConstruct:main Oct 14, 2025
3 checks passed
@jk-ozlabs jk-ozlabs deleted the dev/change-op-fix branch October 14, 2025 05:51
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.

mctp_nl_changes_dump doesnt cover all NL_OPs

1 participant