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

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Sun Jul 21 20:22:30 PDT 2013


commit da633f87cff183bc2c0c4c185762080febcf4623
Author: Sepherosa Ziehau <sephe at 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



More information about the Commits mailing list