Whamcloud - gitweb
e2fsck: fix unaligned accesses to ext4_fc_tl struct
authorHarshad Shirwadkar <harshadshirwadkar@gmail.com>
Fri, 7 May 2021 00:21:10 +0000 (17:21 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 7 May 2021 01:57:15 +0000 (21:57 -0400)
commit45780b37ef2ad6142ab882a85b90e608c5b6f0c3
tree7818ca63e362ce0390f0717bd786158ed74221ac
parent1e0c8ca7c08abb197aacb3ce78575ee5b00874b6
e2fsck: fix unaligned accesses to ext4_fc_tl struct

Fast commit related struct ext4_fc_tl can be unaligned on disk. So,
while accessing that we should ensure that the pointers are
aligned. This patch fixes unaligned accesses to ext4_fc_tl and also
gets rid of macros fc_for_each_tl and ext4_fc_tag_val that may result
in unaligned accesses to struct ext4_fc_tl.

Signed-off-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debugfs/logdump.c
e2fsck/journal.c
lib/ext2fs/fast_commit.h