Article View: linux.kernel.netdev
Article #19125Re: [BUG] ipvs: new connection on a reused port goes to the previous real server during conn_tab resize
From: "Zhenrong (Daniel) Gu"
Date: Thu, 19 Nov 2026 11:39
Date: Thu, 19 Nov 2026 11:39
25 lines
9168 bytes
9168 bytes
Hello Julian, On Wed, Nov 18, 2026 at 05:26:40PM +0200, Julian Anastasov wrote: > > We prefer not to unhash such connections because they will > go out of our control, eg. we may want to delete them immediately > on netns cleanup. May be we should add some check to make them > invisible to packets, such as adding new bit in the cp->flags, > not depending on the cp->timeout being 0 or not. I can prepare > some patch to fix this problem. Thanks, a flag that hides the entry from packet lookups makes sense to us, and it also keeps ip_vs_conn_put() from re-arming the old entry's timer. We would be glad to test the patch: we can run the reproducer (force, grow and noresize modes) on 7.3.3 and report back. > They end up in the same table but in reverse order. The > old table is freed after RCU grace period, so it should not matter > which table is checked first. Understood, thanks for the explanation. Best regards, Zhenrong (Daniel) Gu
Technical Details
Message-ID:
<av7f6F123V2WDd_u@fxxowodeMacBook-Pro.local>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366978-linux-kernel-netdev=dewy.ruReferences:
<avx0_13w3xGNdZP8@fxxowodeMacBook-Pro.local> <d876f5ef-982a-0ddb-5e75-3434453c2ccf@ssi.bg>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366978-linux-kernel-netdev=dewy.ru
From: zrgu@stu.xjtu.edu.cn ("Zhenrong (Daniel) Gu")
Newsgroups: linux.kernel.netdev
Subject: Re: [BUG] ipvs: new connection on a reused port goes to the previous
real server during conn_tab resize
Date: Thu, 19 Nov 2026 06:39:20 -0500
Organization: Usenet Network
Message-ID: <av7f6F123V2WDd_u@fxxowodeMacBook-Pro.local>
References: <avx0_13w3xGNdZP8@fxxowodeMacBook-Pro.local>
<d876f5ef-982a-0ddb-5e75-3434453c2ccf@ssi.bg>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
logging-data="2861801"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:8j/1WZN4oEzXSVX0dsAtMpSC02k= sha256:8NmdY8kBSchFW+YMJYgaROzrLfWv0kdTUDD3agjYRuE=
sha1:ukgt5y0sIELaSMMZVaiZI0LHm9Y= sha256:vPfH7z14gh7TFsKJEz7chxCXVaFTi+4NNVCpUGJN2oM=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 6F6121155F7; Thu, 19 Nov 2026 14:40:30 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.951
X-Spam-Status: No, score=-2.951 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id TRkSQbT6_qk3;
Thu, 19 Nov 2026 14:40:26 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-366978-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=stu.xjtu.edu.cn
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
by mail.dewy.ru (Postfix) with ESMTPS id B056F1155F1; Thu, 19 Nov 2026 14:40:19 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sin.lore.kernel.org (Postfix) with ESMTP id 254612488AE; Thu, 19 Nov 2026 11:39:39 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1795088378;
b=A6eETMjDMvhtwM87zVfI3i/xCs6C8xqO0invUIAEfVIwUeqfhToCMEgKCMOH3IAAxCZ2
vsUCjN+jYL3nCFTnL8/SOZJy/9FElKOkPT9QN993VUawqlGFDIyem67svhIhIvnb3te80
Optq436OSbcLmes3gQinIAj9pyAazpXjN0vHmq4Vd97RMWU0GdLQSNyPjsTrweNJ+nh47
yIYThKmZ/yd8NWBSNtoLDEdXxPZ7+tlqFbZGntmBvWckQasp8z6OQQ17zIF+E8wdchEhS
VFZkPjOMJRcBVA2UUXUp+ZhV2R3Q68TuFbPpXAVR2nrTuz7jvTjmEPMOzt51nQzrq0g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795088378;
h=X-Original-To:Received:DMARC-Filter:Received:Date:From:To:Cc:Subject:
Message-ID:References:X-Mailing-List:List-Id:List-Post:List-Help:
List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
Content-Type:Content-Disposition:In-Reply-To:X-CM-TRANSID:
X-Coremail-Antispam:X-CM-SenderInfo;
bh=oQTcKfcyCXeGD+xqwFFJmWR9/TyQjo19bKFT57u0lsk=;
b=rN8+Njp7MPHigytJ5K5nsiGi44ja5n4mXb3mo1brArR/XD2m43mTCRoBnAzvJMPdIClM
jnRgxz5VeKFhNWFKUiRbbTu45P57o6fl2oSdrva/bSpFUR5Ovh0zsbMOPFSJW3q29tEj8
MCCZjesJR+oyxUVwEdJigQ6FyscgwDMnSmWVQ6OMPxSmZy/9rxvil3aDDj6s/wAfcBzBT
w/lVob3rxrXFcbCA5CJUkmrjD1N0RUKXxzXCT/PVqDDQr6yBIBCQvrM9Lpr7qc43LtOwY
DT4O5YsKBLobn9nzHnfL4VjDtF5swCSkStHz8DenIHb2GggyLsYYyW4Nbu9+rk0492Q==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dmarc=pass header.from=stu.xjtu.edu.cn;
spf=pass smtp.mailfrom=stu.xjtu.edu.cn;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id E8C8C606A330;
Thu, 19 Nov 2026 11:39:37 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=46.101.248.176
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795088377;
b=bqh0TR4/acJ6SmgO1Uaq01az0yhMpK70gXG7qU8H9/bFkeiKv3mtO+0I5JFh4ZaTxtGu
N8T6VWsZuUIFMJ9d0i1WfAc2WsyKn89SR17Xy2rGm0s0/CNVl7CMZ9dr5wHBro/eE3pqn
jqlhjT1B+f5cRxIt1LT8LAKlUqo/6i1WBEmNkXlN1mpQBydjn4Mu58lTXoEesfq/RBF4Q
cDvJOVODPRDm3CodR8BZ2X+0eDWoXalgjggeXktwgZdU7JyKIsYD/sEzhCs7cy7o2bagP
VT2az3k7kC2+pVGPGd6jVGG4f5k8QL5AnA5Bkg72unOnhChpshYZxlUOwvmRxxGwxGg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795088377;
h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References:
MIME-Version:Content-Type:Content-Disposition:In-Reply-To:
X-CM-TRANSID:X-Coremail-Antispam:X-CM-SenderInfo;
bh=oQTcKfcyCXeGD+xqwFFJmWR9/TyQjo19bKFT57u0lsk=;
b=uLOplG1cvDTYvheLabbYEbUy2UCnTnORUiAQWPd3AGk2Ad+7Kv4sJUz0Wp1SHCj7z2WR
q/PLmPKIMaifSNZRLCJczHZvkbT3kq2kzWJrSvr53TdKOEcCEtim67p21M9uQNBc8kLeI
qeOJgODExUARJ3Ro8NqUCzUsWWLlcKptAlgN6tW6Vk7/rhf25j95PeSK7+ECtBD33HClA
bhR2rXXJBdfoFuHCZQw8fuOeq1rgY09DmMLrcUx+89K5UMIpcTYEJ5o9rxSkvJ3+iqZM/
T+4vI+AH1K+Fo9OoWtTyjfnHapcN1zaMiZRr4ajLzRtNrCOXCeoa7vZtmOmNSyZecHQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=stu.xjtu.edu.cn;
spf=pass smtp.mailfrom=stu.xjtu.edu.cn;
arc=none smtp.remote-ip=46.101.248.176
X-Received: from zg8tndyumtaxlji0oc4xnzya.icoremail.net (zg8tndyumtaxlji0oc4xnzya.icoremail.net [46.101.248.176])
by smtp.subspace.kernel.org (Postfix) with ESMTP id ACE4C606A325;
Thu, 19 Nov 2026 11:39:32 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org ACE4C606A325
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=stu.xjtu.edu.cn
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=stu.xjtu.edu.cn
X-Received: from fxxowodeMacBook-Pro.local (unknown [10.181.177.214])
by app2 (Coremail) with SMTP id NAGowABnF5Tt3_5qovtSAA--.9121S2;
Thu, 19 Nov 2026 19:39:26 +0800 (CST)
X-Cc: horms@verge.net.au, lvs-devel@vger.kernel.org, netdev@vger.kernel.org,
Xing Feng <xingfeng@stu.xjtu.edu.cn>,
Peng Zhang <p-zhang@xjtu.edu.cn>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <d876f5ef-982a-0ddb-5e75-3434453c2ccf@ssi.bg>
X-CM-TRANSID: NAGowABnF5Tt3_5qovtSAA--.9121S2
X-Coremail-Antispam: 1UD129KBjvdXoW7XrWxZF1Duw45XFW3AF17GFg_yoWfZFX_Ww
s0v3WDAFWUX3WxAanxKa45tay3WF4vqrnxArWIvr1xta4kJry7ua1q93sav3yxZayIq3Z8
C3Z8t3WUCwnIvjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT
9fnUUIcSsGvfJTRUUUbsAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AK
wVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20x
vE14v26r4j6ryUM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7xvwVC2z280
aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07
x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18
McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41lF7
I21c0EjII2zVCS5cI20VAGYxC7MxkF7I0En4kS14v26r126r1DMxkIecxEwVCm-wCF04k2
0xvY0x0EwIxGrwCF04k20xvE74AGY7Cv6cx26r4xJr1UJwCFx2IqxVCFs4IE7xkEbVWUJV
W8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF
1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6x
IIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvE
x4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnU
UI43ZEXa7VUbSfO7UUUUU==
X-CM-SenderInfo: 5hqgt5hwuh2iqrsqq2dwxo5ylwxovvfxof0/