Re: [PATCH 13/25] ubifs: authentication: Add hashes to index nodes

2018-09-07 Thread Sascha Hauer
On Mon, Aug 27, 2018 at 09:36:56PM +0200, Richard Weinberger wrote: > > diff --git a/fs/ubifs/tnc.c b/fs/ubifs/tnc.c > > index a47fced47823..a00809d4fe6f 100644 > > --- a/fs/ubifs/tnc.c > > +++ b/fs/ubifs/tnc.c > > @@ -488,6 +488,12 @@ static int try_read_node(const struct ubifs_info *c, > > void

Re: [PATCH 13/25] ubifs: authentication: Add hashes to index nodes

2018-08-27 Thread Richard Weinberger
Am Mittwoch, 4. Juli 2018, 14:41:25 CEST schrieb Sascha Hauer: > With this patch the hashes over the index nodes stored in the tree node > cache are written to flash and are checked when read back from flash. > The hash of the root index node is stored in the master node. > > During journal replay

[PATCH 13/25] ubifs: authentication: Add hashes to index nodes

2018-07-04 Thread Sascha Hauer
With this patch the hashes over the index nodes stored in the tree node cache are written to flash and are checked when read back from flash. The hash of the root index node is stored in the master node. During journal replay the hashes are regenerated from the read nodes and stored in the tree no