Re: [PATCH net-next] tcp: tcp_data_ready() must look at SOCK_DONE

2021-02-15 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Sat, 13 Feb 2021 06:26:34 -0800 you wrote: > From: Eric Dumazet > > My prior cleanup missed that tcp_data_ready() has to look at SOCK_DONE. > Otherwise, an application using SO_RCVLOWAT will not get EPOLLIN event > if

[PATCH net-next] tcp: tcp_data_ready() must look at SOCK_DONE

2021-02-13 Thread Eric Dumazet
From: Eric Dumazet My prior cleanup missed that tcp_data_ready() has to look at SOCK_DONE. Otherwise, an application using SO_RCVLOWAT will not get EPOLLIN event if a FIN is received in the middle of expected payload. The reason SOCK_DONE is not examined in tcp_epollin_ready() is that tcp_poll()