Page MenuHomeFreeBSD

kqueue: fix the always-empty NT_PROCSTAT_KQUEUES core note
ClosedPublic

Authored by seuros on Sat, Aug 1, 7:44 AM.
Tags
None
Referenced Files
F168157243: D58583.id183196.diff
Wed, Aug 26, 3:39 PM
F168105760: D58583.id183335.diff
Wed, Aug 26, 10:15 AM
Unknown Object (File)
Mon, Aug 24, 7:33 PM
Unknown Object (File)
Wed, Aug 19, 6:51 PM
Unknown Object (File)
Mon, Aug 17, 6:31 PM
Unknown Object (File)
Sun, Aug 16, 9:30 PM
Unknown Object (File)
Thu, Aug 13, 9:37 PM
Unknown Object (File)
Thu, Aug 13, 12:54 PM
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