lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200205134426.10570-1-mkoutny@suse.com>
Date:   Wed,  5 Feb 2020 14:44:23 +0100
From:   Michal Koutný <mkoutny@...e.com>
To:     cgroups@...r.kernel.org
Cc:     Tejun Heo <tj@...nel.org>, Li Zefan <lizefan@...wei.com>,
        Johannes Weiner <hannes@...xchg.org>,
        Aleksa Sarai <cyphar@...har.com>, linux-kernel@...r.kernel.org
Subject: [RFC PATCH v2 0/3] cgroup/pids: Make pids.events notifications affine to pids.max

Currently, when pids.max limit is breached in the hierarchy, the event
is counted and reported in the cgroup where the forking task resides. This
isn't hierarchical neither binds event to its limit

Reasons for RFC:

1) Introduction of new event type.

2) Missing one step further would be to distinguish pids.events and
   pids.events.local.

Changes from v1:  https://lkml.kernel.org/r/20191128172612.10259-1-mkoutny@suse.com
- introduce two separate types of events
- make event counting hierarchical

Michal Koutný (3):
  cgroup/pids: Separate semantics of pids.events related to pids.max
  cgroup/pids: Make event counters hierarchical
  selftests: cgroup: Add basic tests for pids controller

 Documentation/admin-guide/cgroup-v1/pids.rst |   3 +-
 Documentation/admin-guide/cgroup-v2.rst      |  14 ++
 kernel/cgroup/pids.c                         |  92 +++++++--
 tools/testing/selftests/cgroup/Makefile      |   8 +-
 tools/testing/selftests/cgroup/test_pids.c   | 188 +++++++++++++++++++
 5 files changed, 288 insertions(+), 17 deletions(-)
 create mode 100644 tools/testing/selftests/cgroup/test_pids.c

-- 
2.24.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ