Page MenuHomeFreeBSD

kqueue: fix the always-empty NT_PROCSTAT_KQUEUES core note
ClosedPublic

Authored by seuros on Aug 1 2026, 7:44 AM.
Tags
None
Referenced Files
F172397213: D58583.diff
Fri, Sep 18, 5:04 AM
Unknown Object (File)
Tue, Sep 8, 3:34 PM
Unknown Object (File)
Mon, Sep 7, 9:44 AM
Unknown Object (File)
Sun, Sep 6, 7:24 AM
Unknown Object (File)
Sat, Sep 5, 5:56 AM
Unknown Object (File)
Thu, Sep 3, 6:42 AM
Unknown Object (File)
Wed, Sep 2, 8:21 PM
Unknown Object (File)
Tue, Sep 1, 8:19 AM
Subscribers

Details

Summary

sbuf reserves a byte of its buffer for the terminator, so the sbuf
created with maxlen held one byte less than the sizing pass had
computed. The last record overflowed it, sbuf_bcat() failed, and the
error == 0 guard skipped the copy into the caller's sbuf, so the note
has been emitted at full size but zero filled since 5e7c43ff02dc.

Fixes: 5e7c43ff02dc

Diff Detail

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