Page MenuHomeFreeBSD

kqueue: Fix delivery of unwanted events
ClosedPublic

Authored by des on Wed, Jul 22, 3:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Aug 2, 9:39 AM
Unknown Object (File)
Sun, Aug 2, 9:39 AM
Unknown Object (File)
Sun, Aug 2, 5:49 AM
Unknown Object (File)
Sun, Aug 2, 2:20 AM
Unknown Object (File)
Thu, Jul 30, 8:05 PM
Unknown Object (File)
Thu, Jul 30, 8:05 PM
Unknown Object (File)
Wed, Jul 29, 1:51 PM
Unknown Object (File)
Wed, Jul 29, 10:20 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 75012
Build 71895: arc lint + arc unit