[GIT PULL] UBIFS updates for 4.20-rc1

From: Richard Weinberger
Date: Wed Oct 31 2018 - 17:22:43 EST


Linus,

The following changes since commit 84df9525b0c27f3ebc2ebb1864fa62a97fdedb7d:

Linux 4.19 (2018-10-22 07:37:37 +0100)

are available in the Git repository at:

git://git.infradead.org/linux-ubifs.git tags/tags/upstream-4.20-rc1

for you to fetch changes up to 84db119f5a83e1bf9cffbc6d9cf16487eda1c056:

ubifs: Remove unneeded semicolon (2018-10-23 13:49:02 +0200)

----------------------------------------------------------------
This pull request contains updates for UBIFS:

- Full filesystem authentication feature,
UBIFS is now able to have the whole filesystem structure
authenticated plus user data encrypted and authenticated.
- Minor cleanups

----------------------------------------------------------------
Ding Xiang (1):
ubifs: Remove unneeded semicolon

Gustavo A. R. Silva (1):
ubi: Mark expected switch fall-throughs

Sascha Hauer (24):
ubifs: Refactor create_default_filesystem()
ubifs: Pass ubifs_zbranch to try_read_node()
ubifs: Pass ubifs_zbranch to read_znode()
ubifs: Export pnode_lookup as ubifs_pnode_lookup
ubifs: Implement ubifs_lpt_lookup using ubifs_pnode_lookup
ubifs: Drop write_node
ubifs: Store read superblock node
ubifs: Format changes for authentication support
ubifs: Add separate functions to init/crc a node
ubifs: Add helper functions for authentication support
ubifs: Create functions to embed a HMAC in a node
ubifs: Add hashes to the tree node cache
ubifs: authentication: Add hashes to index nodes
ubifs: Add authentication nodes to journal
ubifs: Add auth nodes to garbage collector journal head
ubifs: Authenticate replayed journal
ubifs: authentication: Authenticate LPT
ubfis: authentication: Authenticate master node
ubifs: Create hash for default LPT
ubifs: authentication: Authenticate super block node
ubifs: Add hashes and HMACs to default filesystem
ubifs: Do not update inode size in-place in authenticated mode
ubifs: Enable authentication support
Documentation: ubifs: Add authentication whitepaper

Documentation/filesystems/ubifs-authentication.md | 426 ++++++++++++++++++
Documentation/filesystems/ubifs.txt | 7 +
drivers/mtd/ubi/attach.c | 1 +
drivers/mtd/ubi/build.c | 2 +
fs/ubifs/Kconfig | 11 +
fs/ubifs/Makefile | 1 +
fs/ubifs/auth.c | 502 ++++++++++++++++++++++
fs/ubifs/debug.c | 6 +
fs/ubifs/gc.c | 49 ++-
fs/ubifs/io.c | 110 ++++-
fs/ubifs/journal.c | 289 ++++++++++---
fs/ubifs/log.c | 24 ++
fs/ubifs/lpt.c | 184 +++++++-
fs/ubifs/lpt_commit.c | 44 +-
fs/ubifs/master.c | 64 ++-
fs/ubifs/misc.h | 5 +-
fs/ubifs/recovery.c | 120 ++++--
fs/ubifs/replay.c | 177 +++++++-
fs/ubifs/sb.c | 209 ++++++---
fs/ubifs/super.c | 91 +++-
fs/ubifs/tnc.c | 36 +-
fs/ubifs/tnc_commit.c | 27 ++
fs/ubifs/tnc_misc.c | 26 +-
fs/ubifs/ubifs-media.h | 46 +-
fs/ubifs/ubifs.h | 253 ++++++++++-
25 files changed, 2418 insertions(+), 292 deletions(-)
create mode 100644 Documentation/filesystems/ubifs-authentication.md
create mode 100644 fs/ubifs/auth.c