[Devel] [PATCH rh7 3/4] net_namespace: taint kernel on free, if users exist
Stanislav Kinsburskiy
skinsbursky at virtuozzo.com
Tue Nov 24 03:08:04 PST 2015
Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
---
net/core/net_namespace.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c
index 2332c41..8f5a76f 100644
--- a/net/core/net_namespace.c
+++ b/net/core/net_namespace.c
@@ -237,6 +237,7 @@ static void net_free(struct net *net)
if (unlikely(atomic_read(&net->use_count) != 0)) {
pr_emerg("network namespace not free! Usage: %d\n",
atomic_read(&net->use_count));
+ add_taint(TAINT_WARN, LOCKDEP_STILL_OK);
return;
}
#endif
More information about the Devel
mailing list