Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp845424rdd; Wed, 10 Jan 2024 00:53:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IEijaMlIQHXPUua+Mz5ZBtH+kue8NlAs9zNoDe9quiHHbyaKPvg39pCZJ95ohZKXhWO1p7V X-Received: by 2002:a05:620a:2811:b0:77f:2a61:e515 with SMTP id f17-20020a05620a281100b0077f2a61e515mr803593qkp.35.1704876796570; Wed, 10 Jan 2024 00:53:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704876796; cv=none; d=google.com; s=arc-20160816; b=RQkJPl2IfYPdX/bgKVWag/ZRl2Fia0zjjpL8+b/V4Z1H6/VG/22leoQjeZaUlarS7o TeO5HtA0AWVGVORXUDsfYAIYSZdHvoxfDrBNXvIOtyifreN8fRO91pjqFF7ZpNbnljiS ueEOD+zvEFOCKCLnBCOzonkWIYksQjck/H1oRto0opOz1ozjRo1X/6EJzpd0FnngfsFg hwAVO2rRSkpSP1V20vCcpM6wRSJAd5LraKuhiRtli364DSpsqSqUwkFMCs0UVCSduYyE xHJ9P7FW7rpzJijKZ5v68NeSynob4tkRa6PO9XLh89+WhifhPFKNNIT1hekZv56tkwFy JxRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=PB4Txu549Kriq75Ims8P1/IqTUMasS1QxpKCcZe7uUw=; fh=g2I7RMmM7+k/984HRafvJGakenVcJurIVN1yYVpGYQA=; b=hfeGXYM0uRKrhw3zOJ8qrw4ArlOY/KLQhDsa/s1CrVe49YjaMq9hwhHeDhSBacIyx2 eBE/TiNkjpXqlL93dV9Hcp62Bkk1q0JZv+Ab7uu0UNZ8LpSQ+VYM9mi+yA8QsZGwhIXr ZInzEaiM2lWl0BuMVNiJjR/0WNw5+6U9vkbfHtWtCHvY5CT5qRpSg5yLKDIBJgA3kPp3 CACTvbxX1636gemCdqx4+bNiceBYUdarWDTFJl/M1NcnZBRBl4OZt6uaxjz6a236ivlP ueOV0OQTlT04a+0oij+snKvmn4XgRDPzeNHo8pRgubaeXEnVUlmA7OF4ANuHPX2r4ety 6l5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=nJzGS3GI; spf=pass (google.com: domain of linux-crypto+bounces-1321-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1321-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=windriver.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id sq1-20020a05620a4ac100b007831ccd6039si3569260qkn.467.2024.01.10.00.53.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 00:53:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-1321-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=nJzGS3GI; spf=pass (google.com: domain of linux-crypto+bounces-1321-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1321-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=windriver.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E74351C23BD7 for ; Wed, 10 Jan 2024 08:53:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A41083A8C6; Wed, 10 Jan 2024 08:53:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=windriver.com header.i=@windriver.com header.b="nJzGS3GI" X-Original-To: linux-crypto@vger.kernel.org Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 945B93A1BE for ; Wed, 10 Jan 2024 08:53:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=windriver.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=windriver.com Received: from pps.filterd (m0250812.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40A5wivw002759; Wed, 10 Jan 2024 08:25:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= PPS06212021; bh=PB4Txu549Kriq75Ims8P1/IqTUMasS1QxpKCcZe7uUw=; b= nJzGS3GIun0/9v+60215UbQGk5XTaOhCknIlyrj9grEar8VM52LArSqm//aOSbFJ a4zqU+PY+WL1mxMIHPusTB5MX5CYOsd/cA7/hfNvkWJ/CbbT+zkJ/ygAXaN2R3az NeZN2i9zl/u2ZCK3okFi/WSn1msgmjCIXZxkDdZ1nBrTai66em1beFtscAFesc75 /VKXgmlgk19+2rLrYTGFve012qdSFtzxUc+k5gzYZtQbr4GblOIfvQWvOni+xDsQ /7s9vrxN5WfCFknuKga9p7lRJTHfPQkN26MLNYQXhyRBYlhn/6KkoNn4+47jjQCx X2DmX2jAT4mhi6RfulTPRA== Received: from ala-exchng01.corp.ad.wrs.com (ala-exchng01.wrs.com [147.11.82.252]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 3vewu5ca8s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 10 Jan 2024 08:25:37 +0000 (GMT) Received: from ALA-EXCHNG02.corp.ad.wrs.com (147.11.82.254) by ala-exchng01.corp.ad.wrs.com (147.11.82.252) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 10 Jan 2024 00:26:07 -0800 Received: from pek-lpd-ccm2.wrs.com (147.11.136.210) by ALA-EXCHNG02.corp.ad.wrs.com (147.11.82.254) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Wed, 10 Jan 2024 00:26:04 -0800 From: Kun Song To: CC: , , , , , , , , , , Subject: RE: [PATCH v5.10.y] crypto: caam/jr - Fix possible caam_jr crash Date: Wed, 10 Jan 2024 16:25:32 +0800 Message-ID: <20240110082532.2858045-1-Kun.Song@windriver.com> X-Mailer: git-send-email 2.26.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: 3VFuORSlHGJptCkDhD0RiVyac-qahwdn X-Proofpoint-ORIG-GUID: 3VFuORSlHGJptCkDhD0RiVyac-qahwdn X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-16_25,2023-11-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxlogscore=724 priorityscore=1501 impostorscore=0 malwarescore=0 mlxscore=0 clxscore=1011 lowpriorityscore=0 phishscore=0 suspectscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401100068 >Hello SK > >I am submitting and replying patches using gaurav.jain@nxp.com > >In Later kernel versions we have provided fixes related to job ring flush and there are other changes as well. >It would be better to add these changes on top of 5.10 tree as we also run multiple tests and not observed this issue. > >Regards >Gaurav Jain Hi, Gaurav Can you identify which commits? Our version has added some related commits based on 5.10 ------------------------------------------------- 04ff8e37a2df crypto: caam/jr - add .shutdown hook f7ea4a6a6511 LF-3093-1 crypto: caam/jr - fix caam-keygen exit / clean-up c41daf27fa44 LF-3079 crypto: caam/jr - fix shared IRQ line handling 1f12127de72a MLK-24912-2 crypto: caam - fix RNG vs. hwrng kthread race 04e3a61f9bb5 MLK-24912-1 crypto: caam/jr - update jr_list during suspend/resume f48d9e23262e MLK-24420-3 crypto: caam - add ioctl calls for black keys and blobs generation 5c98742fbf60 MLK-24420-2 crypto: caam - add support for black keys and blobs ------------------------------------------------- But We have no way to port this commit because its architecture has changed too much. commit 304a2efe9d55875c6805f3c2957bc39ceebbc5c0 crypto: caam/jr - Convert to platform remove callback returning void On your test enviroment, modify function caam_jr_remove Test scenarios1: if &jrpriv->tfm_count is not zero,whether will crash? +atomic_inc(&jrpriv->tfm_count); if (atomic_read(&jrpriv->tfm_count)) { Thanks! BR/SK