DragonFly BSD
DragonFly commits List (threaded) for 2010-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: mqueues: Add sysctl for max message count in a queue.


From: Stathis Kamperis <beket@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 23 Jan 2010 05:24:49 -0800 (PST)

commit 8658b626fa4839231ea8f05fc9349eb29777ab1d
Author: Stathis Kamperis <beket@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]