Page MenuHomeFreeBSD

kern_dup(): Call filecaps_free_prep() in a write section.
ClosedPublic

Authored by markj on Mar 18 2020, 10:18 PM.
Tags
None
Referenced Files
F89308299: D24120.diff
Fri, Jul 26, 10:49 AM
F89303745: D24120.diff
Fri, Jul 26, 9:46 AM
Unknown Object (File)
Wed, Jul 10, 10:17 AM
Unknown Object (File)
Jun 26 2024, 12:14 AM
Unknown Object (File)
Jun 20 2024, 11:33 PM
Unknown Object (File)
Jun 20 2024, 10:04 PM
Unknown Object (File)
May 28 2024, 8:19 AM
Unknown Object (File)
May 18 2024, 4:55 PM
Subscribers

Details

Summary

filecaps_free_prep() bzeros the capabilities structure and we need to be
careful to synchronize with unlocked readers, which expect a consistent
rights structure.

I'm not really sure it's even worth keeping filecaps_free_prep(), since it's
doing some unnecessary work.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj added reviewers: kib, mjg.
This revision is now accepted and ready to land.Mar 18 2020, 11:50 PM
mjg accepted this revision.EditedMar 19 2020, 3:07 AM

The original capsicum code introduced a lot of bzeroing which can probably be eliminated.