Received: by 10.223.176.5 with SMTP id f5csp901703wra; Tue, 6 Feb 2018 09:12:09 -0800 (PST) X-Google-Smtp-Source: AH8x226ThQLZkXIcEMlCJBGpp+H/eKJEbsG4FL3c8l1MlxVE1Eqw0a45bCv3aeFZt0XHZaLaZjcA X-Received: by 10.98.209.8 with SMTP id z8mr3108713pfg.240.1517937129655; Tue, 06 Feb 2018 09:12:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517937129; cv=none; d=google.com; s=arc-20160816; b=ujqJPykrYSpYB8R22q1yUlnojmAO+EVdHn8BsYkm2BV30dCfqjIFITs5fTbzLCH4S7 aq1Z5tgIR4HYkBiyVnihYagj4z1Fs2uU2CsaWR53g3OmuUZKs/ybA1kBmPjOJdi7M3az x4mIhB5kLUIR+GSLFKa2gt3jAbpVCqU7oCaYJUUZlA201vwVd7ekI6t1S4AUFpptyiOG SVczEAjT1F35M2hkvNlN7/Z4KSkfCeAmni2v/OHUPCCMY0CNhn2pQiS0El5va8rEueLC iwILXdN4cUUG0oxFwKiKzle+OVVG12G8SJ/3EaZ1jbtpPNgrLsyKDsMoEkOpdNA/fGPJ jIhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter:arc-authentication-results; bh=O51UJ0Ce54CGMPUbqaKceJgBciWP7NrlX4IpCnZ9NGY=; b=koWaM7yR5fM/mttIIwyy/gL5KTKAp8WNDM059ONHTWUcKtkOrwmgV57q8oRXRExxvJ hQLheXvOzwH0yokOZLNITyQG9pILf0234Cwx4PIy2ikX5/8Ey366sxQsCY1vqk0F7MYY bGNZAxM3NrRJWvGFUwMbiVi+VkzgHR9HNN4sOvQsxouwstgRnFYFAMmNFRDsSDZq9mzB IKb7fYNmz/aSwUwi7cR3DyNJ5U0nsbDx/oXzyse4YO0FjdwHEeegjp84GWkXY2IQMhPF EgHpikXDpp6a5X17BzP+B36XKAxzNhL1CaO+HSiQrseKyyncDOtCX99UWX/zbLjD+P0O 0ZHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=GryVuKnJ; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w6-v6si2362652plp.738.2018.02.06.09.11.55; Tue, 06 Feb 2018 09:12:09 -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=@samsung.com header.s=mail20170921 header.b=GryVuKnJ; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752582AbeBFRLJ (ORCPT + 99 others); Tue, 6 Feb 2018 12:11:09 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:37967 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752286AbeBFRLA (ORCPT ); Tue, 6 Feb 2018 12:11:00 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180206171058euoutp02973d39447dc92478106e3c6f607f546f~Qy7ZS524U2731127311euoutp02k; Tue, 6 Feb 2018 17:10:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180206171058euoutp02973d39447dc92478106e3c6f607f546f~Qy7ZS524U2731127311euoutp02k DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1517937058; bh=O51UJ0Ce54CGMPUbqaKceJgBciWP7NrlX4IpCnZ9NGY=; h=Subject:To:Cc:From:Date:In-reply-to:References:From; b=GryVuKnJTpbgncHxCNpRqTZQ61DF8Q1lwsU6+Mm43uzl+yYVYht2JIdjnr6k7h3pU iv+iMaA8oRwmgLgeabygagYsxkJ44rOB9InhAmnRxTrOudvNVQ/qF8C6g2VSIp/6Ac FeCb9RiqCHZcSLiFCao3AHre6tAQga2Uews26Nqw= Received: from eusmges3.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180206171057eucas1p2406c58ff74aef11f02c7acfd94d40feb~Qy7Yn2V2t1806918069eucas1p2S; Tue, 6 Feb 2018 17:10:57 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3.samsung.com (EUCPMTA) with SMTP id DA.E1.12867.1A1E97A5; Tue, 6 Feb 2018 17:10:57 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180206171056eucas1p20ff76b00b33866d364ff501a5acc2d05~Qy7X7RcQV1267712677eucas1p2p; Tue, 6 Feb 2018 17:10:56 +0000 (GMT) X-AuditID: cbfec7f2-f793b6d000003243-f0-5a79e1a1c3d2 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 4C.EE.18832.0A1E97A5; Tue, 6 Feb 2018 17:10:56 +0000 (GMT) Received: from [106.120.51.18] by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P3Q00A2DNQ8LZ40@eusync1.samsung.com>; Tue, 06 Feb 2018 17:10:56 +0000 (GMT) Subject: Re: [PATCH] crypto: s5p-sss.c: Fix kernel Oops in AES-ECB mode To: Anand Moon 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 From: Kamil Konieczny Message-id: Date: Tue, 06 Feb 2018 18:10:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-version: 1.0 In-reply-to: Content-type: text/plain; charset="utf-8" Content-language: en-US Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA02Sa0hTYRjHfXfOdo6j2eu8PXiNpV0E7WodyqKictSXKAJbH2zkwS5ObVNp 9aGRec+yZSpLyFVeki66lrfKzMzrcIpJGrpSWaiUhBdKS83tKPjt97zP7+V5/vDQhPgV35M+ HxPPKmPk0RKBkKxsmukI0g+qZZuHOtyZivwXfKbAfINkMse8GbO5nGK+WmZ4THdtgYDJN9fx mOcVXyjmWeMAxSzMJhH7hFLjkz6etEY3QEkr6wOkhrJ0gXRen0NKbxnLkHTS4HuMkglDI9no 84msctPeM8JzWcPZVFy98HLvu1KBBpXQGciRBrwdeotTBRy7Q6flxSILaTEuQtCi6V4qJhFY Rh+Tyz90lh6SaxQj0JuTeFzxHUGjtZ+wWS44DGrKC+3sitfBJ2sp3yYReJYHpodv7AMFeCcM VZl4Nhbhw3AzMxVlIJomcQDUd9kVNxwO+ntWxCnO8Oeuxb6FIz4BRcZyysYE3ggjU1qSYw9I Su5bYj94+fQnwW39VwB5psMcH4TZ7FE+xy4w1mykOPaG9LT39jCAbyMo6W2juCIHQXNuD4+z dsOH5i4+N8EJtJV5hG1pwCJISxFzihRS+muX9P3Q9TzHHkaMBxF0TgdlIz/dijy6FRl0KzLo VmQoRGQZcmUTVIooVrUtWCVXqBJiooLPxioMaPGY2uebJ6rRdMuuBoRpJFklSjOoZWK+PFGl VjQgoAmJq+i47UkUKVdfYZWxEcqEaFbVgLxoUuIh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+WmwIAAA== X-CMS-MailID: 20180206171056eucas1p20ff76b00b33866d364ff501a5acc2d05 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180205174022eucas1p101e8339284c1f0ac8f40f70c24de1c1f X-RootMTR: 20180205174022eucas1p101e8339284c1f0ac8f40f70c24de1c1f References: <224788c7-426b-d3a9-d0a6-412d2b8afb75@partner.samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06.02.2018 17:48, Anand Moon wrote: > 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. This is added after '---' line, so it will not appear 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 This will add you name in commit message, additionally with 'Reported-by:' line. > 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 > [...] is it from 'cryptsetup benchmark' ? benchmark did not cause oops. Please test with luksFormat, ie. use cryptsetup luksFormat --debug -q -d /tmp/testkey.key \ --cipher aes-cbc-essiv:sha256 -h sha256 -s 128 /tmp/test.bin -- Best regards, Kamil Konieczny Samsung R&D Institute Poland