Received: by 10.223.185.116 with SMTP id b49csp245625wrg; Thu, 15 Feb 2018 21:02:05 -0800 (PST) X-Google-Smtp-Source: AH8x226rWg/cndGzZCEx+/zEsp7EpDAAHaFzu5ZMis+MOfBEODOmGMkzQYaF5PmnZiXI+T+cdwmL X-Received: by 2002:a17:902:860a:: with SMTP id f10-v6mr4647464plo.292.1518757324938; Thu, 15 Feb 2018 21:02:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518757324; cv=none; d=google.com; s=arc-20160816; b=YGDRENYvrpm0ClkuxpRLEeapaG/vMrMsMO65Idh9QbeJfkfU0bPTiIqfxiDhBQJ3ZS FIakJQ08M4UkKgfpWHoIDuP8YrIwFgfK9qqSXRp7O1UY51q4e1sOJtWaq2MWI3EIZvep OwACAzoP6tjgd1+BJWfI3/rXqsFWIiHVyRkawwOSHVngTDYv0kzxkYi6WcA0mhzqikst sEtKC9K6ZhLchnh5oW/7ymSYlB8+YkUlxfUIfHCrLbti9VRL+1pNR7hZv9s+rUx8ZVjX XoNeBoBtXzmfBATDANptz9RhbPDYw26H+VtPbIZAOOnV5lR1LV03mplAPhpurBPm6Yj7 CP6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Ui2qdRPjVC0UAkmDlxK+8E7uoYX6lPnWCLRRDaYKUD0=; b=MSm03DwT+8TKvNlCbFCjc5Kon7Xu2pvEeoQCXs5jtVwcLoCQi2jeDVfswYmRfytznm yD8Y6Dey7tnMfPpzZkBXmR3ZBW/fKW2pkx4AiTYgVURKfVrtF/SGYpEA9MUdEo2oYcfr erHzLTg6OESxWMzleONYMFPYAWfGt7gFRTw/JBvMvP8OQZipqtg9OmrbRV4EEmaxWP8Q 44wmiH2FPGqIGhmswtrVs/PkU6/sMTZx26z/J/VVgjnMM5GD9HTtReFCT38eCvmktsxp tFUenQ7qqR/qEg13KWlutkd9D95aaxWNOguqd1VYhT0fhyy5ioD172pcvJkhefOoPBhf TnIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si2380537ply.476.2018.02.15.21.01.48; Thu, 15 Feb 2018 21:02:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1425192AbeBOPwN (ORCPT + 99 others); Thu, 15 Feb 2018 10:52:13 -0500 Received: from orcrist.hmeau.com ([104.223.48.154]:39622 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1424999AbeBOPwL (ORCPT ); Thu, 15 Feb 2018 10:52:11 -0500 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtp (Exim 4.84_2 #2 (Debian)) id 1emLpJ-0000Ai-Vk; Thu, 15 Feb 2018 23:52:02 +0800 Received: from herbert by gondobar with local (Exim 4.84_2) (envelope-from ) id 1emLpH-00024V-0d; Thu, 15 Feb 2018 23:51:59 +0800 Date: Thu, 15 Feb 2018 23:51:59 +0800 From: Herbert Xu To: Kamil Konieczny Cc: Krzysztof Kozlowski , Vladimir Zapolskiy , "David S. Miller" , Bartlomiej Zolnierkiewicz , Marek Szyprowski , Anand Moon , linux-crypto@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-kernel Subject: Re: [PATCH] crypto: s5p-sss.c: Fix kernel Oops in AES-ECB mode Message-ID: <20180215155158.GM7352@gondor.apana.org.au> References: <224788c7-426b-d3a9-d0a6-412d2b8afb75@partner.samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <224788c7-426b-d3a9-d0a6-412d2b8afb75@partner.samsung.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 05, 2018 at 06:40:20PM +0100, Kamil Konieczny wrote: > > In AES-ECB mode crypt is done with key only, so any use of IV > can cause kernel Oops, as reported by Anand Moon. > Fixed it by using IV only in AES-CBC and AES-CTR. > > Signed-off-by: Kamil Konieczny > Reported-by: Anand Moon Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt