title>
https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-5.1.y2018-10-23T11:48:47Zubifs: authentication: Authenticate LPT2018-10-23T11:48:47ZSascha Hauers.hauer@pengutronix.de2018-09-07T12:36:39Zurn:sha1:a1dc58140f7e63e3b23050eb43b4e5581cb28c88
The LPT needs to be authenticated aswell. Since the LPT is only written
during commit it is enough to authenticate the whole LPT with a single
hash which is stored in the master node. Only the leaf nodes (pnodes)
are hashed which makes the implementation much simpler than it would be
to hash the complete LPT.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
ubifs: Export pnode_lookup as ubifs_pnode_lookup2018-10-23T11:48:17ZSascha Hauers.hauer@pengutronix.de2018-09-07T12:36:26Zurn:sha1:0e26b6e2551e21df72c140e46819523e1b686009
ubifs_lpt_lookup could be implemented using pnode_lookup. To make that
possible move pnode_lookup from lpt.c to lpt_commit.c. Rename it to
ubifs_pnode_lookup since it's now exported.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
ubifs: Pass struct ubifs_info to ubifs_assert()2018-08-14T22:25:21ZRichard Weinbergerrichard@nod.at2018-07-12T11:01:57Zurn:sha1:6eb61d587f4515e4be5669eff383c0185009954f
This allows us to have more context in ubifs_assert()
and take different actions depending on the configuration.
Signed-off-by: Richard Weinberger <richard@nod.at>
ubifs: lpt: Fix wrong pnode number range in comment2018-06-07T13:53:15ZSascha Hauers.hauer@pengutronix.de2018-05-14T08:18:19Zurn:sha1:e1db654d8e326173a1c1a0194185250340cab03c
The comment above pnode_lookup claims the range for the pnode number is
from 0 to main_lebs - 1. This is wrong because every pnode has
informations about UBIFS_LPT_FANOUT LEBs, thus the corrent range is
0 to to (main_lebs - 1) / UBIFS_LPT_FANOUT.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>