From nobody Mon Oct 09 21:07:57 2023 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 4S4BSt2LDtz4wRkP for ; Mon, 9 Oct 2023 21:07: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S4BSt1DCPz3D3V for ; Mon, 9 Oct 2023 21:07:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696885678; a=rsa-sha256; cv=none; b=NERcKxZ26mmle1mtU2oRTK9I7cUQqzRfk0HyJ3macKolFPAm0jf4s0q9d/mDBj3DL5Kwn4 FQJlFvX9R0kSnKXDe/wPGAnA1BnmREzuDnUczC6dtmQUTfpbYawTlZGDkIMfuHt3rPop1M l9c3f1F9aHTEu6xDQdGupRTwOnG+wg0PMViNm1QerGpz1U2bT462za134BRWyPmOZwdkLk I5RfNdafxOjLb2tkNWNAy7WSqbqTq5ibcwNuXk01nb6Rykp4Mg/C28yEZVPUJBKdpmHWbD ZBPywSShBV7liqSJSleCgGCYbaC7Q92+gUq9xClYv4D2f677kSAHekI4RJ+WrA== 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=1696885678; 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=QIDxrk53BMPDCpXaCVjSk3LXbON3IAGhwOszbAB8RGc=; b=AJKwAFYX2NtzLrmo4x4yoln537YyUEQ8wsY0uE1Ji20symd9ivrzFFrXSDMWaLmnapfHGU 0XEnRYH02oF4wYiZWOec29kl21uIbCLtPENGH2jhQQbB1R9c5rRvAwAmdAswy1XclZoyfa uHFNQ7/BmzXSR02xhu6jwk+Xow36jzojbHU4IFHJXp1/2OuXFD89WYNfq1KBTs0RWe+sOJ 413l1bDzjT/TQpdYwad4V6k3ez+T4ftu/H/2dzNFQp0ZIM4JaH3V5vXLNRrH8rR2lg8EXG wdTqCej5Fr65KCwrjh/1j/88gb/Km0PM38q8XKZkago3MPQF9MlVs/kqd4QC4g== 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 4S4BSt0J0cz19s3 for ; Mon, 9 Oct 2023 21:07:58 +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 399L7veU041026 for ; Mon, 9 Oct 2023 21:07:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 399L7vxj041025 for net@FreeBSD.org; Mon, 9 Oct 2023 21:07: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 274007] IPSec asymmetric crypto broken Date: Mon, 09 Oct 2023 21:07: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: 13.2-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: sanastasio@raptorengineering.com X-Bugzilla-Status: Open 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-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: 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=3D274007 --- Comment #3 from Shawn Anastasio --- I am able to reproduce this on -CURRENT on powerpc64le. With a debug kernel build, I'm hitting the following assertion when flooding an ipsec link betw= een two VMs using ipsec3 with the net.inet.ipsec.async_crypto tunable set to 1: panic: vtnet_txq_encap: no mbuf packet header! cpuid =3D 13 time =3D 1696530952 KDB: stack backtrace: 0xc00800006f554300: at kdb_backtrace+0x60 0xc00800006f554410: at vpanic+0x1b8 0xc00800006f5544c0: at panic+0x44 0xc00800006f5544f0: at vtnet_txq_encap+0x3c8 0xc00800006f5545d0: at vtnet_txq_mq_start_locked+0x17c 0xc00800006f554690: at vtnet_txq_tq_deferred+0x6c 0xc00800006f5546d0: at taskqueue_run_locked+0x100 0xc00800006f5547d0: at taskqueue_thread_loop+0x144 0xc00800006f554820: at fork_exit+0xc4 0xc00800006f5548c0: at fork_trampoline+0x18 0xc00800006f5548f0: at -0x4 KDB: enter: panic Not being intimately familiar with the FreeBSD network stack, it looks to me like there might be a use-after-free on the mbuf with the tunable enabled. --=20 You are receiving this mail because: You are the assignee for the bug.=