[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <50FCDB5C.4050608@huawei.com>
Date: Mon, 21 Jan 2013 14:08:28 +0800
From: Li Zefan <lizefan@...wei.com>
To: John Fastabend <john.r.fastabend@...el.com>,
Neil Horman <nhorman@...driver.com>,
Daniel Wagner <daniel.wagner@...-carit.de>
CC: LKML <linux-kernel@...r.kernel.org>, <netdev@...r.kernel.org>,
Cgroups <cgroups@...r.kernel.org>
Subject: [BUG] Bug in netprio_cgroup and netcls_cgroup ?
I'm not a network developer, so correct me if I'm wrong.
Since commit 406a3c638ce8b17d9704052c07955490f732c2b8
("net: netprio_cgroup: rework update socket logic"), sock->sk->sk_cgrp_prioidx
is set when the socket is created, and won't be updated unless the task is
moved to another cgroup.
Now the problem is, a socket can be _shared_ by multiple processes (fork, SCM_RIGHT).
If we place those processes in different cgroups, and each cgroup has
different configs, but all of the processes will send data via this socket
with the same network priority.
Similar with cls cgroup.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists