Page MenuHomeFreeBSD

kqueue: Fix delivery of unwanted events
ClosedPublic

Authored by des on Jul 22 2026, 3:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Aug 14, 3:33 PM
Unknown Object (File)
Tue, Aug 11, 8:59 AM
Unknown Object (File)
Tue, Aug 11, 2:49 AM
Unknown Object (File)
Sun, Aug 9, 3:48 PM
Unknown Object (File)
Sun, Aug 9, 3:47 PM
Unknown Object (File)
Sun, Aug 9, 3:46 PM
Unknown Object (File)
Sun, Aug 9, 7:56 AM
Unknown Object (File)
Sun, Aug 9, 5:13 AM
Subscribers

Details

Summary

In both procdesc_kqops_event() and filt_proc(), the event variable can
have more than one bit set. This means that:

  • We cannot compare it directly with NOTE_EXIT; we must binary-and them instead.
  • We cannot binary-or it with the report mask; we must binary-and it with the request mask first.

MFC after: 1 week
Fixes: 2a5e58c59694 ("procdesc: add NOTE_PDSIGCHLD")
Fixes: b328975b9d7c ("procdesc: report NOTE_PDSIGCHLD for traced and stopped process")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable