Revert "Add a reference to ucounts for each cred"
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Sep 2021 14:06:50 +0000 (16:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Sep 2021 06:49:00 +0000 (08:49 +0200)
commitae16b7c668378ea00eb60ab9d29e0d46b0e7aa15
treee5cb3c783e9fe2f38001514423f5a082836ecb7a
parent1aa3f27e592dea3b6cbc5ef5ec979ba5f511d410
Revert "Add a reference to ucounts for each cred"

This reverts commit b2c4d9a33cc2dec7466f97eba2c4dd571ad798a5 which is
commit 905ae01c4ae2ae3df05bb141801b1db4b7d83c61 upstream.

This commit should not have been applied to the 5.10.y stable tree, so
revert it.

Reported-by: "Eric W. Biederman" <ebiederm@xmission.com>
Link: https://lore.kernel.org/r/87v93k4bl6.fsf@disp2133
Cc: Alexey Gladkov <legion@kernel.org>
Cc: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/exec.c
include/linux/cred.h
include/linux/user_namespace.h
kernel/cred.c
kernel/fork.c
kernel/sys.c
kernel/ucount.c
kernel/user_namespace.c