Page MenuHomeFreeBSD

kqueue: Fix delivery of unwanted events
ClosedPublic

Authored by des on Wed, Jul 22, 3:11 PM.
Tags
None
Referenced Files
F164183378: D58395.id182491.diff
Wed, Jul 29, 10:20 AM
F164180145: D58395.id182462.diff
Wed, Jul 29, 9:51 AM
F164153363: D58395.id182491.diff
Wed, Jul 29, 5:02 AM
F164107146: D58395.diff
Tue, Jul 28, 7:09 PM
F164099203: D58395.id.diff
Tue, Jul 28, 5:12 PM
Unknown Object (File)
Mon, Jul 27, 6:02 AM
Unknown Object (File)
Mon, Jul 27, 1:21 AM
Unknown Object (File)
Sun, Jul 26, 5:45 PM
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