From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753078AbcELXZ6 (ORCPT ); Thu, 12 May 2016 19:25:58 -0400 Received: from mga09.intel.com ([134.134.136.24]:57631 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752940AbcELXZ5 (ORCPT ); Thu, 12 May 2016 19:25:57 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,611,1455004800"; d="scan'208";a="978980639" Message-ID: <1463095866.2594.8.camel@megha-Z97X-UD7-TH> Subject: SHA1-MB algorithm broken on latest kernel From: Megha Dey To: Herbert Xu Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 12 May 2016 16:31:06 -0700 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, When booting latest kernel with the CONFIG_CRYPTO_SHA1_MB enabled, I observe a panic. After having a quick look, on reverting the following patches, I am able to complete the booting process. aec4d0e301f17bb143341c82cc44685b8af0b945 8691ccd764f9ecc69a6812dfe76214c86ac9ba06 68874ac3304ade7ed5ebb12af00d6b9bbbca0a16 Of the 3 patches, aec4d0e301f17bb143341c82cc44685b8af0b945 seems wrong. The r10 to r15 registers are used in sha1_x8_avx2.S, which is called from sha1_mb_mgr_flush_avx2.S. I do not think the functionality of the SHA1-MB crypto algorithm has been tested after applying these changes. (I am not sure if any of the other crypto algorithms have been affected by these changes). Thanks, Megha