From nobody Sun Dec 14 19:44:14 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 4dTttQ3tHSz6KkYP for ; Sun, 14 Dec 2025 19:44:14 +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 4dTttQ39ypz3HS6 for ; Sun, 14 Dec 2025 19:44:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1765741454; 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=KvK19DKvM6Y9LdwTUxYkWHkDv9qyviOEfsme9glffkw=; b=S829m3VqlBee1FcdcErKOZUBmejCYypM5UGsfTH3prgYsV8g5L637uE6N9v88AyHm45TuK MfXxPfHzkpwm2bOLJLYuHeNozJIbZPGkFSxTG7HZebgajvlM4vJnbEidHMgPnsHzc4+KYA KGrk30QlHxDFtnTLdwB7qPKs82fFvSzovklGJZ+QAW6ourdehkoHD2RmWhutcq6lxvHL9B JH1pvN1VKtUHPhItlQ3JH8NSW+PYPmLQtqeuhCVvlfAYCjAjdq6DO54tisT5nfETaIlJ5v LfeyilWpg0UGvcB2B3t5LBBTDpjzPhDRptdkFgrCoRGEHoE7QW2kf7t3J2YcOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1765741454; 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=KvK19DKvM6Y9LdwTUxYkWHkDv9qyviOEfsme9glffkw=; b=sDKNHGYdtulUEezwqq1Z9gCgUPeDK5pcv/9hD8GaOzdy2rU/q7z8llDMZyZkIxMuXoFszy mTErZ0HuuZJR3uO90N5azQjnEaG8E2NjLavCl5eQN0ElHo6JcDm51k0KoDD0LV0HfyIWlE rH/cCzv+rbLJ7L8ubv8y8a5NoLoFZph9d8V2T77F3yw4vGpz9DwEYm1pkUo5/srbKNskR3 kLuFlxe9fXrsN54pqEUOdYR9I71AVAQs+Yyq+DhVkIObxMoT2U4o5mvDF1XV1bnN9do/zB 2KtsadXBE6+50EMvh2NW0YDElrfMBUzsSlR/0X1Tcpi0vzU4i9iWz5Yl0VFCEQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1765741454; a=rsa-sha256; cv=none; b=Tpxu1b0rSi0qCLOpvjIoecvI2w+rvUzu+40CIR8GR1ANZB3LT1lho51u+hw+sEmzB+eT/M 61VXoFTlcrgWqpJV4QppGw9s2Q/0SBxOxgc9dHlxmrXRBsflv55CF+sliQdCSvl7yYrqOS 2N+M4pJDhTB8EOfFlJyI1uchnACE14LT4AzIlaiBxpM7N/s6J69jq/U3VCxT14oNNMuPuF 7dPN99ybWrCFWZOZT9Knrbl7TDe25hbABcVUNM9eJstvsHXS3HEFqZJzkrlXdEi2ju23hs e3CaK1ARWqubhu6Koo/7Xew90EAbwQrKjSSUvZmJ7DSyCG+gB57xXfZaCLKQFA== 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 4dTttQ2k6GznsC for ; Sun, 14 Dec 2025 19:44:14 +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 5BEJiEDS091487 for ; Sun, 14 Dec 2025 19:44:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5BEJiEYw091484 for net@FreeBSD.org; Sun, 14 Dec 2025 19:44:14 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: Sun, 14 Dec 2025 19:44:14 +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: hanguidong02@gmail.com 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 #8 from Gui-Dong Han --- Also, I want to highlight that compiler optimizations (such as inlining and tail call optimization) can make pinpointing the exact crash location in a stock kernel extremely difficult. I observed that crashes on the unmodified kernel often appear to stall at ether_output+0x6b0, masking the deeper call chain. The detailed stack trace provided above (showing ether_output_frame, lagg_transmit_ethernet, and lagg_lacp_start) was only obtained after I explicitly added __noinline and __attribute__((optnone)) to the relevant functions to disable these optimizations. --=20 You are receiving this mail because: You are the assignee for the bug.=