lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4612AB88.1000504@oracle.com>
Date:	Tue, 03 Apr 2007 12:31:20 -0700
From:	Randy Dunlap <randy.dunlap@...cle.com>
To:	David Miller <davem@...emloft.net>
CC:	andi@...stfloor.org, linux-kernel@...r.kernel.org,
	akpm@...ux-foundation.org, sam@...nborg.org
Subject: Re: [PATCH] make csum_partial obj-y

David Miller wrote:
> From: Randy Dunlap <randy.dunlap@...cle.com>
> Date: Tue, 03 Apr 2007 12:09:33 -0700
> 
>> How does the networking code work across multiple architectures?
> 
> This has been discussed before.
> 
> The csum_partial() result value is only well defined modulo 0xffff.
> 
> The networking does csum_fold() or similar on the results, and so the
> right thing always happens there.
> 
> The reiserfs case is the worst because even ignoring the differences
> in csum_partial() return values, it always feeds this into
> cpu_to_le32() which basically means that it is putting a cpu-endian
> dependent value onto disk.  csum_partial() returns a fixed-endian,
> not cpu endian, value.  So feeding it into cpu_to_anything() is
> quite wrong.

Thanks David and Andi.  I get it.

-- 
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ