[nacked] kernel-make-taskstats-available-via-genetlink-per-namespace.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: kernel/taskstats.c: make taskstats available via genetlink per namespace
has been removed from the -mm tree.  Its filename was
     kernel-make-taskstats-available-via-genetlink-per-namespace.patch

This patch was dropped because it was nacked

------------------------------------------------------
From: xu xin <cgel.zte@xxxxxxxxx>
Subject: kernel/taskstats.c: make taskstats available via genetlink per namespace

Currently, the application getdelays cannot get taskstats in a net
namespace.  The returned error is just like the following:

-sh-4.4# ps -ef | tail -5
root       186     2  0 09:23 ?        00:00:00 [kworker/2:1H]
root       187     2  0 09:23 ?        00:00:00 [kworker/0:2-eve]
root       190   183  0 09:23 ?        00:00:00 -sh
root       198   190  0 09:25 ?        00:00:00 ps -ef
root       199   190  0 09:25 ?        00:00:00 tail -5
-sh-4.4#
-sh-4.4# ./getdelays -d -p 186 -v
print delayacct stats ON
debug on
Error getting family id, errno 0

As more and more applications are deployed in containers like Docker, it
is necessary to support getdelays to be used in net namespace.  Taskstats
is safe for use per namespace as genetlink checks the capability of
namespace message by netlink_ns_capable().

Make taskstats available via genetlink per namespace.

Link: https://lkml.kernel.org/r/20220221032202.1925507-1-xu.xin16@xxxxxxxxxx
Signed-off-by: xu xin <xu.xin16@xxxxxxxxxx>
Reported-by: Changcheng Deng <deng.changcheng@xxxxxxxxxx>
Cc: Balbir Singh <bsingharora@xxxxxxxxx>
Cc: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx>
Cc: David Miller <davem@xxxxxxxxxxxxx>
Cc: Eric Dumazet <edumazet@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 kernel/taskstats.c |    1 +
 1 file changed, 1 insertion(+)

--- a/kernel/taskstats.c~kernel-make-taskstats-available-via-genetlink-per-namespace
+++ a/kernel/taskstats.c
@@ -664,6 +664,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 cgel.zte@xxxxxxxxx are





[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux