On 14/04/15(Tue) 19:50, Edgar Pettijohn III wrote:
> On Apr 14, 2015, at 5:08 PM, Dimitris Papastamos wrote:
>
> > On Tue, Apr 14, 2015 at 07:48:55PM +0100, Pedro Caetano wrote:
> >> Hi,
> >>
> >> After establishing a openvpn tunnel, the system frezzes completely when
> >> traffic is pushed trough the tunnel.
> >> Impossible to change x console or interact with the system.
> >>
> >> Openvpn 2.3.6 installed from packages.
> >
> > I am experiencing a system freeze with openvpn as well.
It's a regression introduced by a recent commit, other people have been
reported similar problems on bugs@ they all seem to be related to
tun(4).
diff below should fix it.
Index: net/if_tun.c
===================================================================
RCS file: /cvs/src/sys/net/if_tun.c,v
retrieving revision 1.136
diff -u -p -r1.136 if_tun.c
--- net/if_tun.c 10 Apr 2015 13:58:20 -0000 1.136
+++ net/if_tun.c 15 Apr 2015 09:29:52 -0000
@@ -897,7 +897,7 @@ tunwrite(dev_t dev, struct uio *uio, int
return (EAFNOSUPPORT);
}
- if (niq_enqueue(ifq, m) != 0) {
+ if (niq_enqueue(ifq, top) != 0) {
ifp->if_collisions++;
return (ENOBUFS);
}