From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755134Ab0IMUaj (ORCPT ); Mon, 13 Sep 2010 16:30:39 -0400 Received: from sabe.cs.wisc.edu ([128.105.6.20]:42404 "EHLO sabe.cs.wisc.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753725Ab0IMUai (ORCPT ); Mon, 13 Sep 2010 16:30:38 -0400 Message-ID: <4C8E8AF5.5080205@cs.wisc.edu> Date: Mon, 13 Sep 2010 15:35:01 -0500 From: Mike Christie User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100907 Fedora/3.0.7-1.fc12 Thunderbird/3.0.7 MIME-Version: 1.0 To: "Nicholas A. Bellinger" CC: Hannes Reinecke , linux-scsi , linux-kernel , Christoph Hellwig , FUJITA Tomonori , James Bottomley , Konrad Rzeszutek Wilk , Boaz Harrosh , Richard Sharpe , Vasu Dev , Joe Eykholt Subject: Re: [PATCH 0/2] lio-target: Add support for libcrypto crc32c and crc32-intel offload References: <1284201076-22361-1-git-send-email-nab@linux-iscsi.org> <4C8DED17.6080801@suse.de> <1284407432.8171.41.camel@haakon2.linux-iscsi.org> In-Reply-To: <1284407432.8171.41.camel@haakon2.linux-iscsi.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/13/2010 02:50 PM, Nicholas A. Bellinger wrote: >> IE the in-kernel crc32c routines apparently weren't able to >> calculate the checksum in an endianness-independent manner. >> So a CRC calculated on a BE machine would fail to be validated by a >> LE machine and vice versa. >> >> Has this been fixed / verified? >> > >> From taking a look at crypto/crc32c.c it still appears AFAICT to not be > big endian safe. I was planning to test this patch on some powerpc/ppc > hardware with v2.6.36-rc4 in the next days, but it looks like > lio-core-2.6.git will need a seperate crypto/crc32c.c patch to function > properly on big endian arches. > There was this bug that was fixed a couple years ago: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=ef19454bd437b2ba14c9cda1de85debd9f383484 since then I think we have not had problems.