linux/Documentation/admin-guide/sysctl
Dmitry Safonov eeec26d5da time/namespace: Add max_time_namespaces ucount
Michael noticed that userns limit for number of time namespaces is missing.

Furthermore, time namespace introduced UCOUNT_TIME_NAMESPACES, but didn't
introduce an array member in user_table[]. It would make array's
initialisation OOB write, but by luck the user_table array has an excessive
empty member (all accesses to the array are limited with UCOUNT_COUNTS - so
it silently reuses the last free member.

Fixes user-visible regression: max_inotify_instances by reason of the
missing UCOUNT_ENTRY() has limited max number of namespaces instead of the
number of inotify instances.

Fixes: 769071ac9f ("ns: Introduce Time Namespace")
Reported-by: Michael Kerrisk (man-pages) <mtk.manpages@gmail.com>
Signed-off-by: Dmitry Safonov <dima@arista.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Andrei Vagin <avagin@gmail.com>
Acked-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Cc: stable@kernel.org
Link: https://lkml.kernel.org/r/20200406171342.128733-1-dima@arista.com
2020-04-07 12:37:21 +02:00
..
abi.rst docs: admin-guide: move sysctl directory to it 2019-07-15 11:03:01 -03:00
fs.rst docs: admin-guide: move sysctl directory to it 2019-07-15 11:03:01 -03:00
index.rst docs: admin-guide: move sysctl directory to it 2019-07-15 11:03:01 -03:00
kernel.rst Documentation: Better document the softlockup_panic sysctl 2020-03-10 13:55:55 -06:00
net.rst bpf, doc: Add BPF JIT for RV32G to BPF documentation 2020-03-05 16:13:47 +01:00
sunrpc.rst docs: admin-guide: move sysctl directory to it 2019-07-15 11:03:01 -03:00
user.rst time/namespace: Add max_time_namespaces ucount 2020-04-07 12:37:21 +02:00
vm.rst mm/compaction: Disable compact_unevictable_allowed on RT 2020-04-02 09:35:31 -07:00