From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-178.mta1.migadu.com (out-178.mta1.migadu.com [95.215.58.178]) (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 3F44C396D35; Mon, 30 Mar 2026 20:41:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774903264; cv=none; b=AN/lxTU1n1xbZCLy7VkLb/CCIQ/NshoIdrHydL6RGCWfGVjvvlLAFN8vMISFRwUx1CHpPqcVK0MiToIjP+nAASj5J6k0W+CqxsitXfq3dvi4FZ3kTMggWNQJCyvZaIfOHiPydWmY4lYmpqYv/dZSsDXpy/ZPRbpyPSrDm8hOqjc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774903264; c=relaxed/simple; bh=EOWaw231OXh+OCxOVHHgKO4PsXZfxwWLnNexMXm5QQY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DFPbtNaODHnfaV1omDrmSNApYX7VNdsLBl2jL63M7SPHYsD3Vdsy+dY5BgB5Ef/+qdAr00pK33SIQbnz/j9mBff+7Y1u9vzY409S1FtZkQihMr/g9YiSdSId8vV1/PStie46ZxA4/NtLvgE/OyqF5gxXDAzNN+mD9/SvlpAAZBU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=HagsZGlw; arc=none smtp.client-ip=95.215.58.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="HagsZGlw" Date: Mon, 30 Mar 2026 22:40:42 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1774903250; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DIyuPEO9vyWDylSg0YsJe0wIWRfP6LZmQavPdsYHxNQ=; b=HagsZGlws8VdmhpA4ru3LgmD73bBL6yVU3Z1fdSrTifZ9DwS7G3uBmC1NNYUdeWmjDkhUj MrDF1ixdgb+eDMWtUE+8/Zhjz6Aovj1QDWabPOL4HMDub+WvV0MJjiLFhGvvO6ypfHtjx+ pEBwtQ0LlAhmWejfJmvp10RR4vpO8FY= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Thorsten Blum To: Thomas Fourier Cc: stable@vger.kernel.org, Herbert Xu , "David S. Miller" , Kees Cook , Jonathan Cameron , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: hisilicon - Fix dma_unmap_single() direction Message-ID: References: <20260330151937.83837-2-fourier.thomas@gmail.com> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260330151937.83837-2-fourier.thomas@gmail.com> X-Migadu-Flow: FLOW_OUT On Mon, Mar 30, 2026 at 05:19:32PM +0200, Thomas Fourier wrote: > The direction used to map the buffer skreq->iv is DMA_TO_DEVICE but it is > unmapped with direction DMA_BIDIRECTIONAL in the error path. > > Change the unmap to match the mapping. > > Fixes: 915e4e8413da ("crypto: hisilicon - SEC security accelerator driver") > Cc: > Signed-off-by: Thomas Fourier LGTM, thanks. Reviewed-by: Thorsten Blum