Re: panic with tcp timers

From: Hans Petter Selasky <hps_at_selasky.org>
Date: Fri, 17 Jun 2016 13:10:57 +0200
On 06/17/16 06:53, Gleb Smirnoff wrote:
>   Hi!
>
>   At Netflix we are observing a race in TCP timers with head.
> The problem is a regression, that doesn't happen on stable/10.
> The panic usually happens after several hours at 55 Gbit/s of
> traffic.
>
> What happens is that tcp_timer_keep finds t_tcpcb being
> NULL. Some coredumps have tcpcb already initialized,
> with non-NULL t_tcpcb and in TCPS_ESTABLISHED state. Which
> means that other CPU was working on the tcpcb while
> the faulted one was working on the panic. So, this all looks
> like a use after free, which conflicts with new allocation.
>
> Comparing stable/10 and head, I see two changes that could
> affect that:
>
> - callout_async_drain
> - switch to READ lock for inp info in tcp timers
>
> That's why you are in To, Julien and Hans :)
>
> We continue investigating, and I will keep you updated.
> However, any help is welcome. I can share cores.
>

Hi,

I do have projects/hps_head around, which is not that much behind 
11-current, which has a completely different callout implementation. If 
you can reproduce the issue separately might we worth a try to rule out 
the callout stack.

--HPS
Received on Fri Jun 17 2016 - 09:07:31 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:06 UTC