From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E305C2BA19 for ; Thu, 16 Apr 2020 01:38:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 01BF720644 for ; Thu, 16 Apr 2020 01:38:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587001084; bh=AaO/+NvgBF4SPH/3WDudLvRSk+23VUPiQLzBDiLioTE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=0b2eU37Lxif1j3vGW4hHqBlECkxfStl5d6gkK8MkRjC6VHMPKP5RsrJ2jQ1YeiVDp pWUL0qJ+P8Qz4z2+EZBtqN1dxha9UMdKTmvmA6bC6REJPALf9DWja2YpcNtDfIClHd DXLl9GXyc6IPB8jO0emtTzk/pHBx0t+k3yHQnp8U= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732502AbgDPBiA (ORCPT ); Wed, 15 Apr 2020 21:38:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:50790 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731837AbgDPBh6 (ORCPT ); Wed, 15 Apr 2020 21:37:58 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 056F220644; Thu, 16 Apr 2020 01:37:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587001078; bh=AaO/+NvgBF4SPH/3WDudLvRSk+23VUPiQLzBDiLioTE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HExsXE35PZAb0WPByFCwBd+5gpdITbgo+ctEMkhRxuhoDXsD0dbt9Bc97efhvDktQ DSD9JmuOZs3G5fReSypK95G9GNKj6P0lJYhEUa/umIPGL1I031hbXaGwTWG/RHClKS MgS6q0UyeA3XePlRIyaKZsXyKnK6nCzoiPm59oMc= Date: Wed, 15 Apr 2020 21:37:57 -0400 From: Sasha Levin To: gregkh@linuxfoundation.org Cc: gilad@benyossef.com, geert+renesas@glider.be, herbert@gondor.apana.org.au, stable@vger.kernel.org Subject: Re: FAILED: patch "[PATCH] crypto: ccree - only try to map auth tag if needed" failed to apply to 4.19-stable tree Message-ID: <20200416013757.GT1068@sasha-vm> References: <158694882829120@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <158694882829120@kroah.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Wed, Apr 15, 2020 at 01:07:08PM +0200, gregkh@linuxfoundation.org wrote: > >The patch below does not apply to the 4.19-stable tree. >If someone wants it applied there, or to any other stable or longterm >tree, then please email the backport, including the original git commit >id to . > >thanks, > >greg k-h > >------------------ original commit in Linus's tree ------------------ > >>From 504e84abec7a635b861afd8d7f92ecd13eaa2b09 Mon Sep 17 00:00:00 2001 >From: Gilad Ben-Yossef >Date: Wed, 29 Jan 2020 16:37:55 +0200 >Subject: [PATCH] crypto: ccree - only try to map auth tag if needed > >Make sure to only add the size of the auth tag to the source mapping >for encryption if it is an in-place operation. Failing to do this >previously caused us to try and map auth size len bytes from a NULL >mapping and crashing if both the cryptlen and assoclen are zero. > >Reported-by: Geert Uytterhoeven >Tested-by: Geert Uytterhoeven >Signed-off-by: Gilad Ben-Yossef >Cc: stable@vger.kernel.org # v4.19+ >Signed-off-by: Herbert Xu Grabbing: da3cf67f1bcf ("crypto: ccree - don't mangle the request assoclen") 9f31eb6e08cc ("crypto: ccree - zero out internal struct before use") ccba2f1112d4 ("crypto: ccree - improve error handling") resolved this conflict. -- Thanks, Sasha