Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Mar 2006 14:41:14 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/geom/eli g_eli.h
Message-ID:  <200603301441.k2UEfEw9045539@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603301441.k2UEfEw9045539>