diff options
author | Vasily Averin <vvs@virtuozzo.com> | 2021-07-19 13:44:56 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-20 16:00:38 +0300 |
commit | 2c6ad20b581e37d6331010ee1d28b3307c90ba0a (patch) | |
tree | 0fb3b7875cbcb3fdf333b7ac6470d97d8387e2c9 /drivers/net/veth.c | |
parent | 1b51d8271973e4966078f0c1a5cb061ae9a424d2 (diff) | |
download | linux-2c6ad20b581e37d6331010ee1d28b3307c90ba0a.tar.xz |
memcg: enable accounting for scm_fp_list objects
unix sockets allows to send file descriptors via SCM_RIGHTS type messages.
Each such send call forces kernel to allocate up to 2Kb memory for
struct scm_fp_list.
It makes sense to account for them to restrict the host's memory
consumption from inside the memcg-limited container.
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/veth.c')
0 files changed, 0 insertions, 0 deletions