Hi,

I seem to have encountered an odd issue with wg(4), if I attempt the
sequence:

# ifconfig iwm0 down
# ifconfig wg0 down
# ifconfig wg0 destroy

The destroy never returns, and my system become unstable to the point
where I am unable to reboot/halt.

If I issue only:

# ifconfig iwm0 down
# ifconfig wg0 destroy

The destroy returns successfully.

If I leave iwm0 up, then:

# ifconfig wg0 down
# ifconfig wg0 destroy

The destroy also returns successfully.

I encountered the problem on 6.8-RELEASE, but verified it on the most
recent snapshot (03/11/2020).

A ktrace ended without a RET (I'm out of my depth at this point):

94592 ifconfig CALL  ioctl(3,SIOCIFDESTROY,0x9baa607890)

My hostname.if config:

/etc/hostname.iwm0
nwid <SSID> wpakey <key>
dhcp

/etc/hostname.wg0
wgkey <private key>
wgpeer <peer key> wgendpoint <ipaddr1> <port> wgaip 0.0.0.0/0
inet <ipaddr2>
!route add -priority 2 <ipaddr1> <ipaddr3>
!route add -priority 7 default <ipaddr2>
up

Whilst I'm here, thanks for in-kernel wg(4) and the usual
straightforward configuration, It's very useful!

Attachment: OpenPGP_0x4383C362B5F65EF4.asc
Description: application/pgp-keys

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to