Page MenuHomeFreeBSD

sockets: assert that any protocol with PR_RIGHTS has dom_dispose()
ClosedPublic

Authored by glebius on May 4 2022, 6:44 PM.
Tags
None
Referenced Files
F166611887: D35123.id105787.diff
Fri, Aug 14, 9:04 PM
F166611514: D35123.id105680.diff
Fri, Aug 14, 9:01 PM
F166611413: D35123.diff
Fri, Aug 14, 9:00 PM
Unknown Object (File)
Thu, Aug 13, 5:36 PM
Unknown Object (File)
Wed, Aug 12, 1:39 AM
Unknown Object (File)
Mon, Aug 10, 11:57 PM
Unknown Object (File)
Mon, Aug 10, 10:19 AM
Unknown Object (File)
Mon, Aug 10, 9:59 AM
Subscribers

Details

Summary

Through the entire history only PF_UNIX has this feature.

Diff Detail

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

Event Timeline

markj added a subscriber: markj.

I wouldn't bother with the assertions. If the pointer is null and we crash it'll be obvious why.

This revision is now accepted and ready to land.May 4 2022, 7:11 PM

Just old memories of panic on "call NULL" looking unobvious what exactly happened. Probably no longer true for modern kernel.