🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #9497

Re: [PATCH net v3] ipv6: reject wrapped temporary address preferred lifetimes

#9497
From: Xia Yan
Date: Mon, 02 Nov 2026 07:51
30 lines
10119 bytes
On 11/1/26 22:08, Alex Henrie wrote:
> Is there another combination of parameters that might cause a problem?

Hi Alex,

Thanks for explaining the reasoning behind the clamp. I was wrong
about creation eventually being refused as the public address gets
older. I had missed the "+ age" in cfg.valid_lft.

With an infinite-lifetime parent, cfg.valid_lft grows with age too.
For the values you tested, I don't see an age-dependent cutoff in
that lifetime check. Normal successful regenerations don't reach the
retry limit either: addrconf_verify_rtnl() resets the parent's
regen_count before each regeneration. Repeated ipv6_add_addr() or DAD
failures can still exhaust the retries.

I don't have a reproducer for another refusal case.

The remaining worry for me is retention. With a short preferred
lifetime and temp_valid_lft at its two-day default, deprecated
temporary addresses stay on the interface until their valid lifetime
expires, and this path does not check max_addresses. Your 90-second
configuration ages them out fast; with the default I would expect
many more addresses held at once, but I have not tested that or
measured the cost. The creation rate also depends on DAD timing, so
my earlier one-address-per-second estimate was too definite.

Thanks,
Xia
Technical Details
Message-ID: <1793605892000.83333.5506952827930878398@cmss.chinamobile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-354496-linux-kernel-netdev=dewy.ru
References: <tencent_7A270291DDE5CD89DAFFE8A745D094D5BD06@qq.com> <179344707641.114606.12665582704521593779@cmss.chinamobile.com> <CAMMLpeQKJO52qhba=G-ZudUA57iAdX4SOapOv7YuprBZ3FzM-w@mail.gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-354496-linux-kernel-netdev=dewy.ru
From: yanxia@cmss.chinamobile.com (Xia Yan)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v3] ipv6: reject wrapped temporary address preferred lifetimes
Date: Mon, 02 Nov 2026 15:51:32 +0800
Organization: Usenet Network
Message-ID: <1793605892000.83333.5506952827930878398@cmss.chinamobile.com>
References: <tencent_7A270291DDE5CD89DAFFE8A745D094D5BD06@qq.com>
 <179344707641.114606.12665582704521593779@cmss.chinamobile.com>
 <CAMMLpeQKJO52qhba=G-ZudUA57iAdX4SOapOv7YuprBZ3FzM-w@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="2874905"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:BzO4Edz2Sgpp4JN4wDLBVIY4kpA= sha256:wAyPdLzfEkY7WNb5klVEa8rq6ApsO2GX2on/ZZdU0/c=
	sha1:qCulMJYXp3dXvjwKHO8e6OUnkSY= sha256:HPEAS6t9yuPtx6VvSFo3n2Q0F6Ygwp7Vt/lfeOFFgDw=
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 46BA411401C; Mon,  2 Nov 2026 10:53:38 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.749
X-Spam-Status: No, score=-2.749 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_INVALID=0.1, DKIM_SIGNED=0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=fail (1024-bit key)
	reason="fail (body has been altered)" header.d=cmss.chinamobile.com
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 v8oHIXmg0GCF;
	Mon,  2 Nov 2026 10:53:34 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-354496-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=cmss.chinamobile.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id F2ED4C72C6; Mon,  2 Nov 2026 10:53:25 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 8311D30726; Mon,  2 Nov 2026 07:52:01 +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=1793605921;
	b=SShtL4vKj3iGTGlu7UpxKp4FR4+a5SLrOKEMqnbo+9tawucYHz3Oa5UW0YFxw8vbQlqc
	 hiz7IyEQsyhyUoQFZU6MhavqzJ2r70u5J1TG39z3KNhs5RfdziPwvFRr2LTZg9w41r4s5
	 DCFbDZZZ+cme8hJofdkKqyFcZ0qYAY7jUhqgYCopS+594oLMNAbn7UwxgWpt7U0fv0+Yi
	 Hf9xqdIlzPluaCnERb9q0TPaL/KhNPew7dLe+zF5KEB1eHjinxW8jiXl2pC8U+eIpuQqM
	 CEDhB/PjJtntmrfF4fqQaB8lpU7CBipC7kb2fRePd69ZG6Efdig8Z0CTOLPpTWsvcpA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793605921;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:X-RM-TagInfo:
	 X-RM-SPAM-FLAG:Received:X-RM-TRANSID:X-RM-TagInfo:X-RM-SPAM-FLAG:
	 Received:X-RM-TRANSID:From:To:Cc:Subject:Date:Message-ID:In-Reply-To:
	 References:Content-Type:Content-Transfer-Encoding:X-Mailing-List:
	 List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
	 List-Owner:Precedence:MIME-Version;
	bh=39768UITE41AYlJNmfpyyvPGwvwyzs1lv13/2Sl4ptk=;
	b=xv8wsWZQOyZP/YDSJRlPw4RDHmAKz4Djp7ysg+hN7y0EwUU7CkjFzOdI3rs3cV81+K2n
	 iV+VAr5jmrQ3zruNapIMkq/BGmR2c3NQnurzhr+PBukoDD1onkSM80MEaahgpPuJxZg4C
	 /V22Kwt0XpN4uvhnbRkuEqsEgOrzT461gJzmIvMu1FtNwlEhykgSoUus6+m/jThvfmGIK
	 YaAI0WuHUvP2qZQDvC9XopzURkq3weUlHzILL0W3rxpoJDnohj0dz2uN5sKeuiVU4G/nR
	 OpnpYLV3lSHhV5nbf6zwKKu+2Q0jIfqhr0Fjorck1zDNf6N+41Uu0CLt2lYo0Gu2eAQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=tjBs1NjS;
	dmarc=pass header.from=cmss.chinamobile.com;
	spf=pass smtp.mailfrom=cmss.chinamobile.com;
	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 5A4E4606A335;
	Mon,  2 Nov 2026 07:52:01 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=tjBs1NjS
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=111.22.67.135
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793605905;
	b=xr10mP+iLvQw4k1ModR9u+GI0/HaaWAHFGj5ZxjXfOxXkTdT4TvRjJc/1Ontd6wSTEb5
	 mN5wSpojNrMyNMkblzWCTIpWv8JVVTTkBdG36HHpc052/4G6trS2/rPpNpfx2sglSkT8P
	 xzbo1y824VUtpQHpx6oFibIoQANRss+AR1iwPovevS/D/FqbblHTBgeHlnzJgIw0erBL2
	 Rfp2ntgBAeVXTJgA+Gi0+3oB5Y31HEhSsO7ORTTtDqW62caGmEZ7iwqHn5nJUY06uCxBy
	 6Qi1vKss23k2kWlRZ1gOd/YhYJSdlmenQmbN7m/1Wwc6wndZgRqZMW+9X+RWQkeAf4w==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793605905;
	h=DMARC-Filter:DKIM-Signature:X-RM-TagInfo:X-RM-SPAM-FLAG:Received:
	 X-RM-TRANSID:X-RM-TagInfo:X-RM-SPAM-FLAG:Received:X-RM-TRANSID:From:
	 To:Cc:Subject:Date:Message-ID:In-Reply-To:References:Content-Type:
	 Content-Transfer-Encoding:MIME-Version;
	bh=39768UITE41AYlJNmfpyyvPGwvwyzs1lv13/2Sl4ptk=;
	b=sf6emkstZjCNoD4YJfV+rOYIgCb6u1/s5woBr45t0mWRCn6izhpMwNseNUKrdq0mQMtC
	 32o7MZm1qoVa5qVsFbCc7indmPcFY9BfU2QvQUpy77NvzPcnehvaNpzw7Y8UkPthUGed4
	 I2bWKbFPWgI90vhKjQJUq2zeyUj0WvZz41xq4Q95F3mwY5qMt0lTfDDe9UZk1wpu67/C0
	 tAXlxAFBgpxylJxn8bos8/pnrl4UmLRpxzebW1KUEYHqwxGB9KD9acxuuTra1MGkC94NB
	 I5niy5PinkLFRG6WCkUBOTRpoM1ZI1iFThK8hvKcKUTBA01wXDnKkE/E3fp4dv34EFQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=cmss.chinamobile.com;
	spf=pass smtp.mailfrom=cmss.chinamobile.com;
	dkim=pass header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=tjBs1NjS;
	arc=none smtp.remote-ip=111.22.67.135
X-Received: from cmccmta2.chinamobile.com (cmccmta2.chinamobile.com [111.22.67.135])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id C6361606A334;
	Mon,  2 Nov 2026 07:51:41 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C6361606A334
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cmss.chinamobile.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmss.chinamobile.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=cmss.chinamobile.com; s=default; l=0;
	h=from:subject:message-id:to:cc:mime-version;
	bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=;
	b=tjBs1NjS38BAtrfje1DJWPRw4+z6Wwo3u9u32sz6VNZr+6QUU6DoakAcT6qeF0aIXXuGTg9A6Nry6
	 BB7OJ4kdyplzK0fymNBda57WSJ41OjDh/R5icyCFsNNA+PUaITdzoEIW7X2qM66eVhPbFpRGww4Vnt
	 Wd5/z+WBUbubn4zQ=
X-RM-TagInfo: emlType=0                                       
X-RM-SPAM-FLAG: 00000000
X-Received: from spf.mail.chinamobile.com (unknown[10.188.0.87])
	by rmmx-syy-dmz-app07-12007 (RichMail) with SMTP id 2ee76ae84105156-8847b;
	Mon, 02 Nov 2026 15:51:33 +0800 (CST)
X-RM-TRANSID: 2ee76ae84105156-8847b
X-RM-TagInfo: emlType=0                                       
X-RM-SPAM-FLAG: 00000000
X-Received: from [198.18.0.93] (unknown[223.108.79.97])
	by rmsmtp-syy-appsvr08-12008 (RichMail) with SMTP id 2ee86ae84103747-c9362;
	Mon, 02 Nov 2026 15:51:33 +0800 (CST)
X-RM-TRANSID: 2ee86ae84103747-c9362
X-Cc: Yingjie Wang <1075151112@qq.com>, netdev@vger.kernel.org,
 dsahern@kernel.org, idosch@nvidia.com, davem@davemloft.net,
 edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org,
 linux-kernel@vger.kernel.org, yana06070@163.com
X-In-Reply-To:  <CAMMLpeQKJO52qhba=G-ZudUA57iAdX4SOapOv7YuprBZ3FzM-w@mail.gmail.com>
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