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, Sep 18, 11:01 PM
Unknown Object (File)
Wed, Sep 16, 7:51 AM
Unknown Object (File)
Thu, Sep 10, 5:07 PM
Unknown Object (File)
Thu, Sep 10, 5:04 PM
Unknown Object (File)
Sun, Sep 6, 9:16 PM
Unknown Object (File)
Sat, Sep 5, 7:46 PM
Unknown Object (File)
Sat, Sep 5, 6:42 AM
Unknown Object (File)
Fri, Sep 4, 5:42 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