ubifs: journal: Make sure to not dirty twice for auth nodes
Richard Weinberger authored
commit 78c7d49f upstream.

When removing the last reference of an inode the size of an auth node
is already part of write_len. So we must not call ubifs_add_auth_dirt().
Call it only when needed.

Cc: <stable@vger.kernel.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Kristof Havasi <havasiefr@gmail.com>
Fixes: 6a98bc46

 ("ubifs: Add authentication nodes to journal")
Reported-and-tested-by: default avatarKristof Havasi <havasiefr@gmail.com>
Reviewed-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
bc202c83
Name Last commit Last update
Documentation media: videodev2.h: RGB BT2020 and HSV are always full range
LICENSES LICENSES: Rename other to deprecated
arch powerpc: Fix undetected data corruption with P9N DD2.1 VSX CI load emulation
block block: ratelimit handle_bad_sector() message
certs PKCS#7: Refactor verify_pkcs7_signature()
crypto crypto: algif_skcipher - EBUSY on aio should be an error
drivers iio:gyro:itg3200: Fix timestamp alignment and prevent data leak.
fs ubifs: journal: Make sure to not dirty twice for auth nodes
include NFSv4.2: support EXCHGID4_FLAG_SUPP_FENCE_OPS 4.2 EXCHANGE_ID flag
init printk: reduce LOG_BUF_SHIFT range for H8300
ipc ipc/util.c: sysvipc_find_ipc() incorrectly updates position index
kernel seccomp: Make duplicate listener detection non-racy
lib sgl_alloc_order: fix memory leak
mm mm/page_owner: change split_page_owner to take a count
net net: 9p: initialize sun_server.sun_path to have addr's value only when addr is valid
samples samples/bpf: Fix possible deadlock in xdpsock
scripts scripts/setlocalversion: make git describe output more reliable
security evm: Check size of security.evm before using it
sound ALSA: hda/ca0132 - Add new quirk ID for SoundBlaster AE-7.
tools selftests/x86/fsgsbase: Test PTRACE_PEEKUSER for GSBASE with invalid LDT GS
usr initramfs: restore default compression behavior
virt KVM: arm64: Assume write fault on S1PTW permission fault on instruction fetch
.clang-format clang-format: Update with the latest for_each macro list
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl
.gitattributes .gitattributes: set git diff driver for C source code files
.gitignore Merge tag 'modules-for-v5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux
.mailmap Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
COPYING COPYING: use the new text with points to the license files
CREDITS MAINTAINERS: Remove Simon as Renesas SoC Co-Maintainer
Kbuild kbuild: do not descend to ./Kbuild when cleaning
Kconfig docs: kbuild: convert docs to ReST and rename to *.rst
MAINTAINERS Documentation/llvm: add documentation on building w/ Clang/LLVM
Makefile Linux 5.4.74
README Drop all 00-INDEX files from Documentation/
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.