Skip to content

Conversation

@duc3503
Copy link

@duc3503 duc3503 commented Nov 13, 2025

The access_ok() function expects a user-space pointer as its first argument, not the address of the pointer. This patch removes the address-of (&) operator when checking priv_cmd.buf, ensuring proper validation of the user buffer.

This fixes potential incorrect access checks that could lead to undefined behavior or security issues.

The access_ok() function expects a user-space pointer as its first
argument, not the address of the pointer.  This patch removes the
address-of (&) operator when checking priv_cmd.buf, ensuring proper
validation of the user buffer.

This fixes potential incorrect access checks that could lead to
undefined behavior or security issues.

Signed-off-by: Duc Huynh BV <[email protected]>
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.

1 participant