lkml.org 
[lkml]   [2015]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/4 v4] max_threadx handling
Date
In fork_init a division by zero may occur.

In the first patch the calculation of max_threads is moved from fork_init
to a new separate function.

The incorrect calculation of max threads is addressed in the
second patch.

Furthermore max_threads is checked against FUTEX_TID_MASK.

The third patch addresses max_threads being set by writing to
/proc/sys/kernel/threads-max. The same limits are applied as
in fork_init.

The fourth patch uses a callback function to update max_threads when
a memory hotplug event occurs.

New in version 4:
Separate of refactoring and correction into separate patches
(as requested by Ingo Molnar)
Remove redundant argument of fork_init

New in version 3:
Determination of max_threads moved to separate function.
Handling of /proc/sys/kernel/threads-max
Handling of memory hotplugging.

Heinrich Schuchardt (4):
kernel/fork.c: new function for max_threads
kernel/fork.c: avoid division by zero
kernel/sysctl.c: threads-max observe limits
kernel/fork.c: memory hotplug updates max_threads

include/linux/sysctl.h | 3 ++
init/main.c | 4 +-
kernel/fork.c | 112 +++++++++++++++++++++++++++++++++++++++++--------
kernel/sysctl.c | 6 +--
4 files changed, 102 insertions(+), 23 deletions(-)

--
2.1.4



\
 
 \ /
  Last update: 2015-02-23 21:21    [W:0.182 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site