Repository navigation
unotify: break out of SECCOMP_IOCTL_NOTIF_SEND retry loop on success and handle POLLERR/POLLNVAL - #421
Open
phenomenon0 wants to merge 1 commit into
Open
unotify: break out of SECCOMP_IOCTL_NOTIF_SEND retry loop on success and handle POLLERR/POLLNVAL#421phenomenon0 wants to merge 1 commit into
phenomenon0 wants to merge 1 commit into
Conversation
…and handle POLLERR/POLLNVAL Signed-off-by: phenomenon0 <jethro.adeniran@gmail.com>
phenomenon0
force-pushed
the
fix-unotify-ioctl-loop
branch
from
December 5, 2026 18:55
90aa493 to
3a88865
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes two bugs in
unotify/unotify.cc:threadMain(), thefor (;;)retry loop aroundioctl(unotif_fd, SECCOMP_IOCTL_NOTIF_SEND, &resp)lacked abreakwhenioctl() == 0, causing every traced syscall to issue a duplicateSECCOMP_IOCTL_NOTIF_SENDfor the sameresp.id(which immediately failed in the kernel withEINPROGRESS).pfd.revents & (POLLHUP | POLLERR | POLLNVAL)instead of exact equalitypfd.revents == POLLHUPso the poll loop does not spin whenPOLLERRorPOLLNVALaccompanies hangup withoutPOLLIN.Verification
unotify/unotify.owithg++ -std=c++20 -O2 -Wall:0errors,0warnings.