]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix fast commit alignment issues
authorHarshad Shirwadkar <harshadshirwadkar@gmail.com>
Wed, 19 May 2021 21:59:20 +0000 (14:59 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 6 Jun 2021 14:10:23 +0000 (10:10 -0400)
commitccbd510c55748bd184b34ed15d0e835fc17b90c2
tree38752a5c54881984682914365bdd98299cb7d950
parent5e2701c28f43f9e083d4aab2291bd90a01a5e1fb
ext4: fix fast commit alignment issues

Fast commit recovery data on disk may not be aligned. So, when the
recovery code reads it, this patch makes sure that fast commit info
found on-disk is first memcpy-ed into an aligned variable before
accessing it. As a consequence of it, we also remove some macros that
could resulted in unaligned accesses.

Cc: stable@kernel.org
Fixes: 637a623587b9 ("ext4: fast commit recovery path")
Signed-off-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com>
Link: https://lore.kernel.org/r/20210519215920.2037527-1-harshads@google.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/fast_commit.c
fs/ext4/fast_commit.h