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>
Sun, 6 Jun 2021 15:17:53 +0000 (11:17 -0400)
commit440e465618f080b2742fccc3b6ae327e306aeab0
tree05485d1c5bb1c15517cf6cfb09c2cf91f4c0fbf1
parent40960a7118171498448870b26d1c867f92fa430e
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