Whamcloud - gitweb
e2fsck: fix unaligned accesses to ext4_fc_add_range and fc_raw_inode
authorTheodore Ts'o <tytso@mit.edu>
Fri, 7 May 2021 02:40:57 +0000 (22:40 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 7 May 2021 02:40:57 +0000 (22:40 -0400)
commit86fe64e48631dbe330355b8127d816957baff52b
tree89673272e3ff67916f364868527b2467feb77207
parent45780b37ef2ad6142ab882a85b90e608c5b6f0c3
e2fsck: fix unaligned accesses to ext4_fc_add_range and fc_raw_inode

These fast commit related structures can be unaligned on disk.  So we
need to avoid accessing these structures directly, and first copy
them to memory which we know is appropriately aligned.

This fixes an e2fsck crash while running the j_recovery_fast_commit
regression test on a sparc64 system.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/journal.c