[<prev] [next>] [day] [month] [year] [list]
Date: Fri, 14 Dec 2012 00:04:34 +0200
From: Sami Liedes <sami.liedes@....fi>
To: linux-ext4@...r.kernel.org
Subject: [PATCH 8/8] e2fsck/jfs_user.h: Fix b_data alignment in struct
buffer_head
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@....fi>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists