[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20171020.133158.705220443401891435.davem@davemloft.net>
Date: Fri, 20 Oct 2017 13:31:58 +0100 (WEST)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org, peterpenkov96@...il.com, maheshb@...gle.com
Subject: Re: [PATCH net-next] net-tun: fix panics at dismantle time
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Wed, 18 Oct 2017 12:12:09 -0700
> From: Eric Dumazet <edumazet@...gle.com>
>
> 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() and tun_poll_controller()
> to use the new tfile->napi_enabled boolean.
...
> Fixes: 943170998b20 ("net-tun: enable NAPI for TUN/TAP driver")
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
Applied, thanks Eric.
Powered by blists - more mailing lists