Skip to contentSkip to conversation

kernel-make-taskstats-available-from-all-net-namespaces.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message May 10, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: kernel: make taskstats available from all net namespaces
has been removed from the -mm tree. Its filename was
kernel-make-taskstats-available-from-all-net-namespaces.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: xu xin <[email protected]>
Subject: kernel: make taskstats available from all net namespaces

If getdelays runs in a non-init network namespace, it will fail in getting delayacct stats even if it has privilege of root user, which seems to be not very reasonable. We can simply reproduce this by executing commands:

unshare -n
getdelays -d -p <pid>

I don't think net namespace should be an obstacle to the normal execution of getdelay function. So let's make it available from all net namespaces.

---

 kernel/taskstats.c |    1 +
 1 file changed, 1 insertion(+)
kernel/taskstats.c renamed from kernel/taskstats.c~kernel-make-taskstats-available-from-all-net-namespaces +1 -0
@@ -688,6 +688,7 @@ static struct genl_family family __ro_af
 	.module		= THIS_MODULE,
 	.ops		= taskstats_ops,
 	.n_ops		= ARRAY_SIZE(taskstats_ops),
+	.netnsok	= true,
 };
 
 /* Needed early in initialization */

_

Patches currently in -mm which might be from [email protected] are