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
Unknown Object (File)
Sun, Jul 19, 10:42 PM
Unknown Object (File)
Sat, Jul 18, 7:28 PM
Unknown Object (File)
Sat, Jul 18, 3:46 PM
Unknown Object (File)
Tue, Jun 30, 5:17 PM
Unknown Object (File)
Mon, Jun 29, 9:29 AM
Unknown Object (File)
May 30 2026, 6:10 PM
Unknown Object (File)
May 30 2026, 6:05 PM
Unknown Object (File)
May 27 2026, 12:01 PM
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.