[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1424557146-29965-1-git-send-email-xypron.glpk@gmx.de>
Date: Sat, 21 Feb 2015 23:19:03 +0100
From: Heinrich Schuchardt <xypron.glpk@....de>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Joe Perches <joe@...ches.com>,
Peter Zijlstra <peterz@...radead.org>,
Oleg Nesterov <oleg@...hat.com>,
Ingo Molnar <mingo@...nel.org>,
Vladimir Davydov <vdavydov@...allels.com>,
Thomas Gleixner <tglx@...utronix.de>,
Kees Cook <keescook@...omium.org>,
David Rientjes <rientjes@...gle.com>,
Johannes Weiner <hannes@...xchg.org>,
"David S. Miller" <davem@...emloft.net>,
Andy Lutomirski <luto@...capital.net>,
Michael Marineau <mike@...ineau.org>,
Aaron Tomlin <atomlin@...hat.com>,
Prarit Bhargava <prarit@...hat.com>,
Steven Rostedt <rostedt@...dmis.org>,
Jens Axboe <axboe@...com>,
"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
Rik van Riel <riel@...hat.com>,
Davidlohr Bueso <dave@...olabs.net>,
Guenter Roeck <linux@...ck-us.net>,
linux-kernel@...r.kernel.org,
Heinrich Schuchardt <xypron.glpk@....de>
Subject: [PATCH 0/3 v3] kernel/fork.c max_thread handling
In fork_init a division by zero may occur. This is addressed in the
first patch.
Furthermore max_threads is checked against FUTEX_TID_MASK._
The calculation of max_threads is moved to a separate function.
The second patch addresses max_threads being set by writing to
/proc/sys/kernel/threads-max. The same limits are applied as
in fork_init.
The third patch uses a callback function to updated max_thread when
a memory hotplug event occurs.
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 (3):
kernel/fork.c: avoid division by zero
kernel/sysctl.c: threads-max observe limits
kernel/fork.c: memory hotplug updates max_threads
kernel/fork.c | 112 ++++++++++++++++++++++++++++++++++++++++++++++++--------
kernel/sysctl.c | 7 ++--
2 files changed, 100 insertions(+), 19 deletions(-)
--
2.1.4
--
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