From nobody Wed Aug 27 16:37:57 2025 X-Original-To: net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cBqvp0Cmxz65HRh for ; Wed, 27 Aug 2025 16:37:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cBqvn6gFlz3bqd for ; Wed, 27 Aug 2025 16:37:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1756312677; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fIeuWFTUIq4RqEUT6N+8Fh+VlT8qpebl1AYmnL56v+8=; b=l71oGRrFUcovzVRLfzPg9x5KqyPCB8zv8flIKKmrQds/FgMeLAm4jyLYLrhQI7dxpYEJHc diGIltw1ZEfBHjPLBhpzfumR2eZm413klIsFTzr7DTE+FaJZuOSTcI0GZ+deeIzhm6mkXN 6wmxc5DjIYsiQrTxTzYUuPPgYyiZcE6z8Ekf3k/GckeJEMT2Ku9qNf0OXD8akogL+JNsaT GS0g7q3BWJZrmB6tf0sqf0tXVLkj5ZdzY7EK6GRzMNt82GB8tH5viET7MqrXa5+hdq0RPQ EeUPT2ueoVsOvIMQ+Cdb4pScJ/n7BzRc3/zD0jknBE22OiulTsIkfAL5ZKmQzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1756312677; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fIeuWFTUIq4RqEUT6N+8Fh+VlT8qpebl1AYmnL56v+8=; b=jbUzYkKW8CFrfbIyRsmk2+R0n3O4uX5XzKh4VJ67RcZvC2D/hYIzwmuQWCaeBvK9pt8qh9 Eb4Q97aEQSdP9bX9prMjTaQSebqdm3NLzbBagDC5v+aHsbsVlmOcfVBXxOH11MuuNir/7g aiYpfSYibcnzbKhsjWsob01ZxDpKxQ6cy6lOf11XSogzQiEv7S26vpLEEhYV2w1EYSgEuO zkZ1K7gociqjD0lquuNMKbzXwiMYs4mROXM/1VP6rUv5l4mMgXYssz/W8rcmwN9uZikVeJ D+MeexF7sYG1mEbMSufDTUPoLTC9vsyu73tTn7Hb/JqS2sDXeDHDj2cz1xthLw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1756312677; a=rsa-sha256; cv=none; b=caMAMeK394+ik8+Dr6EGI1735cgX0OoWHe9IOkJ0VR9QHTsthN23+QQZtqGK18PJLjzwwW 4m9BEHugqvqfwkNEiK0kB8q/EirviRmv0fzQRzuoigXFwhI7Xy90wWuyMXPoJYPrOKZfR9 +0onv5HNGAwkn2Gaw9tHTff2jEZy1+oqBiRoVuMSn3b6x0mifbyIBkeexMtIEsLtcoTIHw Ck2918Vi9ZEY9d2NqPn1IdDvvRFg1IRWKujnuk/xxoE92U2ROPnKrIGhlkq5yybatcYXtL kMHDW+JRuYoLltc3litw7dIfsE5I8VexqacWGBV1kQQr9ud16HDPEYRui1B35A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cBqvn5fFjzVDc for ; Wed, 27 Aug 2025 16:37:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 57RGbvqJ043302 for ; Wed, 27 Aug 2025 16:37:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 57RGbvA4043301 for net@FreeBSD.org; Wed, 27 Aug 2025 16:37:57 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 289017] [lagg] A time-of-check to time-of-use (TOCTOU) race exists in the Link Aggregation (LAGG) network subsystem Date: Wed, 27 Aug 2025 16:37:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: zlei@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D289017 --- Comment #1 from Zhenlei Huang --- (In reply to Qiu-ji Chen from comment #0) Thanks for the reporting ! I think that is a nice finding. As for the fix, FreeBSD's net stack is moving towards to lockless fast path= , so probably the right fix should be flagging the interface down and waiting un= til the fast paths finish their work and then changing the proto. Do you have any test cases so that it will make it easier to repeat the iss= ue and verify the fix ? --=20 You are receiving this mail because: You are the assignee for the bug.=