[Bug 248172] if_tuntap(4): OpenVPN configuring tun/tap devices ends up with IFDISABLED interfaces

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Oct 31 23:37:49 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248172

Bjoern A. Zeeb <bz at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Open                        |In Progress
                 CC|                            |hrs at FreeBSD.org

--- Comment #22 from Bjoern A. Zeeb <bz at FreeBSD.org> ---
Gert, can you try this patch (totally untested, not even compile tested):

https://people.freebsd.org/~bz/tmp/20201031-02-ip6-ifdisabled.diff

This will enable ND6_IFF_IFDISABLED when the interface is created in the kernel
before return to user space (if I am right) and user space (driver from devd ->
/etc/pccard_ether => ... netif start IF => ifdisabled should no longer execute
the last bit and hence not race with your program.

I might have seen a similar issue with ppp/tun0 lately.


Also adding @hrs to Cc: as he know this logic a lot better than me and might
know of other pitfalls by doing this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-net mailing list