Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4647273rdb; Fri, 29 Dec 2023 08:33:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IFWnAXDWUVdg6zOTPVxX9yrGcBxUxdXymtPHL8PeecbWo70AkBWRjQkGRPGZltvk7PjP2B6 X-Received: by 2002:a05:6a21:32a3:b0:196:27db:c721 with SMTP id yt35-20020a056a2132a300b0019627dbc721mr2487199pzb.85.1703867633786; Fri, 29 Dec 2023 08:33:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703867633; cv=none; d=google.com; s=arc-20160816; b=x4W1ci5a1riFkhnXJ8nY6y//X52MC5D4HOxnB8pr6LuxstuXDgLuAOt3LIJNQQbf5a lAqdLY/va3T7UQSEZuuUpJaiLPhATzHmsoAhnvqPODZDxAKMSa5hw/4u8CyRDaNXolRX crwrI/dwyi5jbFn7yC89JAT9Ie5CCIKK+S+J3OW3o58NT34bttT4Vn8ueL+pKoVfRxI1 WOnyyNxj2EGe4AH7OEuSb8U0HuBtLMQCxFNIFPa3WvUp3cyyWmPXy53qzIwmsOnxr6+1 djz+b7167K7OqlmNgliqGCARwaEs5oetMg+X+Zfx6jBr/EECRXB65fUJ3pCH9IR++APt qRdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=mdHoqF4DBozjc5AZdCsy35qAGohL7+5V9GIyKGF0W98=; fh=R5JFpYhIfmZoYaQa6MVTrae/BddJu0Vxceq7BsDJzdA=; b=TejFj19kAGxlDnSVVGDHFF9oQGPc9hdMoSODxLflDXkgvKcVeF/8Y1Jvx+R6ItVPtP fZVH7TTGSd1ywC/K4V3sXk5CmXk5pWnLcEQaXDov22lVX+1qII37cvL8jzmWUllDENhh 25/gYfTwd+nl4P9K9ioEqVvAS+IEW8Ha/AtOTZ4+7qFHa9zgaFmn1L8M1oT1J75AJOXE JoGnuMYVhwEK0RE08yyz7yB8O2eq93uVd7zJ/qh40FFk90iCZLOYd4iIAohc/RuZrty9 Lz0zK5Iqm5TEaPlsYhqKNxllnW0L6JtZx0P5EtUuN+Odn+XCgVDHSOEPEJuW+noQDw9P PiJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@danm.net header.s=sig1 header.b=UeGlzbGQ; spf=pass (google.com: domain of linux-kernel+bounces-13160-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13160-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id qc9-20020a17090b288900b00286b47704dasi6741927pjb.1.2023.12.29.08.33.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 08:33:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13160-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@danm.net header.s=sig1 header.b=UeGlzbGQ; spf=pass (google.com: domain of linux-kernel+bounces-13160-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13160-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 6DFEC28477D for ; Fri, 29 Dec 2023 16:33:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F0E1512B6C; Fri, 29 Dec 2023 16:33:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=danm.net header.i=@danm.net header.b="UeGlzbGQ" X-Original-To: linux-kernel@vger.kernel.org Received: from mr85p00im-ztdg06021201.me.com (mr85p00im-ztdg06021201.me.com [17.58.23.189]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B563612B60 for ; Fri, 29 Dec 2023 16:33:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=danm.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=danm.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=danm.net; s=sig1; t=1703867622; bh=mdHoqF4DBozjc5AZdCsy35qAGohL7+5V9GIyKGF0W98=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=UeGlzbGQ9DI+Z0AI49toYh8BED1yiu6kUd6XzJPfiynDICAgvJY1c65EJ9GhETVxx VXftzlAS/g3gz038LMlo/7PQhIiURZ0P07kLKCSIX/iWuxtJqNNuLoDFKd5KUr3R3c wrPQy7V/8K+3G1OcoRWmPoDNLHcOn9rr3XKWcLdYH1JNJiL71d3o2K21h5AIc2ZgWk DYr7oLAs4m9Jkqzch6NkEEibCD7tag2xrdBTw4zRHTovorWYYlHoDCevD1UOdvFUD9 6Q7sadSRKZm6qJLswMQ2pXmci78/w/D/3Cs9yvYftj8qX9s7Pc2VnfWJpc6OugRlak afms62LOfOYSg== Received: from hitch.danm.net (mr38p00im-dlb-asmtp-mailmevip.me.com [17.57.152.18]) by mr85p00im-ztdg06021201.me.com (Postfix) with ESMTPSA id 146253201A3; Fri, 29 Dec 2023 16:33:40 +0000 (UTC) From: Dan Moulding To: alexhenrie24@gmail.com Cc: bagasdotme@gmail.com, dan@danm.net, davem@davemloft.net, dsahern@kernel.org, edumazet@google.com, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, regressions@lists.linux.dev Subject: Re: [REGRESSION] net/ipv6/addrconf: Temporary addresses with short lifetimes generating when they shouldn't, causing applications to fail Date: Fri, 29 Dec 2023 09:33:39 -0700 Message-ID: <20231229163339.2716-1-dan@danm.net> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: oFRRsbiheUkH9f2_QvM7LSR0PZXkau7h X-Proofpoint-ORIG-GUID: oFRRsbiheUkH9f2_QvM7LSR0PZXkau7h X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-29_06,2023-12-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1030 mlxlogscore=696 spamscore=0 phishscore=0 adultscore=0 mlxscore=0 bulkscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2312290132 I think a maintainer will probably need to make a call here and decide how to proceed. > TEMP_PREFERRED_LIFETIME is an administratively set variable: The user > can change it to whatever they want whenever they want, and the > operating system can adjust it automatically too. Agreed. And the behavior it seems you really want is to prevent the user from administratively setting it to a value that is lower than REGEN_ADVANCE, so that it won't stop generating new temporary addresses altogether. But preventing the user from configuring it to a value that is too low is different from generating new temporary addresses with preferred lifetimes that are greater than the currently configured value of TEMP_PREFERRED_LIFETIME. I still believe it would be better, and would be in conformance with the RFC, to simply not allow the user to configure a too-short TEMP_PREFERRED_LIFETIME instead of tinkering with the lifetimes of generated temporary addresses. > It's fine to revert the commit for version 6.7 (after all, I think > everyone wants a break for the holidays). Hopefully by version 6.8 we > can agree on a way to support users who want to randomize their IPv6 > address as frequently as the network allows. FWIW, I think the desired effect you are seeking makes sense and is the right thing to do. I'm just not convinced this is the correct way to do it. But I'm not a maintainer and also not an expert in IPv6, so I'm definitely not the right person to make that call. -- Dan