Re: twsk use-after-free

2018-12-20 Thread Eric Dumazet
On Thu, Dec 20, 2018 at 11:27 AM Alexei Starovoitov wrote: > > Hi Eric, > > we're seeing weird issue with timewait sockets. > Any suggestion how to debug this is greatly appreciated. > > First something iterating over sockets finds already freed tw socket: > Hi Alexei Thanks for the report. I h

twsk use-after-free

2018-12-20 Thread Alexei Starovoitov
Hi Eric, we're seeing weird issue with timewait sockets. Any suggestion how to debug this is greatly appreciated. First something iterating over sockets finds already freed tw socket: refcount_t: increment on 0; use-after-free. WARNING: CPU: 2 PID: 2738 at lib/refcount.c:153 refcount_inc+0x26/0x