git: mqueues: Add sysctl for max message count in a queue.
Stathis Kamperis
beket at crater.dragonflybsd.org
Sat Jan 23 05:27:12 PST 2010
commit 8658b626fa4839231ea8f05fc9349eb29777ab1d
Author: Stathis Kamperis <beket at dragonflybsd.org>
Date: Sat Jan 23 13:29:53 2010 +0200
mqueues: Add sysctl for max message count in a queue.
A user could set mq_maxmsg (the maximal number of messages in a queue)
to a huge value on mq_open(O_CREAT) and later use up all kernel memory
by abusing mq_send(), resulting in a denial of service attack.
Add a sysctl'able limit which defaults to 16*mq_def_maxmsg.
Taken from NetBSD.
Summary of changes:
sys/kern/sys_mqueue.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8658b626fa4839231ea8f05fc9349eb29777ab1d
--
DragonFly BSD source repository
More information about the Commits
mailing list