shithub: lwext4

Download patch

ref: 5372f03b3a0947f9c14a8bf015404f2fa0c71db2
parent: 6a6833fd4b9b2067e7baf0520fc792d230a9ef2c
author: ngkaho1234 <[email protected]>
date: Mon May 16 06:08:14 EDT 2016

ext4_xattr: fix not computing hash of on-block entries

I forget to do that, sorry. :-(

--- a/src/ext4_xattr.c
+++ b/src/ext4_xattr.c
@@ -867,6 +867,7 @@
 		memcpy(EXT4_XATTR_NAME(block_entry), item->name,
 		       item->name_len);
 		memcpy(block_data, item->data, item->data_size);
+		ext4_xattr_compute_hash(block_header, block_entry);
 		block_entry = EXT4_XATTR_NEXT(block_entry);
 		block_size_rem -= EXT4_XATTR_SIZE(item->data_size) +
 				  EXT4_XATTR_LEN(item->name_len);