HomeFreeBSD

fork: assign refed credentials earlier

Description

fork: assign refed credentials earlier

Prior to this change the kernel would take p1's credentials and assign
them tempororarily to p2. But p1 could change credentials at that time
and in effect give us a use-after-free.

No objections from: kib

Details

Provenance
mjgAuthored on
Parents
rS280329: MFC r279980:
Branches
Unknown
Tags
Unknown

Event Timeline