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>
Sun, 6 Jun 2021 15:18:15 +0000 (11:18 -0400)
commit8188d943e51290e7edce0b6e462021504afdf3e6
tree6ee6c60b7aed67345dea5ff82e543ea14b1c4bbc
parent440e465618f080b2742fccc3b6ae327e306aeab0
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