Page MenuHomeFreeBSD

Fix handling of empty SCM_RIGHTS messages.
AbandonedPublic

Authored by markj on Oct 8 2019, 10:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 2:25 AM
Unknown Object (File)
Jan 15 2023, 10:55 PM
Subscribers
None

Details

Reviewers
None
Summary

As uipc_internalize() processes input control messages, it forms an
output mbuf chain, placed in *controlp.

The switch statement which handles different message types always
appends a new mbuf to the output chain, with one exception: an empty
SCM_RIGHTS message. The code at the end of the loop did not handle this
exception: it always advances controlp along the mbuf chain. Fix this,
and add a regression test.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 26940
Build 25243: arc lint + arc unit