NetBSD-Bugs archive

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

bin/59330: startup race because racoon's control socket created after daemon)



>Number:         59330
>Category:       bin
>Synopsis:       startup race because racoon's control socket created after daemon)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 19 15:20:00 +0000 2025
>Originator:     cagney
>Release:        
>Organization:
>Environment:
NetBSD netbsd 10.1 NetBSD 10.1 (GENERIC) #0: Mon Dec 16 13:08:11 UTC 2024  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64

>Description:
racoon calls daemon() and then creates its control socket.
This leads to the text-book race where the racoon process has detached before it is ready.  Leading to:

# racoon -l /tmp/racoon.log
# # create a partial state on east, don't hold the hack for retransmit
# racoonctl establish-sa -w isakmp inet ${left} ${right}
send: Bad file descriptor


>How-To-Repeat:

>Fix:
suggest tweaking documentation



Home | Main Index | Thread Index | Old Index