From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 080F33242BC for ; Tue, 17 Feb 2026 14:58:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771340312; cv=none; b=RlMhepMg8l6pDQKCTFbn/piHBcBrY5hIU8IAVX1DvbsovVk52nQOyKaIKT9dcXFYNHwGEQ98DMjIQQtd/gH4oZIJzExT5JdnealGzhnH8AnA+jQKtAlPLRhH/DPZ4Fj1yTDu0T/QiG9QOvt4XbVV26zbNCamN74oM2kjhnyhZXc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771340312; c=relaxed/simple; bh=6jI5NjPkqq5P37tgUsRhyQbzJNVtBhMzr4smvOEVHCE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Xphhnu4KkGE9O/3784ogdfsa8Y+sVq6AzTVqlLWOIqtjmzugXWtpjotzdYB5ZEXqkJhsBCcIbkb3KN2OkIWdyr9QRG0RExS00/2WdDWIU09X9xWO6cNR8NRz5uUSBmQWqMbefwnBdKvdR4Ma0zLx5H+apuwFLAHi/diOoeQcZoI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=P1s22E53; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="P1s22E53" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB3DBC4CEF7; Tue, 17 Feb 2026 14:58:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771340311; bh=6jI5NjPkqq5P37tgUsRhyQbzJNVtBhMzr4smvOEVHCE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=P1s22E53KR9kQKVFK/QE4HxeDWxJwaZQI0tj/n+o+f4m2HkZimXCHpzEfTAEwZ1er lV6U1vJ0G96us12n7/8b8cN9Tw1EFrHkPLn7Uiq0a42hH6zJW+TtJTqNjMw7cv8nQn Ew2NEDGHfMrp8poKwNTv21lRoAQ1SblhuIQ0I2/b6K+zRDVqDetxoNc6wZg+xp4+Bq 76xf6pbjwbOzbLAWx98HWGalI9MCS8nEYh6NfqhgLPyoBx/sCfDxAp067O9a9yhzgd iQPLYvue4IvZSpsLxjyu9Z026ksneOTTpnu8rwHYpyYwbqSmxI/XxuSa7Lnf/ag1cR MbS7OJ0A0AONg== Date: Tue, 17 Feb 2026 14:58:27 +0000 From: Simon Horman To: Eric Dumazet Cc: "David S . Miller" , Jakub Kicinski , Paolo Abeni , Kuniyuki Iwashima , David Ahern , netdev@vger.kernel.org, eric.dumazet@gmail.com Subject: Re: [PATCH net] ipv6: fix a race in ip6_sock_set_v6only() Message-ID: References: <20260216102202.3343588-1-edumazet@google.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260216102202.3343588-1-edumazet@google.com> On Mon, Feb 16, 2026 at 10:22:02AM +0000, Eric Dumazet wrote: > It is unlikely that this function will be ever called > with isk->inet_num being not zero. > > Perform the check on isk->inet_num inside the locked section > for complete safety. > > Fixes: 9b115749acb24 ("ipv6: add ip6_sock_set_v6only") > Signed-off-by: Eric Dumazet Reviewed-by: Simon Horman