Received: by 10.223.176.5 with SMTP id f5csp876468wra; Tue, 6 Feb 2018 08:49:44 -0800 (PST) X-Google-Smtp-Source: AH8x224iy1TzLCsp8swOoH8C9bg3Y6zbogmFbY1PWGqV96ToB331HyHYmB2qfjXK+caMooLXoIlI X-Received: by 10.99.119.69 with SMTP id s66mr2398896pgc.261.1517935783823; Tue, 06 Feb 2018 08:49:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517935783; cv=none; d=google.com; s=arc-20160816; b=P8YTdubuzPpOISFHNkCsPxhPikWNxdyJ47jiHAMYKSoxBgJo4HN+R4RQMwdPrdD2LP PygM8prQLK3uLmMOQbqHW52rwPYGPLwl+guj2hv2AdzblDiZc7Qnnk9LMXxw1z1Sz8nE Qqg/V4yeI/cIEA+voGaLMLQeFCZkQ4cxeu1qEw87/xctSfarBlToBHYpffHnBkC0mUie VTYvg4pkxw4xmKPzGkkF0BZFqtpwUWWOAngcbU6M//P7fin5oj3PNt4b/1DWLKWtF47I rs+/SRsffYx8AgxRIobzfKxMYXDsLTeKy0KnkyGoaW4WS+3LWlWlAqGPNMes4U7Sz7cv zmnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=I7ePOYMlULnGA/NHEEh1/pOJUuq9mCGEj8MEVEARsqc=; b=gbg7XmagjeNWWCnKMWt0c8n63cPV22VmDrGM/eHhnh0XTXw6Tm4oPdboPXCDuHDIAw 0+ntgUryyALAvxZmkH0fVeGGgtyiWYeQkFbrtWU0s/0WKnedwJzAXw7TV5FwrIgBZCoE wfGXWPDtr8PjjfUyDmLmQO0kKHlbCaN8DYiub0yrzwOKKngqlZK7Ce2gZox/GybWglgE 5AcUkmsk059pXs5u9g6nuUhyr2IcnE70inq2vhZuXV9PDh9GOzyTucnaAIBL1ZKpBqwy RK9ShZMNwK24PMoMQqJ6+TQoOxDuMGE02nht9dSSWql2GeCRUGsUhUMqR4N6CMFF7L8h Yltg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Hj0NLiZ0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q11si1565843pgf.84.2018.02.06.08.49.29; Tue, 06 Feb 2018 08:49:43 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Hj0NLiZ0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752659AbeBFQsx (ORCPT + 99 others); Tue, 6 Feb 2018 11:48:53 -0500 Received: from mail-ot0-f196.google.com ([74.125.82.196]:36091 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752259AbeBFQsr (ORCPT ); Tue, 6 Feb 2018 11:48:47 -0500 Received: by mail-ot0-f196.google.com with SMTP id m20so2343329otf.3; Tue, 06 Feb 2018 08:48:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=I7ePOYMlULnGA/NHEEh1/pOJUuq9mCGEj8MEVEARsqc=; b=Hj0NLiZ0ojVZ5fl7KlpoVj+apNwPqMD19Bq4IJoFBrYKdgwiWlzZ8KdLqGT1hv9Thj BOImT3nHlFNjnEvuvGap6YEkAkKCl3RR+WLyeRxw0TZf1Be5xJc20brwm48Zux4Pmmvb I9j6RlvZjsG8Z7QGv4XD7h9UhwArhMMXCvqRofz6zIgm/zq6zss50kSep2b3t5IUt7VO C38mUx+VpmMnZuRVpZf19o5JHJOg+lnw+xtUToMTAP3GMCtRDG54dD4+YQFOnBaOe/5y faBOCZhhnLq4j9ypbY4pGUA5vHu5gJREoLmUGNBJlTnXtASvwCyL5uQgF7QSm2nWP7jd s35A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=I7ePOYMlULnGA/NHEEh1/pOJUuq9mCGEj8MEVEARsqc=; b=drZ73J3/+YseoCfcqZxSZ6QO6X1AB3PyMiuKgivp6456rumAU+JPrevGPFArF83E1I 9a2M39edNOBxHvAz53v+Dz3clE22zlTbBiPpdn+9DXnU1Se5k/IGc+yhb1j4p36R7NZl f0KOeZ9gfKG492SyA/w7dZuKvRzl7otbB0zza4MBH7CgFtkT/LKG+MgwuopxV438pYJ1 sbnO/jTgRewekYtj1mXXQT+IBjF/sGS0JqstShfpoQZFwVik1Zam1m3t9ZO3K7vBXLro zEfGTCbfg/cJdm8pyR2Sidh4KCbGYsHPJZAB5evVkuvQReWp/ALz1JGYA//VeElb/KXs bGwA== X-Gm-Message-State: APf1xPBJ/snjLn9eQ4zHU5CXInGp0a7kI4m87ri7OI7J95oZNS27fJRq n9GWH5gltBslnYWnHOI4iiLMY1eZ065COGD2SnE= X-Received: by 10.157.21.87 with SMTP id z23mr2091746otz.365.1517935726566; Tue, 06 Feb 2018 08:48:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.24.91 with HTTP; Tue, 6 Feb 2018 08:48:26 -0800 (PST) In-Reply-To: <224788c7-426b-d3a9-d0a6-412d2b8afb75@partner.samsung.com> References: <224788c7-426b-d3a9-d0a6-412d2b8afb75@partner.samsung.com> From: Anand Moon Date: Tue, 6 Feb 2018 22:18:26 +0530 Message-ID: Subject: Re: [PATCH] crypto: s5p-sss.c: Fix kernel Oops in AES-ECB mode To: Kamil Konieczny Cc: Herbert Xu , Krzysztof Kozlowski , Vladimir Zapolskiy , "David S. Miller" , Bartlomiej Zolnierkiewicz , Marek Szyprowski , linux-crypto@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kamil, Thanks for providing the fix to this issue. On 5 February 2018 at 23:10, 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. If possible could you avoid the name in commit message. > Fixed it by using IV only in AES-CBC and AES-CTR. > > Signed-off-by: Kamil Konieczny > Reported-by: Anand Moon [snip] Please add my. Tested on Odroid HC2 Tested-by: Anand Moon Below are the result at my end. aes-cbc-essiv:sha256 (128 bit key) WRITE: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 11.7225 s, 71.6 MB/s READ: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 22.112 s, 37.9 MB/s aes-cbc-essiv:sha256 (256 bit key) WRITE: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 13.096 s, 64.1 MB/s READ: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 24.4165 s, 34.4 MB/s aes-ctr-plain (128 bit key) WRITE: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 11.2246 s, 74.7 MB/s READ: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 20.426 s, 41.1 MB/s aes-xts-plain64 (256 bit key) WRITE: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 11.1533 s, 75.2 MB/s READ: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 20.8821 s, 40.2 MB/s aes-xts-plain64 (512 bit key) WRITE: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 12.0614 s, 69.5 MB/s READ: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 23.0717 s, 36.4 MB/s twofish-cbc-essiv:sha256 (128 bit key) WRITE: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 13.031 s, 64.4 MB/s READ: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 20.7202 s, 40.5 MB/s twofish-cbc-essiv:sha256 (256 bit key) WRITE: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 12.9995 s, 64.5 MB/s READ: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 24.2369 s, 34.6 MB/s twofish-xts-plain64 (256 bit key) WRITE: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 14.607 s, 57.4 MB/s READ: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 26.2963 s, 31.9 MB/s twofish-xts-plain64 (512 bit key) WRITE: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 14.5783 s, 57.5 MB/s READ: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 25.3593 s, 33.1 MB/s serpent-cbc-essiv:sha256 (128 bit key) WRITE: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 15.5157 s, 54.1 MB/s READ: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 37.0526 s, 22.6 MB/s serpent-cbc-essiv:sha256 (256 bit key) WRITE: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 16.1138 s, 52.1 MB/s READ: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 36.922 s, 22.7 MB/s serpent-xts-plain64 (256 bit key) WRITE: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 17.287 s, 48.5 MB/s READ: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 39.279 s, 21.4 MB/s serpent-xts-plain64 (512 bit key) WRITE: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 16.9464 s, 49.5 MB/s READ: 100+0 records in 100+0 records out 838860800 bytes (839 MB, 800 MiB) copied, 38.3389 s, 21.9 MB/s Best Regards -Anand