summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/lpt_commit.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-09-07 14:36:38 +0200
committerRichard Weinberger <richard@nod.at>2018-10-23 13:48:40 +0200
commitda8ef65f9573952c717d86f8f501773daf29bd10 (patch)
treeebe8f65efa5e149eca12d592b6aa1591bfddeb17 /fs/ubifs/lpt_commit.c
parentubifs: Add auth nodes to garbage collector journal head (diff)
downloadlinux-da8ef65f9573952c717d86f8f501773daf29bd10.tar.xz
linux-da8ef65f9573952c717d86f8f501773daf29bd10.zip
ubifs: Authenticate replayed journal
Make sure that during replay all buds can be authenticated. To do this we calculate the hash chain until we find an authentication node and check the HMAC in that node against the current status of the hash chain. After a power cut it can happen that some nodes have been written, but not yet the authentication node for them. These nodes have to be discarded during replay. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/ubifs/lpt_commit.c')
0 files changed, 0 insertions, 0 deletions