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

git: socket: Avoid possible race between netmsg_so_notify() and sowakeup() (2)


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 21 Jul 2013 20:22:30 -0700 (PDT)

commit da633f87cff183bc2c0c4c185762080febcf4623
Author: Sepherosa Ziehau <sephe@dragonflybsd.org>
Date:   Mon Jul 22 11:05:12 2013 +0800

    socket: Avoid possible race between netmsg_so_notify() and sowakeup() (2)
    
    If predict ever blocks, 'tok' will be released, so SSB_MEVENT set
    beforehand could have been cleared when we reach here.  In case
    that happens, we set SSB_MEVENT again, after the notify has been
    queued.

Summary of changes:
 sys/kern/uipc_msg.c | 8 ++++++++
 1 file changed, 8 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/da633f87cff183bc2c0c4c185762080febcf4623


-- 
DragonFly BSD source repository



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