Re: [PATCH net-next] tun: honor IFF_UP in tun_get_user()

2015-12-17 Thread David Miller
From: Eric Dumazet Date: Wed, 16 Dec 2015 08:57:37 -0800 > From: Eric Dumazet > > If a tun interface is turned down, we should not allow packet injection > into the kernel. > > Kernel does not send packets to the tun already. > > TUNATTACHFILTER can not be used as only tun_net_xmit() is takin

[PATCH net-next] tun: honor IFF_UP in tun_get_user()

2015-12-16 Thread Eric Dumazet
From: Eric Dumazet If a tun interface is turned down, we should not allow packet injection into the kernel. Kernel does not send packets to the tun already. TUNATTACHFILTER can not be used as only tun_net_xmit() is taking care of it. Reported-by: Curt Wohlgemuth Signed-off-by: Eric Dumazet -