From: Jakub Kicinski Date: Thu, 30 May 2024 00:21:37 +0000 (-0700) Subject: Merge branch 'tcp-fix-tcp_poll-races' X-Git-Tag: v6.11-rc1~163^2~295 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0f4b437b5fbf5141ff886bb47581123eb222c543;p=thirdparty%2Fkernel%2Flinux.git Merge branch 'tcp-fix-tcp_poll-races' Eric Dumazet says: ==================== tcp: fix tcp_poll() races Flakes in packetdrill tests stressing epoll_wait() were root caused to bad ordering in tcp_write_err() Precisely, we have to call sk_error_report() after tcp_done(). When fixing this issue, we discovered tcp_abort(), tcp_v4_err() and tcp_v6_err() had similar issues. Since tcp_reset() has the correct ordering, first patch takes part of it and creates tcp_done_with_error() helper. ==================== Link: https://lore.kernel.org/r/20240528125253.1966136-1-edumazet@google.com Signed-off-by: Jakub Kicinski --- 0f4b437b5fbf5141ff886bb47581123eb222c543