title> https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-5.1.y 2018-10-23T11:48:47Z ubifs: authentication: Authenticate LPT 2018-10-23T11:48:47Z Sascha Hauer s.hauer@pengutronix.de 2018-09-07T12:36:39Z urn: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_lookup 2018-10-23T11:48:17Z Sascha Hauer s.hauer@pengutronix.de 2018-09-07T12:36:26Z urn: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:21Z Richard Weinberger richard@nod.at 2018-07-12T11:01:57Z urn: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 comment 2018-06-07T13:53:15Z Sascha Hauer s.hauer@pengutronix.de 2018-05-14T08:18:19Z urn: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>