From nobody Sat Mar 15 15:40:10 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 4ZFQRH57S6z5qyvT for ; Sat, 15 Mar 2025 15:40:11 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZFQRH4Yfmz3gdQ for ; Sat, 15 Mar 2025 15:40:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1742053211; 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=lShSUQaRl6ZKcVqCrtxWOtlYl0i86DsPteMRDS1+10E=; b=j3FcuD8AhY+QNlc+K1woz1tjqOlefKpuUZaigG9PprPOSIIFnk/0z1g4FXOEI0KziYKkLQ ugmKyicVsv3yA98/WwnzpsH6WtJ9aZcX/E57DgCtwm8ECgh8AfJroLwDLl/znKpnUewRgF jsiCQ/A+3S1KPR+WO4ppq21/8G0eAc4KvIa/d2Lru6AMQt+0ObFlS37vwme/zeibDYEu/W b4cXdafzx0kz6dyIP5JADj/5yB3yZmMA33Ba44fN7PbgA+h6HwXplqXf7VoHybsH2Lh2PP E5FPc5iQos4XolXPEpjoT5IZiuUjEFdNVudB4AvTD2lLHeMA3UiXE60IS+oSGQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1742053211; a=rsa-sha256; cv=none; b=XqtrO9mOd76iUYE0Eos2nGOlLZRB38K1aCromCVnqVTaCrxJsyByirLFKiCwJLCJ/rVkw8 qhh0tPh2NXK/W/ShKR98ZWjw0Y5ETP1IJAr+Yne8MG2QSl61j2g4ViIAdZdo4Vf2FXEHlR lj8LpReknd0yyiBOSY9S2zsM+R2H7dmwWwi0MoYUE8zlzzDp5zP/yVlhS4/InbNXN6DMpp NuXgYv0W/rZqN7RHmvJp0Bm9mU4BVtQMRrsP0x25m/fBOn9aqooAoEcpaQnw/7dctAWK9Q xZhlFPi5gq6IfdGcWO6RmZ7cespQO+QCT5LLdCQadJls/3zRUyZEeikCzXqplw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1742053211; 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=lShSUQaRl6ZKcVqCrtxWOtlYl0i86DsPteMRDS1+10E=; b=sWjLAbiIxisMrD5HSsnF40DxSfyJ6ir40hntGHJoXozri9EFOgOAgxiY2EEcj9Ff2LASgQ JgUztP7Rh1Vd86+4rCdDQuEneIvBeJwZJsRxlqVTl/dM1MyJZhRx34zaJ5GMq/G6pQW55Z 7pc8u77znJRltLHyXuORiYZ1hQnOK03GGPWNy/fkUw/+ocAewTICIyTmMXfqUCpqkm3MdF kjWOIzqJaw1/LBEzHOhIz/fEa9Wg6e8UL/tN/68eexpyDdz1JCCpVEs8QEVoMZcfijMYxt yuSb6OJKSxlnn6z7wjKkbBK10T/Loo95EyVaEUNoBieq103P6cZbPbvcj5Wy8Q== 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 4ZFQRH3mYmz5f8 for ; Sat, 15 Mar 2025 15:40:11 +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 52FFeBlw066001 for ; Sat, 15 Mar 2025 15:40:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52FFeBI5066000 for net@FreeBSD.org; Sat, 15 Mar 2025 15:40:11 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 137145] [mbuf] Reference count computing isn't correct when more than one threads call function m_copypacket Date: Sat, 15 Mar 2025 15:40:10 +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: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kib@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D137145 Konstantin Belousov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kib@FreeBSD.org --- Comment #11 from Konstantin Belousov --- (In reply to Andriy Gapon from comment #10) But where does T2 get the pointer to mbuf? It cannot be T1, since T1 is executing this code. It cannot be T3, otherwise it is trivial bug of doing things in wrong order: refcount must be incremented before handing it to T2. --=20 You are receiving this mail because: You are the assignee for the bug.=