From nobody Tue Dec 19 17:15:04 2023 X-Original-To: bugs@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 4SvjxP0CSgz54b2v for ; Tue, 19 Dec 2023 17:15:04 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SvjxN2mZYz3Ldf for ; Tue, 19 Dec 2023 17:15:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703006104; a=rsa-sha256; cv=none; b=bY9dWbaKqCoMmUOFWcJHkIPUHJwaAZCuLn75tKv4fFcjlfo05wjwsewxyIQhEYbmGU/RPQ rRtCAAHbKsiaa+r9hLc1oSVy5WGMjUxe/ZXkB3CEX48NLCVU06DDbuWmW8uPpxMn5ds+ba mC3p3CUAnkpxjbpq3QsrTjVH70ayO5kW1JmqhdqjecnsKnGM4X3e/aR0z9taFOUhFyn+9A Hx1BUnV/KAXMwfGOIX/1Gxrm8+hrdPL2eDn+2tVcovaw4C+UVidQdVEP2Cx1Y1SylTl06U 0gGqo5Y5o1FSzYXGLCJhuRwdD9qWHUR+CaM6kXFnJCu0fy+sHkuIJtrho4J2Pg== 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=1703006104; 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=abDm2t2zJ9F7xr1/1yPK2643/R2uimsYDY/l4l/rxF0=; b=fMj670gRyA/wGo63XBw1maslFJTcIzj/Pzw4DqXQv3H6ZXoo3GEtchQ2niJ8whJSVH5xv3 exbphcupi+fCzwSrl1zyaZF2VGmfEjIRFmUOQu1WOsIQoRFpkG7qoxPHrGuRJ4rSTpKCQx stQctAaXYrR4GLN/7ZazCTAmJgYP90gVUssjHgH3k5Zak9ALmU80WJyeWHeeLDmxxQ3ReV fvdfNn0dkHuqhq1f7mVstpbm5p2XN6V+vmGsGC2mlZKIv7Q5G9qN+XkuDHPPQYiZaILstd vM6N6seEuMroAY8KEnHG7JqlR5v7vjVC6Y8ov+NYrtQ5Id304hrtiu7a/EwyNA== 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 4SvjxN1Q9rz1Byt for ; Tue, 19 Dec 2023 17:15:04 +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 3BJHF413080485 for ; Tue, 19 Dec 2023 17:15:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3BJHF47G080484 for bugs@FreeBSD.org; Tue, 19 Dec 2023 17:15:04 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: bugs@FreeBSD.org Subject: [Bug 273890] accessing freed inpcb in udp6_bind Date: Tue, 19 Dec 2023 17:15:04 +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.0-RELEASE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: glebius@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273890 --- Comment #15 from Gleb Smirnoff --- I see the problem. The inpcb destruction order has a flaw. We first clear inp_socket, then set INP_FREED flag, then call in_pcbremhash(). This isn't compatible with inpcb_lookup_local() which doesn't use inpcb lock. Coming w= ith a patch soon. --=20 You are receiving this mail because: You are the assignee for the bug.=