git: uipc: Hold unp_token before calling unp_find_lockref()

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Mon Nov 2 19:45:28 PST 2015


commit 2f8c108bd4b7e18519ea0b1ecd0d889776121703
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Tue Nov 3 11:32:22 2015 +0800

    uipc: Hold unp_token before calling unp_find_lockref()
    
    Mainly to avoid name resolution and v_socket accessing races.
    Add comment about it.

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

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2f8c108bd4b7e18519ea0b1ecd0d889776121703


-- 
DragonFly BSD source repository



More information about the Commits mailing list