git: mqueues: Partially sync with NetBSD.

Stathis Kamperis beket at
Fri Jan 15 12:27:47 PST 2010

commit c8b16402084f798630323f66751076ac7a064d4c
Author: Stathis Kamperis <beket at>
Date:   Fri Jan 15 22:14:26 2010 +0200

    mqueues: Partially sync with NetBSD.
    This fixes the following critical issues:
    * An invalid signal number passed to mq_notify() could crash the kernel
      upon the signal delivery.
    * mq_send() to a full queue could crash the kernel due to NULL pointer
      dereference in timeout calculation.
    * Likewise for mq_receive() from an empty queue.
    Thanks to swildner@ for bringing this into my attention.

Summary of changes:
 sys/kern/sys_mqueue.c |   26 +++++++++++++++++---------
 1 files changed, 17 insertions(+), 9 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list