Re: [PATCH net-next] net-tun: fix panics at dismantle time

2017-10-20 Thread David Miller
From: Eric Dumazet Date: Wed, 18 Oct 2017 12:12:09 -0700 > From: Eric Dumazet > > syzkaller got crashes at dismantle time [1] > > It is not correct to test (tun->flags & IFF_NAPI) in tun_napi_disable() > and tun_napi_del() : Each tun_file can have

[PATCH net-next] net-tun: fix panics at dismantle time

2017-10-18 Thread Eric Dumazet
From: Eric Dumazet syzkaller got crashes at dismantle time [1] It is not correct to test (tun->flags & IFF_NAPI) in tun_napi_disable() and tun_napi_del() : Each tun_file can have different mode, depending on how they were created. Similarly I have changed tun_get_user()