Re: [PATCH net] net: silence KCSAN warnings about sk->sk_backlog.len reads

2019-10-09 Thread Jakub Kicinski
On Wed, 9 Oct 2019 15:41:03 -0700, Eric Dumazet wrote: > sk->sk_backlog.len can be written by BH handlers, and read > from process contexts in a lockless way. > > Note the write side should also use WRITE_ONCE() or a variant. > We need some agreement about the best way to do this. > > syzbot rep

[PATCH net] net: silence KCSAN warnings about sk->sk_backlog.len reads

2019-10-09 Thread Eric Dumazet
sk->sk_backlog.len can be written by BH handlers, and read from process contexts in a lockless way. Note the write side should also use WRITE_ONCE() or a variant. We need some agreement about the best way to do this. syzbot reported : BUG: KCSAN: data-race in tcp_add_backlog / tcp_grow_window.is