buffer_head.b_data needs to be 8-byte aligned to prevent an unaligned access via a 64-bit pointer in e.g. scan_revoke_records(). Caught using clang -fsanitize=undefined. Signed-off-by: Sami Liedes <sami.liedes@xxxxxx> --- e2fsck/jfs_user.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2fsck/jfs_user.h b/e2fsck/jfs_user.h index 3cccd3f..fdaf1b2 100644 --- a/e2fsck/jfs_user.h +++ b/e2fsck/jfs_user.h @@ -22,7 +22,7 @@ struct buffer_head { int b_dirty; int b_uptodate; int b_err; - char b_data[1024]; + char b_data[1024] __attribute__ ((aligned (8))); }; struct inode { -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html