I do a lot of tests and sometime it seems wireguard is in a "strange" state, I'm trying to reproduce.
A question :
When I've the dmesg, "could not create ipv4 socket", i cannot rmmod wireguard from kernel.
I'm trying
ip link del dev wg0 ,
rmmod wireguard
there's no wireguard interface, however, i cannot remove wireguard module, system tells module is used.
When wireguard works well, i can remove module without problem.
Regards,
Nicolas