diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-09-07 14:36:38 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2018-10-23 13:48:40 +0200 |
commit | da8ef65f9573952c717d86f8f501773daf29bd10 (patch) | |
tree | ebe8f65efa5e149eca12d592b6aa1591bfddeb17 /fs/ubifs/lpt_commit.c | |
parent | ubifs: Add auth nodes to garbage collector journal head (diff) | |
download | linux-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