tests/net/socket/socketpair appears to mis-use work queue APIs #30072
Labels
area: Networking
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
The only in-tree use of
k_work_submit_to_user_queue()
outside of its own unit tests and a footprint test is in tests/net/socket/socketpair.In that test the queue to which items are submitted is not a user queue: it was created with
k_work_q_start()
rather thank_work_q_user_start()
. Certain permissions on queue internal fields were granted to make the test work.Since the entire test uses user unit tests, it's not clear whether this was meant to be a non-user test that just verifies socketpair, or was truly intended to show that the socketpair API works from both privileged and user contexts.
In any case mixing the user-mode API to submit work items with the privileged mode API to define a work queue is confusing. The test should be reworked to use one or the other.
The text was updated successfully, but these errors were encountered: