Fix a stack overflow on 64 bit linux which corrupts the stack
saved arguments and causes a kernel panic. This bug is seen
on platforms where ino_t is 64 bits and the md5inum sysctl
option is enabled.
Reviewed-on: http://gerrit.openafs.org/322
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
AFS_MD5_Update(&ct, &volume, 4);
AFS_MD5_Update(&ct, &vnode, 4);
AFS_MD5_Final(digest, &ct);
- memcpy(&ino, digest, sizeof(ino_t));
+ memcpy(&ino, digest, sizeof(afs_int32));
ino ^= (ino ^ vno) & 1;
} else {
ino = (volume << 16) + vnode;