Received: by 10.223.176.46 with SMTP id f43csp2134477wra; Thu, 25 Jan 2018 05:32:28 -0800 (PST) X-Google-Smtp-Source: AH8x226VScRD3N9kTYwkvTbtYkb4auPtzPWciJvJwvYTmrNWg8JzU0qL1UfN44Y5ZM/F7BLhI0Zo X-Received: by 10.101.98.26 with SMTP id d26mr13558742pgv.416.1516887148864; Thu, 25 Jan 2018 05:32:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516887148; cv=none; d=google.com; s=arc-20160816; b=e4la2OUTOuwp7Trtbba+bvK6s4veraW3ryQ4i5GJncOM2DK0oJG2FDldnTO8yxoNCo iEcjcI/l2B0DSZuQM66SMiJ10slT60WZk/gKB1C5fyjN8tR2XX827SIYY7EVTZ6+mBOc lcpdrgz98vjUZi3tN0X/tkiKBsAElpgokBCp9A4w9cDpYDJEYqMswZWUY5UA14BmRRmG MiMbFbNdROao86UNH4c+lgZ76/whAkkfEwcC+jxVRBc7jLZvapOeP80ovE60OgLo3Dhy q5uk39KihI6AEQNr0p/hy7s2EW72MXgKWKBCvMrLJ2OEeMQ66FiFwB4Msyma0M1oWjPf pKbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=l73RHuWA9Dm/Tbm58ZVodwTVUryycOahNUJ25BfgmHs=; b=MQNBcEfh94cd4we5qO4u3lh2wFG2jXXje2tSviI82fPOnJVEOBUmVKTRXZK2+S/Zdt x/J++3VP70ou+0Gf5/eq10q/VcQEEZQfpjDsMi16XwKyyuhpTR9PpKKc0SI65+/PigaV UY2ZWSfQy3jqFlPG6SQYWoVrqE1ZAw0FiD4wjq9x1v2ntIdBRw3YbgTLW084SvqB97aw JzMIK54i6Gz4UK7rDIIJ8iNXBee8BlmBpodlUIyrkP+UKyqbm+b0thzfM8zmhKJvURsg 6sujdAF2kAjn9Oo4acN29nsNf5EJ9rC3WrEaqk9ncvBbdY9b1ttgkCB41LwFg7OlQ4Pp /3sw== 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 l24si1574968pgo.128.2018.01.25.05.32.14; Thu, 25 Jan 2018 05:32:28 -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 S1752046AbeAYNVG (ORCPT + 99 others); Thu, 25 Jan 2018 08:21:06 -0500 Received: from mail-edgeka24.fraunhofer.de ([153.96.1.24]:38296 "EHLO mail-edgeKA24.fraunhofer.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751674AbeAYNVE (ORCPT ); Thu, 25 Jan 2018 08:21:04 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2EYBQB+2Wla/xoBYJldGwEBAQEDAQEBC?= =?us-ascii?q?QEBAYNCZnQnB4NWixiNdIICmRdDChgLgV6DOgIagXxYFAEBAQEBAQEBAgNoKIJ?= =?us-ascii?q?nBEsqAwEBAQEBAQEBASMBAQEBAQEBAQEBAQEBAQEaAg0YRgEBBAEiBA1FEAIBC?= =?us-ascii?q?BgCAiYCAgImChUQAgQBDQUbihkBELQugW06hBYBAYZAAQEBAQEBBAEBAQEBAQE?= =?us-ascii?q?BAQEZBYEPg0KBDoEHgViBZ4Mugy8CAQGBTwEBgzWCZQWkBAYCgRuGeIcxhhyCG?= =?us-ascii?q?4oLK4dUjVEIA4l+gTw2I4FQcYJ7IYN7ATp4AQELAYwIgSWBFwEBAQ?= X-IPAS-Result: =?us-ascii?q?A2EYBQB+2Wla/xoBYJldGwEBAQEDAQEBCQEBAYNCZnQnB4N?= =?us-ascii?q?WixiNdIICmRdDChgLgV6DOgIagXxYFAEBAQEBAQEBAgNoKIJnBEsqAwEBAQEBA?= =?us-ascii?q?QEBASMBAQEBAQEBAQEBAQEBAQEaAg0YRgEBBAEiBA1FEAIBCBgCAiYCAgImChU?= =?us-ascii?q?QAgQBDQUbihkBELQugW06hBYBAYZAAQEBAQEBBAEBAQEBAQEBAQEZBYEPg0KBD?= =?us-ascii?q?oEHgViBZ4Mugy8CAQGBTwEBgzWCZQWkBAYCgRuGeIcxhhyCG4oLK4dUjVEIA4l?= =?us-ascii?q?+gTw2I4FQcYJ7IYN7ATp4AQELAYwIgSWBFwEBAQ?= X-IronPort-AV: E=Sophos;i="5.46,412,1511823600"; d="scan'208";a="4047644" Received: from mail-mtaka26.fraunhofer.de ([153.96.1.26]) by mail-edgeKA24.fraunhofer.de with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jan 2018 14:21:00 +0100 X-IronPort-AV: E=Sophos;i="5.46,412,1511823600"; d="scan'208";a="6944178" Received: from fgdemucivp01ltm.xch.fraunhofer.de (HELO FGDEMUCIMP11EXC.ads.fraunhofer.de) ([192.88.97.16]) by mail-mtaKA26.fraunhofer.de with ESMTP/TLS/AES256-SHA; 25 Jan 2018 14:20:56 +0100 Received: from FGDEMUCIMP01EXC.ads.fraunhofer.de ([10.80.232.40]) by FGDEMUCIMP11EXC.ads.fraunhofer.de ([10.80.232.42]) with mapi id 14.03.0339.000; Thu, 25 Jan 2018 14:20:55 +0100 From: "Auer, Lukas" To: "linux-kernel@vger.kernel.org" , "aymen.sghaier@nxp.com" , "horia.geanta@nxp.com" , "pure.logic@nexus-software.ie" , "linux-crypto@vger.kernel.org" CC: "peng.fan@nxp.com" , "davem@davemloft.net" , "ryan.harkin@linaro.org" , "fabio.estevam@nxp.com" , "rui.silva@linaro.org" , "herbert@gondor.apana.org.au" Subject: Re: [RESEND PATCH 6/6] crypto: caam: detect RNG init when TrustZone is active Thread-Topic: [RESEND PATCH 6/6] crypto: caam: detect RNG init when TrustZone is active Thread-Index: AQHTlSLND7aC3/mxmEq7O8ZIEAjfkKOEg54A Date: Thu, 25 Jan 2018 13:20:55 +0000 Message-ID: <1516886454.3733.23.camel@aisec.fraunhofer.de> References: <1516805435-15034-1-git-send-email-pure.logic@nexus-software.ie> <1516805435-15034-7-git-send-email-pure.logic@nexus-software.ie> In-Reply-To: <1516805435-15034-7-git-send-email-pure.logic@nexus-software.ie> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.80.233.51] x-tm-as-product-ver: SMEX-11.0.0.4179-8.200.1013-23618.006 x-tm-as-result: No--3.243000-8.000000-31 x-tm-as-user-approved-sender: No x-tm-as-user-blocked-sender: No Content-Type: text/plain; charset="utf-8" Content-ID: <0EA716E512C8F84598CEA20171FE1BE0@xch.fraunhofer.de> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gV2VkLCAyMDE4LTAxLTI0IGF0IDE0OjUwICswMDAwLCBCcnlhbiBPJ0Rvbm9naHVlIHdyb3Rl Og0KPiBXaGVuIFRydXN0Wm9uZSBpcyBlbmFibGVkIG9uIHNlYzQgY29tcGF0aWJsZSBzaWxpY29u IHRoZSBmaXJzdCBwYWdlDQo+IG9mIHRoZQ0KPiBDQUFNIGlzIHJlc2VydmVkIGZvciBUcnVzdFpv bmUgb25seSwgdGhpcyBtZWFucyB0aGF0IGFjY2VzcyB0byB0aGUNCj4gZGVjbw0KPiByZWdpc3Rl cnMgaXMgcmVzdHJpY3RlZCBhbmQgd2lsbCByZXR1cm4g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