From nobody Mon Aug 15 18:59:48 2022 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 4M63Vs0CNRz4YZKc for ; Mon, 15 Aug 2022 18:59:49 +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 4M63Vr6CRmz3HBg for ; Mon, 15 Aug 2022 18:59:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 4M63Vr571pzgcg for ; Mon, 15 Aug 2022 18:59:48 +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 27FIxmtg010799 for ; Mon, 15 Aug 2022 18:59:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 27FIxm2E010798 for bugs@FreeBSD.org; Mon, 15 Aug 2022 18:59:48 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 265852] qat: kernel crash using krb5p with nfs Date: Mon, 15 Aug 2022 18:59:48 +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.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc bug_status 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660589988; 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=su+Qa+QQO/GQxVi+BALilICTLPerlZ+HndGTvQ6kKTQ=; b=C0oRbMbIRMueQtHqiUERJ2ahBjEZ1F2CA8zEPBxJz1nywVZYgLazIqfNtMNcruk0w1lzVt G05jaa2+wLwKMtfE2FgUQI9jYARXcXayl0g5cRQDlYeL9uFnb2PEnlv7kMBmvfYM8bKZBP Hal3F/XzX61FwrmYuT9aG7CZURawbUMIiRhb4osacQKQEoz9fh8UtTRdpW6GyK3FjYDIhL bLJrrcxzrb3jwq46N8vhm42KM67udgc9v3f5a2UdpSE1+GMrNRV3x3VmnzOCSg98iNfcv+ oFSk2W5RG9fFfCWxepz3CxvTF16tHeHZcNoZAu2S+aiFnesawwAeAmR1De5qhg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660589988; a=rsa-sha256; cv=none; b=cKYaZW0Bi4wTMIeeXEZBXhjlzOi/Cx4kXdRGY0wXgcIZ5mefvSmvnQ3uvUyjDv2DHidRf/ 9hUSRiezQtoc0eaEtNiHs/zJ9Og6ygBu6EEjg95L3fxw633iwpKgQeelchaTj3gu6ajBHP lvef8LDOaEDc4pyb3FWb0CBmuijuBoX3boB+dCcTLDVLjjSKf9uaEIYhlHbfAYg7oPkm/M EaUR/qHkQJ7voDZrdIATwkFex8wjybbwQexJ3G56n7ydiWJoZ6LcWmfFyT4MpzlkZndEND rErR9482SK3qy7NW8SkYLAaJFeASfzK8Wt7XgllnrT5d5NPT4ClV1zRYQ2QWVQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265852 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markj@FreeBSD.org, | |mav@FreeBSD.org Status|New |Open --- Comment #1 from Mark Johnston --- I believe this is a bug in kgssapi code. aes_checksum() and aes_encrypt_1() can observe that CRYPTO_F_DONE is set before the callback worker thread has= had a chance to invoke the callback. Then the code frees the request, i.e., th= ere is a use-after-free. kgssapi is ok with synchronous implementations of crypto routines, but not = with async implementations like QAT. So the workaround for now is simply to not= use QAT. I can provide a patch for testing, but I can't provide a truenas buil= d. --=20 You are receiving this mail because: You are the assignee for the bug.=