[GIT PULL] ucount fixes for v5.14

From: Eric W. Biederman
Date: Wed Aug 25 2021 - 10:54:34 EST



Please pull the for-v5.14 branch from the git tree:

git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git for-v5.14

HEAD: bbb6d0f3e1feb43d663af089c7dedb23be6a04fb ucounts: Increase ucounts reference counter before the security hook

This branch fixes a regression that made it impossible to increase
rlimits that had been converted to the ucount infrastructure, and also
fixes a reference counting bug where the reference was not incremented
soon enough.

The fixes are trivial and the bugs have been encountered in the wild,
and the fixes have been tested.

Alexey Gladkov (1):
ucounts: Increase ucounts reference counter before the security hook

Eric W. Biederman (1):
ucounts: Fix regression preventing increasing of rlimits in init_user_ns

kernel/cred.c | 12 ++++++------
kernel/fork.c | 8 ++++----
2 files changed, 10 insertions(+), 10 deletions(-)

Thank you,
Eric