cvs commit: src/sys/geom/eli g_eli.h
Pawel Jakub Dawidek
pjd at FreeBSD.org
Thu Mar 30 14:41:15 UTC 2006
pjd 2006-03-30 14:41:14 UTC
FreeBSD src repository
Modified files:
sys/geom/eli g_eli.h
Log:
md_hash field in g_eli_metadata structure is not 4 byte aligned, which
case panic on sparc64.
The problem is in MD5(9) implementation. The Encode() function takes
'unsigned char *output' as its first argument, which is then assigned to
'u_int32_t *op'. If the 'output' argument is not 4 byte aligned (and in
geli(8) case it is not), sparc64 machine will panic.
I don't know how to fix MD5(9) in a clean way, so I'm implementing a
work-around in geli(8).
Reported by: brueffer
MFC after: 3 days
Revision Changes Path
1.6 +6 -2 src/sys/geom/eli/g_eli.h
More information about the cvs-src
mailing list