No description
Find a file
Jaegeuk Kim 8c66f86b42 f2fs: should put a page beyond EOF when preparing a write
[ Upstream commit 9605f75cf3 ]

The prepare_compress_overwrite() gets/locks a page to prepare a read, and calls
f2fs_read_multi_pages() which checks EOF first. If there's any page beyond EOF,
we unlock the page and set cc->rpages[i] = NULL, which we can't put the page
anymore. This makes page leak, so let's fix by putting that page.

Fixes: a949dc5f2c ("f2fs: compress: fix race condition of overwrite vs truncate")
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-18 13:43:34 +02:00
arch KVM: PPC: Fix clearing never mapped TCEs in realmode 2021-09-18 13:43:33 +02:00
block scsi: bsg: Remove support for SCSI_IOCTL_SEND_COMMAND 2021-09-18 13:43:26 +02:00
certs certs: Trigger creation of RSA module signing key if it's not an RSA key 2021-09-15 10:02:09 +02:00
crypto crypto: ecc - handle unaligned input buffer in ecc_swap_digits 2021-09-15 10:02:07 +02:00
Documentation f2fs: fix to keep compatibility of fault injection interface 2021-09-18 13:43:31 +02:00
drivers soc: mediatek: cmdq: add address shift in jump 2021-09-18 13:43:34 +02:00
fs f2fs: should put a page beyond EOF when preparing a write 2021-09-18 13:43:34 +02:00
include iommu/vt-d: Update the virtual command related registers 2021-09-18 13:43:31 +02:00
init init: Suppress wrong warning for bootconfig cmdline parameter 2021-08-12 13:35:57 -04:00
ipc Merge branch 'akpm' (patches from Andrew) 2021-07-02 12:08:10 -07:00
kernel dma-debug: fix debugfs initialization order 2021-09-18 13:43:28 +02:00
lib lib/test_scanf: Handle n_bits == 0 in random tests 2021-09-15 10:02:16 +02:00
LICENSES LICENSES/dual/CC-BY-4.0: Git rid of "smart quotes" 2021-07-15 06:31:24 -06:00
mm mm/memory_hotplug: fix potential permanent lru cache disable 2021-08-25 12:25:12 -07:00
net sunrpc: Fix return value of get_srcport() 2021-09-18 13:43:29 +02:00
samples vfio/mbochs: Fix missing error unwind of mbochs_used_mbytes 2021-09-18 13:43:30 +02:00
scripts Kbuild fixes for v5.14 (2nd) 2021-08-07 10:03:02 -07:00
security IMA: remove the dependency on CRYPTO_MD5 2021-09-15 10:02:35 +02:00
sound ASoC: rt5682: Remove unused variable in rt5682_i2c_remove() 2021-09-15 10:02:32 +02:00
tools tools/thermal/tmon: Add cross compiling support 2021-09-18 13:43:20 +02:00
usr .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
virt KVM: Do not leak memory for duplicate debugfs directories 2021-08-04 06:02:03 -04:00
.clang-format clang-format: Update with the latest for_each macro list 2021-05-12 23:32:39 +02:00
.cocciconfig
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl 2019-05-16 10:53:40 -07:00
.gitattributes .gitattributes: use 'dts' diff driver for dts files 2019-12-04 19:44:11 -08:00
.gitignore .gitignore: ignore only top-level modules.builtin 2021-05-02 00:43:35 +09:00
.mailmap m68k updates for v5.14 2021-06-28 14:01:03 -07:00
COPYING COPYING: state that all contributions really are covered by this file 2020-02-10 13:32:20 -08:00
CREDITS MAINTAINERS: move Murali Karicheri to credits 2021-04-29 15:47:30 -07:00
Kbuild kbuild: rename hostprogs-y/always to hostprogs/always-y 2020-02-04 01:53:07 +09:00
Kconfig kbuild: ensure full rebuild when the compiler is updated 2020-05-12 13:28:33 +09:00
MAINTAINERS MAINTAINERS: exfat: update my email address 2021-08-25 12:25:12 -07:00
Makefile Makefile: use -Wno-main in the full kernel tree 2021-09-18 13:43:18 +02:00
README Drop all 00-INDEX files from Documentation/ 2018-09-09 15:08:58 -06:00

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.