From: no-reply@sashiko.virtuozzo.com
To: Eva Kurchatova <eva.kurchatova@virtuozzo.com>,
khorenko@virtuozzo.com, vladimir.riabchun@virtuozzo.com
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2 1/4] ms/net: restore refcount ordering for lockless socket access
Date: Mon, 23 Nov 2026 00:28:34 +0000 [thread overview]
Message-ID: <010701a205cdfaf5-89e1a50d-3214-45b2-9278-47fb84565d8e-000000@eu-central-1.amazonses.com> (raw)
In-Reply-To: <20261123002500.1652289-2-eva.kurchatova@virtuozzo.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] net: reqsk_timer_handler() reorder of timer_setup() not in
changelog
--
commit 67c2c106507ceb435fa30a63e1e498fd83a8f047
Author: Hyunwoo Kim <imv4bel@gmail.com>
ms/net: restore refcount ordering for lockless socket access
This commit switches the IPv4/IPv6 established lookups, inet_twsk_purge() and bpf_sk_assign() to refcount_inc_not_zero_acquire(). It switches the SYN cookie, TCP Fast Open, request migration and TIME_WAIT paths to refcount_set_release().
Link: https://patch.msgid.link/20261029214219.1035176-3-imv4bel@gmail.com
> diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c
> index 9736f35e4e978..254646530dc8a 100644
> --- a/net/ipv4/inet_connection_sock.c
> +++ b/net/ipv4/inet_connection_sock.c
> @@ -1070,8 +1070,8 @@ static void reqsk_timer_handler(struct timer_list *t)
> * hold another count to prevent use-after-free and
> * call reqsk_put() just before return.
> */
> - refcount_set(&nreq->rsk_refcnt, 2 + 1);
> timer_setup(&nreq->rsk_timer, reqsk_timer_handler, TIMER_PINNED);
> + refcount_set_release(&nreq->rsk_refcnt, 2 + 1);
> reqsk_queue_migrated(&inet_csk(nsk)->icsk_accept_queue, req);
[Severity: Low]
Is the commit message complete here? This hunk swaps timer_setup() and the refcount store, but the changelog only says refcount_set_release() is used in the request migration path.
Presumably the reorder makes the timer initialisation visible before the release store that publishes the refcount. A sentence saying so would help reviewers.
Carry the trailer below into the next revision and Sashiko will not review this patch again.
Reviewed-by: Sashiko <no-reply@sashiko.virtuozzo.com>
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261123002500.1652289-1-eva.kurchatova@virtuozzo.com?part=1
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
next prev parent reply other threads:[~2026-11-23 0:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 0:20 [Devel] [PATCH hci-8.2 0/4] ms/net: backport request migration RCU fixes and lockless refcount ordering Eva Kurchatova
2026-11-23 0:20 ` [Devel] [PATCH hci-8.2 1/4] ms/net: restore refcount ordering for lockless socket access Eva Kurchatova
2026-11-23 0:28 ` no-reply [this message]
2026-11-23 0:20 ` [Devel] [PATCH hci-8.2 2/4] ms/tcp: ipv6: do not read ireq->pktopts from tcp_v6_send_synack() Eva Kurchatova
2026-11-23 0:28 ` no-reply
2026-11-23 0:20 ` [Devel] [PATCH hci-8.2 3/4] ms/tcp: ipv6: free ireq->ipv6_opt after an RCU grace period Eva Kurchatova
2026-11-23 0:30 ` no-reply
2026-11-23 0:20 ` [Devel] [PATCH hci-8.2 4/4] ms/tcp: free saved_syn " Eva Kurchatova
2026-11-23 0:30 ` no-reply
2026-11-23 8:44 ` [Devel] [PATCH hci-8.2 0/4] ms/net: backport request migration RCU fixes and lockless refcount ordering Konstantin Khorenko
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=010701a205cdfaf5-89e1a50d-3214-45b2-9278-47fb84565d8e-000000@eu-central-1.amazonses.com \
--to=no-reply@sashiko.virtuozzo.com \
--cc=devel@openvz.org \
--cc=eva.kurchatova@virtuozzo.com \
--cc=khorenko@virtuozzo.com \
--cc=vladimir.riabchun@virtuozzo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox