From nobody Wed Jan 1 23:51:37 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 4YNmp272jtz5jPsp for ; Wed, 01 Jan 2025 23:51:38 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YNmp25t4Sz3xlW for ; Wed, 1 Jan 2025 23:51:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735775498; 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=nAZGRhtFahNJaHdq4fCQixPBRLrU+f9hwsEYuMke/4A=; b=x5L2E+D3RebWGPauVGVLP/nyBwlkqbD5JrvUosqmfNZgoqRwtlgIehsrMud+inRPtRJ630 tan3z3zKNO2S6cJNMTqpvm3wtlQcLdrDuM3q8JrVZyPoaq3pSUOO/DgZICkPEv0Wtnp0dA M0mMNTCrrBpqZgqxAFQTkspZyhJVpw55gQWYLPXI+vfnrAKLnQdxIw6fjFLjauRgJfIRCD Halt/5/L7rdeqldXIlzd8ykmHJVAr5Q+EWbHt7GRq7VVNJAxEzA8B2FkQ2teaoFfZeRRXv mi2IcHNevEJ+ZkgeyY4x3VMOW+hOrLSko7P3y7DE+cMkgtZCWcYQztkzK9jmwQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735775498; a=rsa-sha256; cv=none; b=sP5Jf+6wQt4Tr+fxk7yZsThbXC8aFn2VqYdwQqKBCksBcstK7tOgWwvVPOkIraKc50+mkM IbiYzdvILwh8gGiIqCqnpQV7d0x1H3XRb1cXWTcPu+WVbYp7bkRwebcCdtX3+88EGichY+ xHtyv6Us9KnYH94PDspc0UxMG/SJCBIWxs9L0ZNjjW+/kkVaBhFCSWvedMkkm0VQ8uD1+Y 8e4NXW0LpxQwR8sefwdZQcKM5jyi64pVKBfepTvkofdXUOFSZFCr7t49qHbWsEKvAyOgZK 1uOkXNIT3f/4RcgyoiGVp1/emZQVRrPnistjMwihQnfqGVOqr4ZVAXjLxp2dwg== 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 4YNmp25QwczlHY for ; Wed, 1 Jan 2025 23:51:38 +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 501NpcSe016674 for ; Wed, 1 Jan 2025 23:51:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 501Npc1k016653 for net@FreeBSD.org; Wed, 1 Jan 2025 23:51:38 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 280037] KTLS with Intel QAT may trigger kernel panics Date: Wed, 01 Jan 2025 23:51:37 +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.2-RELEASE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: 3226388001@jcom.home.ne.jp X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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=3D280037 --- Comment #16 from ss3bsd <3226388001@jcom.home.ne.jp> --- Created attachment 256331 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D256331&action= =3Dedit draft patch that addresses comment no.11 and 14 I have tried to create a draft patch (attached) for comment no.11 (resource leak) and 14 (panic). With high TX load test & kldunload qat, Before applying this patch (for no.11): qat_ocf0: unable to remove encrypt session=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 qat_ocf0: waiting for session un-busy failed=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 qat_ocf0: unable to remove encrypt session=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 qat_ocf0: waiting for session un-busy failed=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 qat_ocf0: unable to remove encrypt session=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 qat_ocf0: waiting for session un-busy failed=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 qat_ocf0: unable to remove encrypt session=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 qat_ocf0: waiting for session un-busy failed=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 qat_ocf0: unable to remove encrypt session=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 qat_ocf0: waiting for session un-busy failed=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 qat_ocf0: unable to remove encrypt session=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 qat_ocf0: waiting for session un-busy failed=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 qat_ocf0: unable to remove encrypt session=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 qat_ocf0: waiting for session un-busy failed=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 qat_ocf0: unable to remove encrypt session=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 qat_ocf0: detached=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Warning: memory type qat_ocf leaked memory on destroy (250 allocations, 102= 4000 bytes leaked).=20=20=20=20=20=20 qat0: qat_dev0 stopped 6 acceleration engines=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 qat0: Resetting device qat_dev0=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 qat0: detached=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 After (EAGAIN logs are added this time for debug): % dmesg | tail=20 qat_ocf0: EAGAIN cpaCySymDpEnqueueOp qat_ocf0: EAGAIN cpaCySymDpEnqueueOp ktls_ocf_dispatch_async_cb EAGAIN DELAY ktls_ocf_dispatch_async_cb EAGAIN DELAY qat_ocf0: EAGAIN cpaCySymDpEnqueueOp ktls_ocf_dispatch_async_cb EAGAIN DELAY qat_ocf0: EAGAIN cpaCySymDpEnqueueOp qat_ocf0: EAGAIN cpaCySymDpEnqueueOp ktls_ocf_dispatch_async_cb EAGAIN DELAY ktls_ocf_dispatch_async_cb EAGAIN DELAY qat_ocf0: detached qat0: qat_dev0 stopped 6 acceleration engines qat0: Resetting device qat_dev0 qat0: detached --=20 You are receiving this mail because: You are the assignee for the bug.=