Skip to content

Conversation

@ldorau
Copy link
Contributor

@ldorau ldorau commented Nov 6, 2024

Description

Add protection and visibility to the IPC handle.
Fix os_get_ipc_handle() - get protection and visibility from the IPC handle instead of provider.

Checklist

  • Code compiles without errors locally
  • All tests pass locally
  • CI workflows execute properly

Add protection and visibility to the IPC handle.
Fix `os_get_ipc_handle()` - get protection and visibility
from the IPC handle instead of provider.

Signed-off-by: Lukasz Dorau <[email protected]>
@ldorau ldorau requested a review from a team as a code owner November 6, 2024 10:51
*ptr = utils_mmap(NULL, os_ipc_data->size, os_provider->protection,
os_provider->visibility, fd, os_ipc_data->fd_offset);
*ptr = utils_mmap(NULL, os_ipc_data->size, os_ipc_data->protection,
os_ipc_data->visibility, fd, os_ipc_data->fd_offset);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a test to check the expected properties of the mapped memory retrieved from the IPC handle?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure? ;-)

@ldorau ldorau merged commit 3019efa into oneapi-src:main Nov 7, 2024
74 checks passed
@ldorau ldorau deleted the Fix_os_get_ipc_handle_-_add_protection_and_visibility branch November 7, 2024 10:09
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.

4 participants