md5sum makes unaligned word accesses...

Mike Frysinger vapier at gentoo.org
Wed May 10 04:38:19 UTC 2006


On Tuesday 09 May 2006 23:56, Andre wrote:
> (This is ARM specific and ensures that userspace alignment faults
> don't cause silent data corruption... which unfortunately is the
> default behaviour).

i'm pretty sure the kernel handles this stuff sanely ... it would either fixup 
the unaligned access or kill the process, not let "silent data corruption" 
happen ... this also isnt an arm-specific issue as many other arches are anal 
about accessing memory aligned

indeed, running `busybox dd if=/dev/zero bs=1 count=123 | busybox md5sum` on 
some of my arm/amd64/ia64 machines yielded same correct result
-mike



More information about the busybox mailing list