Forked from
Alex Deucher / linux
Source project has a limited visibility.
-
Eric W. Biederman authored
Any cred that is destined for use by commit_creds must have a non-NULL cred->ucounts field. Only curing credential construction is a NULL cred->ucounts valid. Only abort_creds, put_cred, and put_cred_rcu needs to deal with a cred with a NULL ucount. As set_cred_ucounts is non of those case don't confuse people by handling something that can not happen. Link: https://lkml.kernel.org/r/871r4irzds.fsf_-_@disp2133 Tested-by:
Yu Zhao <yuzhao@google.com> Reviewed-by:
Alexey Gladkov <legion@kernel.org> Signed-off-by:
"Eric W. Biederman" <ebiederm@xmission.com>
Eric W. Biederman authoredAny cred that is destined for use by commit_creds must have a non-NULL cred->ucounts field. Only curing credential construction is a NULL cred->ucounts valid. Only abort_creds, put_cred, and put_cred_rcu needs to deal with a cred with a NULL ucount. As set_cred_ucounts is non of those case don't confuse people by handling something that can not happen. Link: https://lkml.kernel.org/r/871r4irzds.fsf_-_@disp2133 Tested-by:
Yu Zhao <yuzhao@google.com> Reviewed-by:
Alexey Gladkov <legion@kernel.org> Signed-off-by:
"Eric W. Biederman" <ebiederm@xmission.com>