Page MenuHomeFreeBSD

kqueue: fix the always-empty NT_PROCSTAT_KQUEUES core note
ClosedPublic

Authored by guest-seuros on Sat, Aug 1, 7:44 AM.
Tags
None
Referenced Files
F165030333: D58583.id183335.diff
Wed, Aug 5, 9:45 AM
F164999092: D58583.diff
Wed, Aug 5, 6:56 AM
Unknown Object (File)
Tue, Aug 4, 7:14 AM
Unknown Object (File)
Tue, Aug 4, 5:29 AM
Unknown Object (File)
Mon, Aug 3, 2:31 PM
Unknown Object (File)
Mon, Aug 3, 7:56 AM
Unknown Object (File)
Mon, Aug 3, 6:53 AM
Unknown Object (File)
Mon, Aug 3, 1:23 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