From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org
Cc: Youngmin Nam <youngmin.nam@samsung.com>, Sasha Levin <sashal@kernel.org>
Subject: Re: [PATCH v2 stable 5.15 1/2] tcp: fix races in tcp_abort()
Date: Mon, 17 Mar 2025 12:40:23 -0400 [thread overview]
Message-ID: <20250317091759-d3727de93804b1ee@stable.kernel.org> (raw)
In-Reply-To: <20250317050950.2351143-1-youngmin.nam@samsung.com>
[ Sasha's backport helper bot ]
Hi,
✅ All tests passed successfully. No issues detected.
No action required from the submitter.
The upstream commit SHA1 provided is correct: 5ce4645c23cf5f048eb8e9ce49e514bababdee85
WARNING: Author mismatch between patch and upstream commit:
Backport author: Youngmin Nam<youngmin.nam@samsung.com>
Commit author: Eric Dumazet<edumazet@google.com>
Status in newer kernel trees:
6.13.y | Present (exact SHA1)
6.12.y | Present (exact SHA1)
6.6.y | Present (different SHA1: aa5229129a55)
6.1.y | Present (different SHA1: a1146efaea31)
Note: The patch differs from the upstream commit:
---
1: 5ce4645c23cf5 ! 1: 2295e520401c3 tcp: fix races in tcp_abort()
@@ Commit message
tcp_abort() has the same issue than the one fixed in the prior patch
in tcp_write_err().
+ commit 5ce4645c23cf5f048eb8e9ce49e514bababdee85 upstream.
+
+ To apply commit bac76cf89816bff06c4ec2f3df97dc34e150a1c4,
+ this patch must be applied first.
+
In order to get consistent results from tcp_poll(), we must call
sk_error_report() after tcp_done().
@@ Commit message
Acked-by: Neal Cardwell <ncardwell@google.com>
Link: https://lore.kernel.org/r/20240528125253.1966136-4-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
+ Cc: <stable@vger.kernel.org>
+ [youngmin: Resolved minor conflict in net/ipv4/tcp.c]
+ Signed-off-by: Youngmin Nam <youngmin.nam@samsung.com>
## net/ipv4/tcp.c ##
@@ net/ipv4/tcp.c: int tcp_abort(struct sock *sk, int err)
@@ net/ipv4/tcp.c: int tcp_abort(struct sock *sk, int err)
- smp_wmb();
- sk_error_report(sk);
if (tcp_need_reset(sk->sk_state))
- tcp_send_active_reset(sk, GFP_ATOMIC,
- SK_RST_REASON_NOT_SPECIFIED);
+ tcp_send_active_reset(sk, GFP_ATOMIC);
- tcp_done(sk);
+ tcp_done_with_error(sk, err);
}
---
Results of testing on various branches:
| Branch | Patch Apply | Build Test |
|---------------------------|-------------|------------|
| stable/linux-5.15.y | Success | Success |
prev parent reply other threads:[~2025-03-17 16:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20250317050548epcas2p158c1bfcef5059e51afeab70680da5e5d@epcas2p1.samsung.com>
2025-03-17 5:09 ` [PATCH v2 stable 5.15 1/2] tcp: fix races in tcp_abort() Youngmin Nam
2025-03-17 5:09 ` [PATCH v2 stable 5.15 2/2] tcp: fix forever orphan socket caused by tcp_abort Youngmin Nam
2025-03-17 16:40 ` Sasha Levin
2025-03-17 16:40 ` Sasha Levin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250317091759-d3727de93804b1ee@stable.kernel.org \
--to=sashal@kernel.org \
--cc=stable@vger.kernel.org \
--cc=youngmin.nam@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.